本文整理汇总了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>
示例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>
示例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>
示例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>
示例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();
示例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();
示例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>
示例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>