當前位置: 首頁>>代碼示例>>PHP>>正文


PHP client::validation方法代碼示例

本文整理匯總了PHP中client::validation方法的典型用法代碼示例。如果您正苦於以下問題:PHP client::validation方法的具體用法?PHP client::validation怎麽用?PHP client::validation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在client的用法示例。


在下文中一共展示了client::validation方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

</p>
<p>
<?php 
echo form::auto_label('name');
echo form::input('name', $space->name, array('size="20"'));
client::validation('name');
?>
</p>

<p>
<?php 
echo form::auto_label('index');
echo form::input('index', $space->index, array('size="20"'));
client::validation('index');
?>
</p>

<p>
<?php 
echo form::auto_label('img_filename');
echo form::input('img_filename', $space->img_filename, array('size="20"'));
client::validation('img_filename');
?>
</p>

<p>
<?php 
echo form::submit('submit', 'Save');
echo form::close();
?>
</p>
開發者ID:samkeen,項目名稱:spot,代碼行數:31,代碼來源:spaces_edit.php

示例2: Requests

        <?php 
echo form::textarea('other_comments', $form['other_comments'], 'rows="5" cols="40"');
?>

    </div>

    <p>
        <?php 
echo form::checkbox('machine_needed', '1', $this->input->post('machine_needed') == 1);
echo form::auto_label('machine_needed', 'Will this user need a machine?');
?>
    </p>


    <div id="machine_box" class="section" style="display: none;">
        <?php 
echo form::auto_label('machine_type', 'Type of machine needed');
echo form::dropdown('machine_type', $lists['machine_type'], $form['machine_type']);
client::validation('machine_type');
?>

        <?php 
echo form::auto_label('machine_special_requests', 'Special Requests (software/hardware/setup)');
client::validation('machine_special_requests');
echo form::textarea('machine_special_requests', $form['machine_special_requests'], 'rows="5" cols="40"');
?>
    </div>

    <input type="submit" id="submit" name="submit" value="Submit Request" />
</form>
開發者ID:samkeen,項目名稱:workermgmt-k,代碼行數:30,代碼來源:hiring_employee.php

示例3: array

</p>
<p>
<?php 
echo form::auto_label('name');
echo form::input('name', $building->name, array('size="20"'));
client::validation('name');
?>
</p>

<p>
<?php 
echo form::auto_label('lat');
echo form::input('lat', $building->lat, array('size="20"'));
client::validation('lat');
?>
</p>

<p>
<?php 
echo form::auto_label('long');
echo form::input('long', $building->long, array('size="20"'));
client::validation('long');
?>
</p>

<p>
<?php 
echo form::submit('submit', 'Save');
echo form::close();
?>
</p>
開發者ID:samkeen,項目名稱:spot,代碼行數:31,代碼來源:buildings_add.php

示例4: array

<h2>Markers :: Edit</h2>

<?php 
echo form::open();
echo form::hidden('id', $marker->id);
?>
<p>
<?php 
echo form::auto_label('email');
echo form::input('email', $marker->email, array('size="20"'));
client::validation('email');
?>
</p>

<?php 
echo form::auto_label('space', 'Spaces');
//var_dump($marker->spaces->find_all()->as_array('id','name'));
$space = $marker->spaces->find_all()->as_array('space_id', 'name');
//$space = key($space);
echo form::check_group('space', $spaces_list, $space);
client::validation('space');
?>

<p>
<?php 
echo form::submit('submit', 'Save');
echo form::close();
?>
</p>

開發者ID:samkeen,項目名稱:spot,代碼行數:29,代碼來源:markers_edit.php

示例5:

echo form::dropdown('building_id', $buildings_list, $form['building_id']);
client::validation('building_id');
?>
</div>

<div>
<?php 
echo form::label('index');
echo form::input('index', $form['index']);
client::validation('index');
?>
</div>

<div>
<?php 
echo form::label('img_uri');
echo form::input('img_uri', $form['img_uri']);
client::validation('img_uri');
?>
</div>

<div>
<?php 
echo form::label('active');
echo form::checkbox('active', '1', $form['active'] == '1');
?>
</div>


<?php 
echo form::close();
開發者ID:samkeen,項目名稱:Confab-Server,代碼行數:31,代碼來源:spaces_add.php

示例6: uniqid

      <?php 
echo form::hidden('form_token', $_SESSION['form_token'] = uniqid());
?>
      <div class="input">
        <?php 
echo form::label('bz_username', 'Bugzilla E-mail Address:');
?>
        <?php 
echo form::input('bz_username', $bz_username);
?>
        <?php 
client::validation('bz_username');
?>
      </div>
      <div class="input">
        <?php 
echo form::label('bz_password', 'Bugzilla Password:');
?>
        <?php 
echo form::password('bz_password', $bz_password);
?>
        <?php 
client::validation('bz_password');
?>
      </div>
      <div>
        <input class="submit" type="submit" name="submit" value="Login" />
      </div>
    <?php 
echo form::close();
開發者ID:samkeen,項目名稱:workermgmt-k,代碼行數:30,代碼來源:bz_login.php

示例7: array

<h2>Markers :: Add</h2>

<?php 
echo form::open();
?>
<p>
<?php 
echo form::auto_label('email');
echo form::input('email', $marker->email, array('size="20"'));
client::validation('email');
?>
</p>

<p>
<?php 
echo form::submit('submit', 'Save');
echo form::close();
?>
</p>
開發者ID:samkeen,項目名稱:spot,代碼行數:19,代碼來源:markers_add.php

示例8:

                you want a username in ADDITION to the default.</i></p>
        <?php 
echo form::auto_label('mail_alias', 'Mailing Alias');
echo form::input('mail_alias', $form['mail_alias'], 'size="20"');
?>
        <?php 
client::validation('mail_alias');
?>

        <p><i>Besides "all" and any location-based lists, are there any mailing
                lists should this user be a member of? (optional)</i></p>
        <?php 
echo form::auto_label('mail_lists', 'Mailing Lists');
echo form::input('mail_lists', $form['mail_lists'], 'size="30"');
?>
        <?php 
client::validation('mail_lists');
?>

        <?php 
echo form::auto_label('other_comments');
client::validation('other_comments');
?>
        <?php 
echo form::textarea('other_comments', $form['other_comments'], 'rows="5" cols="40"');
?>

    </div>
    
    <input type="submit" id="submit" name="submit" value="Submit Request" />
</form>
開發者ID:samkeen,項目名稱:workermgmt-k,代碼行數:31,代碼來源:hiring_contractor.php


注:本文中的client::validation方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。