当前位置: 首页>>代码示例>>PHP>>正文


PHP form::legend方法代码示例

本文整理汇总了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">&nbsp;</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']); ?> &ndash; <? echo customer::payment_status($data['status_payment'])?></strong>

<? if($data['status_payment'] == 'none' AND payment::get_type($data['payment']) == "post"){ ?>
	&ndash; <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"){ ?>
	&ndash; <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>
开发者ID:repli2dev,项目名称:re-eshop,代码行数:31,代码来源:customer_order.php

示例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', '&nbsp;');
echo form::submit('submit', Kohana::lang('eshop.order'),'class=button');
echo '<br />';
echo form::close();
开发者ID:repli2dev,项目名称:re-eshop,代码行数:30,代码来源:cart_checkout.php

示例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');
?>
开发者ID:bicho44,项目名称:imglistados,代码行数:31,代码来源:datosform.php

示例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();
开发者ID:hdragomir,项目名称:ProjectsLounge,代码行数:26,代码来源:add.php

示例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', '&nbsp;');
echo form::submit('submit', Kohana::lang('user.set'),'class=button');
echo '<br />';
echo form::close();
?>
开发者ID:repli2dev,项目名称:re-eshop,代码行数:30,代码来源:setting.php

示例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 -->
开发者ID:bicho44,项目名称:imglistados,代码行数:30,代码来源:edit.php

示例7: legend

 public function legend($text, $attributes = array())
 {
     $this->legend = form::legend($text, $attributes);
     return $this;
 }
开发者ID:samsoir,项目名称:morf,代码行数:5,代码来源:Morf_Fieldset.php

示例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 
开发者ID:bicho44,项目名称:imglistados,代码行数:31,代码来源:export.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"');
开发者ID:repli2dev,项目名称:re-eshop,代码行数:31,代码来源:customer_profile.php

示例10: comment

 function comment($id, $name, $error)
 {
     echo "<fieldset><legend>Erl&auml;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>";
 }
开发者ID:nibble-arts,项目名称:openthesaurus,代码行数:21,代码来源:form.php

示例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 
开发者ID:hdragomir,项目名称:ProjectsLounge,代码行数:31,代码来源:add.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'));
?>
开发者ID:hdragomir,项目名称:ProjectsLounge,代码行数:30,代码来源:edit.php


注:本文中的form::legend方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。