コード例 #1
0
ファイル: Edit.php プロジェクト: hung5s/yap
<?php

if ($module != '') {
    Yii::app()->layout = 'module';
}
if (!empty($category)) {
    echo FHtml::beginForm(array('/Core/category/save'), 'post', array('enctype' => 'multipart/form-data'));
    FHtml::hightlightErrorFields();
    echo FHtml::activeHiddenField($category, 'Id');
    echo FHtml::activeHiddenField($category, 'IsActive', array('value' => 1));
    ?>
    <h3>Edit category</h3>
    <div class="Input">
        <label for="Category_Title">Name (*): </label><a name="title"></a>
        <?php 
    echo FHtml::activeTextField($category, 'Title');
    ?>
    </div>
    <div class="Input">
        <label for="Category_Description">Description: </label>
        <?php 
    echo FHtml::activeTextArea($category, 'Description', array('cols' => 48, 'rows' => 6));
    ?>
    </div>
    
    <div class="Input">
        <label for="Category_Image">Image: </label><a name="title"></a>
        <?php 
    echo FHtml::activeFileField($category, 'Image');
    if (!empty($category->Image)) {
        ?>
コード例 #2
0
ファイル: Edit.php プロジェクト: hung5s/yap
<div class="Input">
    <label for="User_FirstName">First Name *: </label>
    <?php 
    echo FHtml::activeTextField($user, 'FirstName');
    ?>
</div>
<div class="Input">
    <label for="User_LastName">Last Name *: </label>
    <?php 
    echo FHtml::activeTextField($user, 'LastName');
    ?>
</div>
<div class="Input">
    <label for="User_Email">Email address *: </label>
    <?php 
    echo FHtml::activeTextField($user, 'Email');
    ?>
</div>

<?php 
    if ($user->Id > 0) {
        ?>
	<div class="Input">
	    <label for="User_Status">Status *: </label>
	    <?php 
        echo FHtml::activeDropDownList($user, 'Status', $user->StatusCollection);
        ?>
	</div>
<?php 
    }
    ?>
コード例 #3
0
ファイル: Edit.php プロジェクト: hung5s/yap
    <?php 
    echo FHtml::activeTextField($module, 'Homepage');
    ?>
</div>

<div class="Input">
    <label>Url for update</label>
    <?php 
    echo FHtml::activeTextField($module, 'UpdateUrl');
    ?>
</div>

<div class="Input">
    <label>TablePrefix</label>
    <?php 
    echo FHtml::activeTextField($module, 'TablePrefix');
    ?>
</div>

<div class="Action">
    <?php 
    echo FHtml::submitButton('Save', array('name' => 'Save'));
    ?>
    <?php 
    echo FHtml::link('Cancel', array('/Core/modules/all'));
    ?>
</div>

<?php 
    echo FHtml::activeHiddenField($module, 'Id');
    if ($module->IsSystem) {
コード例 #4
0
ファイル: EditAccount.php プロジェクト: hung5s/yap
        <div class="Input">
            <label for="User_FirstName">First name</label>
            <?php 
echo FHtml::activeTextField($user, 'FirstName', array('class' => 'text'));
?>
        </div>
        <div class="Input">
            <label for="User_LastName">Last name</label>
            <?php 
echo FHtml::activeTextField($user, 'LastName', array('class' => 'text'));
?>
        </div>
        <div class="Input">
            <label for="User_Username">Email</label>
            <?php 
echo FHtml::activeTextField($user, 'Email', array('class' => 'text'));
?>
        </div>
        <div class="Input">
            <label for="">&nbsp;</label>
            <input type="checkbox" id="changePassword" /><span> I want to change my password</span>
        </div>
        <div class="Input Password" style="display:none">
            <label for="User_Username">Password</label>
            <?php 
echo FHtml::activePasswordField($user, 'Password', array('value' => ''));
?>
        </div>
        <div class="Input Password" style="display:none">
            <label for="User_Username">Verify password</label>
            <?php 
コード例 #5
0
ファイル: Edit.php プロジェクト: hung5s/yap
 <div class="Input">
     <label for="Page_Value">Value</label>
     <?php 
 echo FHtml::activeTextField($param, 'Value');
 ?>
 </div>
 <div class="Input">
     <label for="Page_Description">Description</label>
     <?php 
 echo FHtml::activeTextField($param, 'Description');
 ?>
 </div>
 <div class="Input">
     <label for="Page_GroupName">GroupName</label>
     <?php 
 echo FHtml::activeTextField($param, 'GroupName');
 ?>
 </div>
 <div class="Input">
     <label for="Page_Visible">Visible</label>
     <?php 
 echo FHtml::activeDropDownList($param, 'Visible', array('1' => 'True', '0' => 'False'));
 ?>
 </div>
 <div class="Input">
     <label for="Page_Module">Module</label>
     <?php 
 echo CHtml::dropDownList('Setting[Module]', $param->Module, CHtml::listData($modules, 'Name', 'Name'));
 ?>
 </div>