本文整理汇总了PHP中form::legend方法的典型用法代码示例。如果您正苦于以下问题:PHP form::legend方法的具体用法?PHP form::legend怎么用?PHP form::legend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类form
的用法示例。
在下文中一共展示了form::legend方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<? echo $data['billing_city']; ?><br />
<? echo $data['billing_postal_code']; ?></strong></p>
<p><? echo kohana::lang('eshop.identity_number'); ?>: <strong><? echo $data['billing_identity_number']; ?></strong></p>
<p><? echo kohana::lang('eshop.vat_number'); ?>: <strong><? echo $data['billing_vat_number']; ?></strong></p>
<? echo form::close_fieldset();?>
<div class="cleaner"> </div>
<? echo form::open_fieldset(array('class' => 'overview3'));
echo form::legend(Kohana::lang('eshop.delivery_info')); ?>
<p><? echo kohana::lang('eshop.name'); ?>: <strong><? echo $data['delivery_name']; ?></strong></p>
<p><? echo Kohana::lang('eshop.street'); ?>: <strong><br /><? echo $data['delivery_street']; ?><br />
<? echo $data['delivery_city']; ?><br />
<? echo $data['delivery_postal_code']; ?></strong></p>
<? echo form::close_fieldset(); ?>
<? echo form::open_fieldset(array('class' => 'overview3'));
echo form::legend(Kohana::lang('eshop.other')); ?>
<p><? echo kohana::lang('eshop.status_order'); ?>: <strong><? echo customer::order_status($data['status_order'])?></strong></p>
<p><? echo kohana::lang('eshop.payment'); ?>: <strong><? echo payment::get_name($data['payment']); ?> – <? echo customer::payment_status($data['status_payment'])?></strong>
<? if($data['status_payment'] == 'none' AND payment::get_type($data['payment']) == "post"){ ?>
– <a href="/cart/payment/<? echo $data['id']; ?>"><? echo Kohana::lang('eshop.payment_info'); ?></a>
<? } ?>
<? if($data['status_payment'] == 'none' AND payment::get_type($data['payment']) == "pre"){ ?>
– <a href="/cart/payment/<? echo $data['id']; ?>"><? echo Kohana::lang('eshop.pay_now'); ?></a>
<? } ?>
</p>
<? if(payment::get_type($data['payment']) == "post"){ ?>
<p><? echo Kohana::lang('eshop.vsymbol2'); ?>: <? echo $data['id']; ?></p>
<? } ?>
<p><? echo kohana::lang('eshop.shipping'); ?>: <strong><? echo shipping::get_name($data['shipping']); ?></strong></p>
<p><? echo kohana::lang('eshop.last_change'); ?>: <strong><? echo $data['last_change']; ?></strong></p>
示例2: foreach
echo form::open_fieldset();
echo form::legend(Kohana::lang('eshop.payment'));
foreach($payment_methods as $row){
echo form::label('payment',$row['name']);
if($form['payment'] == $row['id']){
echo form::radio('payment',$row['id'],TRUE);
} else {
echo form::radio('payment',$row['id'],FALSE);
}
echo '<br />';
}
echo form::close_fieldset();
echo form::open_fieldset();
echo form::legend(Kohana::lang('eshop.shipping'));
foreach($shipping_methods as $row){
echo form::label('shipping',$row['name']);
if($form['shipping'] == $row['id']){
echo form::radio('shipping',$row['id'],TRUE);
} else {
echo form::radio('shipping',$row['id'],FALSE);
}
echo '<br />';
}
echo form::close_fieldset();
echo form::label('submit', ' ');
echo form::submit('submit', Kohana::lang('eshop.order'),'class=button');
echo '<br />';
echo form::close();
示例3: array
<?php
echo form::label('localidad_id', 'Localidad');
?>
<?php
echo form::dropdown('localidad_id', $form['localidad_id'], $form['selloc']);
?>
<?php
echo form::close_fieldset();
?>
<?php
echo form::open_fieldset();
?>
<?php
echo form::legend('Opciones', array('id' => 'opciones'));
?>
<!--
<?php
echo form::label('negrita', '¿Negrita?');
?>
<?php
echo form::checkbox('negrita', 'negrita');
?>
-->
<?php
echo form::label('destacado', '¿Destacado?');
?>
<?php
echo form::checkbox('destacado', 'destacado');
?>
示例4: array
<?php
echo form::open(null, array('method' => 'post'));
?>
<?php
echo form::open_fieldset(array('class' => 'required-info'));
?>
<?php
echo form::legend('Required Info');
?>
<p><?php
echo form::label('subscriber[email]', 'Subscriber'), form::input('subscriber[email]');
?>
</p>
<?php
echo form::close_fieldset();
?>
<?php
echo form::submit(array('value' => 'Add'));
?>
<?php
echo form::close();
示例5: array
?>
</p>
<? base::success($success); ?>
<? base::errors($errors); ?>
<?
echo form::open(NULL, array('class' => 'glForms'));
echo form::open_fieldset();
echo form::legend(Kohana::lang('user.changedata'));
echo form::label('fullname', kohana::lang('user.yourname'));
echo form::input('fullname', ($form['fullname']));
echo '<br />';
echo form::close_fieldset();
echo form::open_fieldset();
echo form::legend(Kohana::lang('user.changepassword'));
echo form::label('password3', Kohana::lang('user.password3'));
echo form::password('password3', $form['password3']);
echo '<br />';
echo form::label('password2', Kohana::lang('user.password2'));
echo form::password('password2', $form['password2']);
echo '<br />';
echo form::label('password', Kohana::lang('user.password'));
echo form::password('password', $form['password']);
echo form::close_fieldset();
echo form::label('submit', ' ');
echo form::submit('submit', Kohana::lang('user.set'),'class=button');
echo '<br />';
echo form::close();
?>
示例6:
<?=form::dropdown('categoria_id',$form['categoria_id'],$form['selcat'])?><br />
<?=form::label("nombre")?>
<?=form::input(array("id"=>"nombre","name"=>"nombre", "title"=>"Nombre", "size"=>"30", "value"=>$form['nombre']))?><br/>
<?=form::label("calle y nro")?>
<?=form::input(array("id"=>"calle","name"=>"calle", "title"=>"Calle", "size"=>"30", "value"=>$form['calle']))?>
<?=form::input(array("id"=>"nro","name"=>"nro", "title"=>"Nro","size"=>"4", "value"=>$form['nro']))?><br/>
<?=form::label("piso y depto")?>
<?=form::input(array("id"=>"piso","name"=>"piso", "title"=>"Piso","size"=>"4", "value"=>$form['piso']))?>
<?=form::input(array("id"=>"depto","name"=>"depto","title"=>"Departamento", "size"=>"4", "value"=>$form['depto']))?><br/>
<?=form::label('localidad_id','Localidad')?>
<?=form::dropdown('localidad_id',$form['localidad_id'],$form['selloc'])?>
<?=form::close_fieldset();?>
<?=form::open_fieldset();?>
<?=form::legend('Destacar');?>
<?php
echo form::label('destacado', '¿Destacado?');
// if ($form['destacado']!=0) {
// $checked = TRUE;
// } else {
// $checked = FALSE;
// }
echo form::checkbox('destacado', 1, (bool) $form['destacado']);
?>
<?=form::close_fieldset();?>
<?=form::submit('submit',"Actualizar",'class="awesome big green"')?>
<?=form::close()?>
</div> <!-- Fin Border -->
示例7: legend
public function legend($text, $attributes = array())
{
$this->legend = form::legend($text, $attributes);
return $this;
}
示例8:
<?php
echo form::dropdown('localidad_id', $localidad, $_SESSION['localidad']);
?>
<br />
<?php
echo form::close_fieldset();
?>
</div>
</div>
<div class="yui-u">
<div class="border">
<?php
echo form::open_fieldset();
?>
<?php
echo form::legend('Opciones');
?>
<?php
echo form::label('marc_left', 'Separadores');
?>
<?php
echo form::input('marc_left', '<', ' size="3"');
?>
<?php
echo form::input('marc_right', '>', ' size="3"');
?>
<br />
<?php
echo form::label('cut_rubro', 'Rubro Max');
?>
<?php
示例9:
echo form::label('customer_street', kohana::lang('eshop.street'));
echo form::input('customer_street', $form['customer_street']);
echo "<br />";
echo form::label('customer_city', kohana::lang('eshop.city'));
echo form::input('customer_city', $form['customer_city']);
echo "<br />";
echo form::label('customer_postal_code', kohana::lang('eshop.postal_code'));
echo form::input('customer_postal_code', $form['customer_postal_code']);
echo "<br />";
echo form::label('customer_phone', kohana::lang('eshop.phone'));
echo form::input('customer_phone', $form['customer_phone']);
echo form::close_fieldset();
echo form::open_fieldset();
echo form::legend(Kohana::lang('eshop.billing_info'));
echo form::label('billing_name', kohana::lang('eshop.name'));
echo form::input('billing_name', $form['billing_name']);
echo "<br />";
echo form::label('billing_street', kohana::lang('eshop.street'));
echo form::input('billing_street', $form['billing_street']);
echo "<br />";
echo form::label('billing_city', kohana::lang('eshop.city'));
echo form::input('billing_city', $form['billing_city']);
echo "<br />";
echo form::label('billing_postal_code', kohana::lang('eshop.postal_code'));
echo form::input('billing_postal_code', $form['billing_postal_code'],'size="8"');
echo "<br />";
echo form::label('billing_identity_number', kohana::lang('eshop.identity_number'));
echo form::input('billing_identity_number', $form['billing_identity_number'],'size="8"');
示例10: comment
function comment($id, $name, $error)
{
echo "<fieldset><legend>Erläuterungen</legend>";
echo "<textarea class='{$error}' name='comment' cols='45' rows='5' ";
echo help::show("comment-field", "");
if (right::write()) {
echo ">";
} else {
echo " readonly>";
}
echo $name;
echo "</textarea>";
// display legend for comment area
if (session::get("legend")) {
echo form::link("help-off", "no help", "index.php?action=legendoff", "nolegend");
form::legend();
} else {
echo form::link("help-on", "help", "index.php?action=legendon", "nolegend");
}
echo "</fieldset>";
}
示例11:
" />
<?php
echo $type_name;
?>
</label>
<?php
}
?>
</fieldset>
<?php
echo form::open_fieldset(array('class' => 'required-info'));
?>
<?php
echo form::legend('Project Info');
?>
<p class="important-stuff"><label><span>Project Name</span> <?php
echo form::input('project[name]');
?>
</label>
<label><span>Project URL</span> <?php
echo form::input('project[url]');
?>
</label></p>
<p><label><span>Brief Description</span><br /><?php
echo form::textarea(array('name' => 'project[description]', 'id' => 'project-description'));
?>
</label></p>
<p><label><span>Your Role</span> <?php
示例12: foreach
?>
</p>
<p><?php
echo form::label('user[role]', 'Your Role'), form::input('user[role]', $user->role_for_project($project));
?>
</p>
<?php
echo form::close_fieldset();
foreach ($project->users as $member) {
echo $member->email, ' role: ', $member->role_for_project($project), '<br />';
}
echo form::open_fieldset(array('class' => 'additional-users'));
?>
<?php
echo form::legend('Additional Members');
?>
<?php
echo form::input(array('name' => 'additional_user_emails[]', 'type' => 'email'));
?>
<?php
echo form::input('additional_user_roles[]');
echo form::close_fieldset();
?>
<?php
echo form::submit(array('value' => 'Save'));
?>