本文整理汇总了PHP中set_checkbox函数的典型用法代码示例。如果您正苦于以下问题:PHP set_checkbox函数的具体用法?PHP set_checkbox怎么用?PHP set_checkbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_checkbox函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: block_content
public function block_content($context, array $blocks = array())
{
// line 4
echo "<div class=\"module\">\n <div class=\"module-head\">\n <h3>";
// line 6
echo isset($context["module_title"]) ? $context["module_title"] : null;
echo "</h3>\n </div>\n <div class=\"module-body\">\n ";
// line 9
echo get_flashdata("mapel");
echo "\n\n ";
// line 11
echo form_open("admin/mapel/edit/" . $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "id") . "/" . enurl_redirect(isset($context["uri_back"]) ? $context["uri_back"] : null), array("class" => "form-horizontal row-fluid"));
echo "\n <div class=\"control-group\">\n <label class=\"control-label\">Nama <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <input type=\"text\" name=\"nama\" class=\"span8\" value=\"";
// line 15
echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "nama")), "html", null, true);
echo "\">\n <br>";
// line 16
echo form_error("nama");
echo "\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Deskripsi</label>\n <div class=\"controls\">\n <textarea name=\"info\" class=\"span12\" rows=\"5\">";
// line 22
echo set_value("info", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "info"));
echo "</textarea>\n </div>\n </div>\n <div class=\"control-group\">\n <label class=\"control-label\">Status</label>\n <div class=\"controls\">\n <label class=\"checkbox inline\">\n <input type=\"checkbox\" value=\"1\" name=\"status\" ";
// line 29
echo twig_escape_filter($this->env, set_checkbox("status", "1", $this->getAttribute(isset($context["mapel"]) ? $context["mapel"] : null, "aktif") == 1 ? true : false), "html", null, true);
echo ">\n Aktif\n </label>\n </div>\n </div>\n <div class=\"control-group\">\n <div class=\"controls\">\n <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n <a href=\"";
// line 37
echo twig_escape_filter($this->env, isset($context["uri_back"]) ? $context["uri_back"] : null, "html", null, true);
echo "\" class=\"btn\">Batal</a>\n </div>\n </div>\n ";
// line 40
echo form_close();
echo "\n\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:32,代码来源:815802a5180dd7c8e97f6c0c40a1eabb2b4db23228355d8eabfd1a8cda19.php
示例2: preset_checkbox
function preset_checkbox($field = '', $value = '', $preset_value = '')
{
if ($value == $preset_value) {
return set_checkbox($field, $preset_value, TRUE);
} else {
return set_checkbox($field, $value);
}
}
开发者ID:csiber,项目名称:CodeIgniter-Starter,代码行数:8,代码来源:myform_helper.php
示例3: block_content
public function block_content($context, array $blocks = array())
{
// line 8
echo "<div class=\"module\">\n <div class=\"module-head\">\n <h3>Manajemen Kelas</h3>\n </div>\n <div class=\"module-body\">\n ";
// line 13
echo get_flashdata("kelas");
echo "\n\n ";
// line 15
if (is_demo_app()) {
// line 16
echo " ";
echo get_alert("warning", get_demo_msg());
echo "\n ";
}
// line 18
echo "\n <div class=\"panel panel-info\">\n <div class=\"panel-heading\">\n Edit Kelas\n </div>\n <div class=\"panel-body\">\n ";
// line 24
echo form_open("kelas/edit/" . $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "id"), array("class" => "form-horizontal row-fluid"));
echo "\n <div class=\"control-group\">\n <label class=\"control-label\">Nama Kelas <span class=\"text-error\">*</span></label>\n <div class=\"controls\">\n <input type=\"text\" name=\"nama\" class=\"span5\" placeholder=\"Nama Kelas\" value=\"";
// line 28
echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "nama")), "html", null, true);
echo "\">\n ";
// line 29
echo form_error("nama");
echo "\n </div>\n </div>\n ";
// line 32
if (!(null === $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "parent_id"))) {
// line 33
echo " <div class=\"control-group\">\n <label class=\"control-label\">Status</label>\n <div class=\"controls\">\n <label class=\"checkbox inline\">\n <input type=\"checkbox\" value=\"1\" name=\"status\" ";
// line 37
echo twig_escape_filter($this->env, set_checkbox("status", "1", $this->getAttribute(isset($context["kelas"]) ? $context["kelas"] : null, "aktif") == 1 ? true : false), "html", null, true);
echo ">\n Aktif\n </label>\n </div>\n </div>\n ";
}
// line 43
echo " <div class=\"control-group\">\n <div class=\"controls\">\n ";
// line 45
if (is_demo_app() == false) {
// line 46
echo " <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n ";
}
// line 48
echo " <a href=\"";
echo twig_escape_filter($this->env, site_url("kelas"), "html", null, true);
echo "\" class=\"btn\">Batal</a>\n </div>\n </div>\n ";
// line 51
echo form_close();
echo "\n </div>\n </div>\n\n <p class=\"text-warning\"><b>NB:</b> Kelas tidak dapat di hapus namun dapat di ubah menjadi tidak aktif.</p>\n\n ";
// line 57
echo isset($context["kelas_hirarki"]) ? $context["kelas_hirarki"] : null;
echo "\n\n <br>\n <div id=\"response_update\"></div>\n <button class=\"btn btn-primary\" id=\"update-hirarki\">Update Hirarki</button>\n </div>\n</div>\n";
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:51,代码来源:b18943fbab5aac2b10ae65165d7955236ae6d4912fac9e991bb53bb3d277.php
示例4: generaCheck
function generaCheck($metas)
{
echo "<ul>";
foreach ($metas as $meta) {
$openTag = '<';
$type = 'input type="checkbox"';
$name = ' name="' . str_replace(' ', '_', strtolower($meta['nombreTipo'])) . '[]"';
$value = ' value="' . $meta['idMetaKey'] . '" ';
$setValue = set_checkbox(str_replace(' ', '_', strtolower($meta['nombreTipo'])) . '[]', $meta['idMetaKey'], isset($meta['dato']) ? TRUE : FALSE);
$closeTag = '/>';
$nombreField = ucwords(str_replace('_', ' ', $meta['nombreMeta']));
echo '<li>' . $openTag . $type . $name . $value . $setValue . $closeTag . $nombreField . '</li>';
}
echo "</ul>";
}
开发者ID:carlosmartinezvillar,项目名称:VersionActualizada,代码行数:15,代码来源:fields.php
示例5: getFrmPrivilegios
public function getFrmPrivilegios($id_submenu = 0, $firs = true, $tipo = null, $showp = false)
{
$txt = "";
$bande = true;
$res = $this->db->select("p.id_privilegio, p.nombre, p.id_padre, p.url_accion, p.url_icono, p.target_blank, \n\t\t\t\t(SELECT count(id_privilegio) FROM empleados_privilegios WHERE id_empleado = '" . $_SESSION['id_empleado'] . "' \n\t\t\t\t\tAND id_privilegio = p.id_privilegio) as tiene_p")->from('privilegios AS p')->where("p.id_padre = '" . $id_submenu . "'")->order_by('p.nombre', 'asc')->get();
$txt .= $firs ? '<ul class="treeview">' : '<ul>';
foreach ($res->result() as $data) {
$res1 = $this->db->select('Count(p.id_privilegio) AS num')->from('privilegios AS p')->where("p.id_padre = '" . $data->id_privilegio . "'")->get();
$data1 = $res1->row();
if ($tipo != null && !is_array($tipo)) {
$set_nombre = 'dprivilegios';
$set_val = set_radio($set_nombre, $data->id_privilegio, $tipo == $data->id_privilegio ? true : false);
$tipo_obj = 'radio';
} else {
$set_nombre = 'dprivilegios[]';
if (is_array($tipo)) {
$set_val = set_checkbox($set_nombre, $data->id_privilegio, array_search($data->id_privilegio, $tipo) !== false ? true : false);
} else {
$set_val = set_checkbox($set_nombre, $data->id_privilegio);
}
$tipo_obj = 'checkbox';
}
if ($bande == true && $firs == true && $showp == true) {
$txt .= '<li><label>
<input type="' . $tipo_obj . '" name="' . $set_nombre . '" value="0" ' . $set_val . '> Padre</label>
</li>';
$bande = false;
}
if ($data1->num > 0) {
$txt .= '<li><label>
<input type="' . $tipo_obj . '" name="' . $set_nombre . '" value="' . $data->id_privilegio . '" ' . $set_val . '> ' . $data->nombre . '</label>
' . $this->getFrmPrivilegios($data->id_privilegio, false, $tipo) . '
</li>';
} else {
$txt .= '<li><label>
<input type="' . $tipo_obj . '" name="' . $set_nombre . '" value="' . $data->id_privilegio . '" ' . $set_val . '> ' . $data->nombre . '</label>
</li>';
}
$res1->free_result();
}
$txt .= '</ul>';
$res->free_result();
return $txt;
}
开发者ID:cesarmontoya770828,项目名称:nevarez,代码行数:44,代码来源:privilegios_model.php
示例6:
<form action="" method="post" class="reg_form form-horizontal">
<div class="col-md-6">
<div class="controls">
<div class="h2h">
<div class="label_title"><h3>Head to Head Settings *</h3></div>
<label class="radio h2hblock"><input type="radio" name="h2hblock" value="0" <?=set_checkbox('h2hblock', '0', ((isset($h2hblock) && $h2hblock==0) || !isset($h2hblock)));?> /> <?=vlang('accountsettings_h2hblock_unrestricted');?></label>
<label class="radio h2hblock"><input type="radio" name="h2hblock" value="1" <?=set_checkbox('h2hblock', '1', (isset($h2hblock) && $h2hblock==1));?> /> <?=vlang('accountsettings_h2hblock_protected');?></label>
<label class="radio h2hblock"><input type="radio" name="h2hblock" value="2" <?=set_checkbox('h2hblock', '2', (isset($h2hblock) && $h2hblock==2));?> /> <?=vlang('accountsettings_h2hblock_restricted');?></label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="controls">
<div class="h2h">
<div class="label_title"><h3>Privacy Settings</h3></div>
<label class="checkbox"><input type="checkbox" name="private" value="1" <?=set_checkbox('private', '1', (isset($private) && $private==1));?> /> <?=vlang('accountsettings_privacy');?></label>
</div>
</div>
</div>
<div class="col-md-12">
<div class="controls">
<div class="h2h">
<p class="h2hblock"><?=vlang('accountsettings_h2hblock_disclaimer');?></p>
</div>
</div>
</div>
<div class="clearfix"></div>
<input type="hidden" name="lang" value="english" />
开发者ID:bmfelix,项目名称:draftlounge,代码行数:30,代码来源:privacy_info.php
示例7: form_checkbox
</div>
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="form-group">
<div class="controls">
<?php
echo form_checkbox('is_jrnl', set_checkbox('is_jrnl', isset($default['is_jrnl']) ? $default['is_jrnl'] : ''), 'id="is_jrnl" style="margin-left:20px" class="form-control" placeholder="Masukkan is_jrnl"');
?>
<?php
echo form_label('Jurnal', 'is_jrnl', array('class' => 'control-label', 'style' => 'margin:10px'));
?>
<br>
<?php
echo form_checkbox('is_trx', set_checkbox('is_trx', isset($default['is_trx']) ? $default['is_trx'] : ''), 'id="is_trx" style="margin-left:20px" class="form-control" placeholder="Masukkan is_trx"');
?>
<?php
echo form_label('Transaksi', 'is_trx', array('class' => 'control-label', 'style' => 'margin:10px'));
?>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-success">
<div class="panel-heading panel-body">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="form-group">
开发者ID:roniwahyu,项目名称:Sistem-Informasi-Peternakan,代码行数:31,代码来源:form_assembly.php
示例8: set_value
<legend>Contact Details</legend>
<ul>
<li class="info_req">
<label for="phone_number">Phone Number:</label>
<input type="text" id="phone_number" name="update_phone_number" value="<?php
echo set_value('update_phone_number', $user['upro_phone']);
?>
"/>
</li>
<li>
<?php
$newsletter = $user['upro_newsletter'] == 1;
?>
<label for="newsletter">Subscribe to Newsletter:</label>
<input type="checkbox" id="newsletter" name="update_newsletter" value="1" <?php
echo set_checkbox('update_newsletter', '1', $newsletter);
?>
/>
</li>
</ul>
</fieldset>
<fieldset>
<legend>Login Details</legend>
<ul>
<li class="info_req">
<label for="email_address">Email Address:</label>
<input type="text" id="email_address" name="update_email_address" value="<?php
echo set_value('update_email_address', $user[$this->flexi_auth->db_column('user_acc', 'email')]);
?>
" class="tooltip_trigger"
开发者ID:kverawat,项目名称:flexi-auth,代码行数:31,代码来源:user_account_update_view.php
示例9: set_checkbox
<option value="<?php
echo $categories_id;
?>
"><?php
echo $categories_name;
?>
</option>
<?php
}
?>
</select>
</div>
<div class="control-group">
<label class="control-label checkbox" for="recursive"><input type="checkbox" name="recursive" id="recursive" value="1" <?php
echo set_checkbox('recursive', '1', TRUE);
?>
/> <?php
echo lang('field_search_recursive');
?>
</label>
</div>
</div>
</div>
<div class="span6">
<div class="control-group">
<label class="control-label" for="manufacturers"><?php
echo lang('field_search_manufacturers');
?>
<em>*</em></label>
<div class="controls">
开发者ID:colonia,项目名称:tomatocart-v2,代码行数:31,代码来源:advanced_search.php
示例10: set_checkbox
<div id="preview"></div>
</div>
</div><!-- /.box -->
<div class="box">
<div class="box-header">
<h3 class="box-title">
<strong>Page Attributes</strong>
</h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="form-group">
<div class="col-sm-12">
<input type="checkbox" id="showComments" name="showComments" value="1"
<?php
echo set_checkbox('showComments', 1);
?>
<?php
echo $page->getShowComments() ? 'checked="checked"' : '';
?>
> 
<label for="showComments">Manage comments</label>
</div>
</div>
</div>
</div><!-- /.box -->
</div><!-- /.col -->
</div><!-- /.row -->
</div>
开发者ID:santhapa,项目名称:ci-mag-cms,代码行数:30,代码来源:edit_content.php
示例11: set_checkbox
</label>
<div class="controls">
<input type="checkbox" id="inputCanUpload" name="inputCanUpload" value="1" <?php
echo set_checkbox('inputCanUpload', '1', $details->userCanUpload == '1' ? true : false);
?>
/>
</div>
</div>
<div class="control-group hidden useUser">
<label class="control-label" for="inputCanDownload"><?php
echo __('user_lbl_candownload');
?>
</label>
<div class="controls">
<input type="checkbox" id="inputCanDownload" name="inputCanDownload" value="1" <?php
echo set_checkbox('inputCanDownload', '1', $details->userCanDownload == '1' ? true : false);
?>
/>
</div>
</div>
<div class="control-group hidden useUser">
<label class="control-label" for="inputMaxSize"><?php
echo __('user_lbl_maxsize');
?>
</label>
<div class="controls">
<input type="text" id="inputMaxSize" name="inputMaxSize" value="<?php
echo set_value('inputMaxSize', $details->userMaxFileSize);
?>
" class="span1" /> in Bytes ( <strong>php.ini:</strong> <?php
echo roundsize(convertBytes(ini_get('upload_max_filesize')));
开发者ID:StudsPro,项目名称:islandpeeps.com,代码行数:31,代码来源:edit_user.php
示例12: form_checkbox
?>
</p>
<?php
$heading[] = form_checkbox('select_all', 'true', set_checkbox('select_all', 'true'), 'class="toggle_all" id="select_all"') . NBS . lang('create', 'select_all');
$heading[] = '<span class="notice">*</span>' . lang('field_name', 'm_field_name');
$heading[] = '<span class="notice">*</span>' . lang('field_label', 'm_field_label');
$heading[] = lang('is_required');
$heading[] = lang('is_public');
$heading[] = lang('is_reg_form');
$heading[] = lang('order');
$this->table->set_template($cp_pad_table_template);
$this->table->set_heading($heading);
$i = 0;
foreach ($new_fields as $key => $value) {
$this->table->add_row(form_checkbox('create_ids[' . $i . ']', 'y', '', ' class="toggle" id="create_box_' . $i . '"'), form_input(array('id' => $i . '_m_field_name', 'name' => 'm_field_name[' . $i . ']', 'class' => 'field', 'value' => set_value('m_field_name[' . $i . ']', $value))) . form_error('m_field_name[' . $i . ']'), form_input(array('id' => $i . '_m_field_name', 'name' => 'm_field_label[' . $i . ']', 'class' => 'field', 'value' => set_value('m_field_name[' . $i . ']', $value))), form_checkbox('required[' . $i . ']', 'y', set_checkbox('required[' . $i . ']', 'y')), form_checkbox('public[' . $i . ']', 'y', set_checkbox('public[' . $i . ']', 'y')), form_checkbox('reg_form[' . $i . ']', 'y', set_checkbox('reg_form[' . $i . ']', 'y')), form_input(array('id' => $i . '_m_field_order', 'name' => 'm_field_order[' . $i . ']', 'size' => '3', 'class' => 'field', 'value' => set_value('m_field_order[' . $i . ']', $order_start + $i))));
$i++;
}
?>
<?php
echo $this->table->generate();
?>
<p><?php
echo form_submit('import_from_xml', lang('create'), 'class="submit"');
?>
</p>
<?php
开发者ID:realfluid,项目名称:umbaugh,代码行数:31,代码来源:custom_field_form.php
示例13: set_checkbox
/* math_captcha Example
# To activate math_captcha, ensure the 'if' statement immediately below is uncommented and then comment out the reCAPTCHA 'if' statement just above.
# You will also need to enable the math_captcha examples in 'controllers/auth.php', and 'models/demo_auth_model.php'.
if (isset($captcha))
{
echo "<li>\n";
echo "<label for=\"captcha\">Captcha Question:</label>\n";
echo $captcha.' = <input type="text" id="captcha" name="login_captcha" class="width_50"/>'."\n";
echo "</li>\n";
}
#*/
?>
<li>
<label for="remember_me">Remember Me:</label>
<input type="checkbox" id="remember_me" name="remember_me" value="1" <?php
echo set_checkbox('remember_me', 1);
?>
/>
</li>
<li>
<label for="submit">Login:</label>
<input type="submit" name="login_user" id="submit" value="Submit" class="link_button large"/>
</li>
<li>
<small>Note: On this demo, 3 failed login attempts will raise security on the account, activating a 10 second time limit ban per login attempt (20 secs after 9+ attempts), and activation of a captcha that must be completed to login.</small>
</li>
<li>
<hr/>
<a href="<?php
echo $base_url;
?>
开发者ID:nikori,项目名称:flexi-auth,代码行数:31,代码来源:login_view.php
示例14: foreach
<div class="controls" aria-labelledby="roles_label" role="group">
<?php
foreach ($roles as $role) {
?>
<label class="checkbox" for="roles_<?php
echo $role->role_id;
?>
">
<input type="checkbox" name="roles[]" id="roles_<?php
echo $role->role_id;
?>
" value="<?php
echo $role->role_id;
?>
" <?php
echo set_checkbox('roles[]', $role->role_id);
?>
/>
<?php
echo $role->role_name;
?>
</label>
<?php
}
?>
</div>
</div>
<?php
}
?>
<?php
开发者ID:brkrishna,项目名称:freelance,代码行数:31,代码来源:create_context.php
示例15: foreach
</div>
<div id="categories-tab">
<div class="form">
<?php
if (!empty($categories)) {
?>
<?php
foreach ($categories as $category) {
?>
<div class="field_spacing">
<?php
echo form_label($category['name']);
?>
<?php
echo form_checkbox(array('class' => 'category', 'name' => 'categories[]', 'checked' => set_checkbox('categories[]', $category['id'], in_array($category['id'], $relation) ? TRUE : FALSE)), $category['id'], in_array($category['id'], $relation) ? TRUE : FALSE);
?>
</div>
<?php
}
?>
<?php
} else {
?>
<p>No categories found.</p>
<?php
}
?>
</div>
</div>
开发者ID:mamtasingh87,项目名称:bytecode,代码行数:30,代码来源:edit.php
示例16: form_error
<?php
echo form_error('sta_job_title_kh');
?>
</div>
</div>
<div class="form-group">
<label for="sta_job_description" class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="sta_job_description" id="sta_job_description" value="<?php
echo set_value('sta_job_description', $data['sta_job_description']);
?>
" pattern=".{1,250}" title="Allow enter from 1 to 250 characters" />
</div>
</div>
<div class="form-group">
<label for="sta_job_status" class="col-sm-2 control-label">Enable</label>
<div class="col-sm-10">
<div class="checkbox">
<label><input type="checkbox" name="sta_job_status" id="sta_job_status" value="1" <?php
echo set_checkbox('sta_job_status', 1, $data['sta_job_status'] == 1 ? TRUE : FALSE);
?>
> Check to enable this staff position</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
开发者ID:kumarsivarajan,项目名称:ume-system,代码行数:31,代码来源:edit.php
示例17: lang
<?php
echo lang('dst_enabled');
?>
</label></td>
</tr>
<tr class="odd">
<td><?php
echo lang('auto_custom_field', 'auto_custom_field');
?>
</td>
<td><?php
echo lang('auto_custom_field_blurb');
?>
<br />
<label for="auto_custom_field"><input type="checkbox" name="auto_custom_field" value="y" <?php
echo set_checkbox('auto_custom_field', 'y');
?>
/>
<?php
echo lang('auto_custom_field');
?>
</label></td>
</tr>
</tbody>
</table>
<p><?php
echo form_submit('convert_from_delimited', lang('submit'), 'class="submit"');
?>
</p>
开发者ID:thomasvandoren,项目名称:teentix-site,代码行数:30,代码来源:import_from_xml.php
示例18: set_value
<div class="col-sm-10">
<input type="text" class="form-control" id="mod_foldername" placeholder="Enter folder name of module" name="mod_foldername" value="<?php
echo set_value('mod_foldername', $data['mod_foldername']);
?>
" pattern=".{2,50}" required title="Allow enter from 2 to 50 characters">
<?php
echo form_error('mod_foldername');
?>
</div>
</div>
<div class="form-group">
<label for="mod_status" class="col-sm-2 control-label">Enable</label>
<div class="col-sm-10">
<div class="checkbox">
<label><input type="checkbox" name="mod_status" id="mod_status" value="1" <?php
echo set_checkbox('mod_status', 1, $data['mod_status'] == 1 ? TRUE : FALSE);
?>
> Check to enable this group</label>
</div>
</div>
</div>
<div class="form-group">
<label for="mod_description" class="col-sm-2 control-label">Description</label>
<div class="col-sm-10">
<textarea class="form-control" rows="5" name="mod_description" id="mod_description"><?php
echo set_value('mod_description');
?>
</textarea>
</div>
</div>
开发者ID:kumarsivarajan,项目名称:ume-system,代码行数:30,代码来源:edit.php
示例19: set_checkbox
?>
" <?php
echo set_checkbox('daily_days[]', $key, TRUE);
?>
><?php
echo $value;
?>
</label>
<?php
} else {
?>
<label class="btn btn-default"><input type="checkbox" name="daily_days[]" value="<?php
echo $key;
?>
" <?php
echo set_checkbox('daily_days[]', $key);
?>
><?php
echo $value;
?>
</label>
<?php
}
?>
<?php
}
?>
</div>
<?php
echo form_error('daily_days[]', '<span class="text-danger">', '</span>');
?>
开发者ID:ududsha,项目名称:TastyIgniter,代码行数:31,代码来源:locations_edit.php
示例20: set_checkbox
?>
/>
</td>
<td class="align_ctr">
<?php
$status = (bool) $row[$this->flexi_cart_admin->db_column('item_shipping', 'status')];
?>
<input type="hidden" name="update[<?php
echo $item_shipping_id;
?>
][status]" value="0"/>
<input type="checkbox" name="update[<?php
echo $item_shipping_id;
?>
][status]" value="1" <?php
echo set_checkbox('update[' . $item_shipping_id . '][status]', '1', $status);
?>
/>
</td>
<td class="align_ctr">
<input type="hidden" name="update[<?php
echo $item_shipping_id;
?>
][delete]" value="0"/>
<input type="checkbox" name="update[<?php
echo $item_shipping_id;
?>
][delete]" value="1"/>
</td>
</tr>
<?php
开发者ID:kverawat,项目名称:flexi-cart,代码行数:31,代码来源:item_shipping_update_view.php
注:本文中的set_checkbox函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论