Yii Framework Forum: Menu in the index.php - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Menu in the index.php Rate Topic: -----

#1 User is offline   kitty10 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 139
  • Joined: 13-April 10

Posted 02 May 2010 - 02:56 AM

I want to create a menu in the index.php with the original choices that you can do.
This is my code

<div class="form">

<?php CHtml::beginform(); ?>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE STUDENTE:',$lab); ?>
<?php echo CHtml::link('Inserimento',array('anagrafe/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('anagrafe/admin')); ?>
</div>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE DOCENTE:',$lab1); ?>
<?php echo CHtml::link('Inserimento',array('anagrafe/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('docente/admin')); ?>
</div>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE ENTE:',$lab2); ?>
<?php echo CHtml::link('Inserimento',array('organizzazione/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('organizzazione/admin')); ?>
</div>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE RIFERIMENTI:',$lab3); ?>
<?php echo CHtml::link('Inserimento',array('riferimenti/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('riferimenti/admin')); ?>
</div>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE OFFERTE TIROCINIO:',$lab5); ?>
<?php echo CHtml::link('Inserimento',array('off_stage/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('off_stage/admin')); ?>
</div>

<div class="row" align="center" >
<?php echo CHtml::label('GESTIONE CONVENZIONI:',$lab6); ?>
<?php echo CHtml::link('Inserimento',array('stages/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('stages/admin')); ?>
</div>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE CANDIDATURE:',$lab9); ?>
<?php echo CHtml::link('Inserimento',array('action')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('action')); ?>
</div>

<div class="row" align="center">
<?php echo CHtml::label('GESTIONE PROGETTO TIROCINIO:',$lab7); ?>
<?php echo CHtml::link('Inserimento',array('prog_form/create')); ?>
<?php echo CHtml::link('Modifica/Cancellazione',array('prog_form/admin')); ?>
</div>


<?php echo CHtml::endForm(); ?>
</div>
<!-- form -->

This is the output...
Tirocini&Stage

Scegliere una delle seguenti opzioni:
GESTIONE STUDENTE: Inserimento Modifica/Cancellazione
GESTIONE DOCENTE: Inserimento Modifica/Cancellazione
GESTIONE ENTE: Inserimento Modifica/Cancellazione
GESTIONE RIFERIMENTI: Inserimento Modifica/Cancellazione
GESTIONE OFFERTE TIROCINIO: Inserimento Modifica/Cancellazione
GESTIONE CONVENZIONI: Inserimento Modifica/Cancellazione
GESTIONE CANDIDATURE: Inserimento Modifica/Cancellazione
GESTIONE PROGETTO TIROCINIO: Inserimento Modifica/Cancellazione

But I do not like as much output as I can improve it ..?
I would align the labels and links ... how can I do?
0

#2 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 02 May 2010 - 06:51 AM

With CSS. Besides you have the CMenu to construct a menu.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users