• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP set_radio函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中set_radio函数的典型用法代码示例。如果您正苦于以下问题:PHP set_radio函数的具体用法?PHP set_radio怎么用?PHP set_radio使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了set_radio函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>";
     // line 10
     echo anchor("pengumuman", "Pengumuman");
     echo " / Buat Pengumuman</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("pengumuman");
     echo "\n\n        ";
     // line 15
     echo form_open_multipart("pengumuman/add", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Judul <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"judul\" class=\"span12\" value=\"";
     // line 19
     echo twig_escape_filter($this->env, set_value("judul"), "html", null, true);
     echo "\">\n                    <br>";
     // line 20
     echo form_error("judul");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Tgl. Tampil <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"tgl_tampil\" class=\"span4\" value=\"";
     // line 26
     echo twig_escape_filter($this->env, set_value("tgl_tampil"), "html", null, true);
     echo "\" id=\"tgl-tampil\">\n                    <br>";
     // line 27
     echo form_error("tgl_tampil");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Konten <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <textarea name=\"konten\" id=\"konten\" style=\"height:400px;width:100%;\">";
     // line 33
     echo set_value("konten");
     echo "</textarea>\n                    ";
     // line 34
     echo form_error("konten");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Tampil Disiswa</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_siswa\" value=\"1\" ";
     // line 40
     echo twig_escape_filter($this->env, set_radio("tampil_siswa", "1", true), "html", null, true);
     echo "> Ya</label>\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_siswa\" value=\"0\" ";
     // line 41
     echo twig_escape_filter($this->env, set_radio("tampil_siswa", "0"), "html", null, true);
     echo "> Tidak</label>\n                    <br>";
     // line 42
     echo form_error("tampil_siswa");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Tampil Dipengajar</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_pengajar\" value=\"1\" ";
     // line 48
     echo twig_escape_filter($this->env, set_radio("tampil_pengajar", "1", true), "html", null, true);
     echo "> Ya</label>\n                    <label class=\"radio inline\"><input type=\"radio\" name=\"tampil_pengajar\" value=\"0\" ";
     // line 49
     echo twig_escape_filter($this->env, set_radio("tampil_pengajar", "0"), "html", null, true);
     echo "> Tidak</label>\n                    <br>";
     // line 50
     echo form_error("tampil_pengajar");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n                    <a href=\"";
     // line 56
     echo twig_escape_filter($this->env, site_url("pengumuman"), "html", null, true);
     echo "\" class=\"btn btn-default\">Kembali</a>\n                </div>\n            </div>\n        ";
     // line 59
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:56,代码来源:58006a588f0a4ee0ad62ee15f16934eaa6e7702c279fed53fae5649b6dcf.php


示例2: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"module\">\n    <div class=\"module-head\">\n        <h3>Pengaturan</h3>\n    </div>\n    <div class=\"module-body\">\n        ";
     // line 13
     echo get_flashdata("pengaturan");
     echo "\n\n        ";
     // line 15
     echo form_open_multipart("welcome/pengaturan", array("class" => "form-horizontal row-fluid"));
     echo "\n            <div class=\"control-group\">\n                <label class=\"control-label\">Nama sekolah <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"nama-sekolah\" class=\"span8\" value=\"";
     // line 19
     echo twig_escape_filter($this->env, set_value("nama-sekolah", get_pengaturan("nama-sekolah", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 20
     echo form_error("nama-sekolah");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Alamat sekolah <span class=\"text-error\">*</span></label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"alamat\" class=\"span8\" value=\"";
     // line 26
     echo twig_escape_filter($this->env, set_value("alamat", get_pengaturan("alamat", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 27
     echo form_error("alamat");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Telpon</label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"telp\" class=\"span5\" value=\"";
     // line 33
     echo twig_escape_filter($this->env, set_value("telp", get_pengaturan("telp", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 34
     echo form_error("telp");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Registrasi siswa</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-siswa\" value=\"1\" ";
     // line 41
     echo twig_escape_filter($this->env, set_radio("registrasi-siswa", "1", get_pengaturan("registrasi-siswa", "value") == "1" ? true : ""), "html", null, true);
     echo "> Tampilkan\n                    </label>\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-siswa\" value=\"0\" ";
     // line 44
     echo twig_escape_filter($this->env, set_radio("registrasi-siswa", "0", get_pengaturan("registrasi-siswa", "value") == "0" ? true : ""), "html", null, true);
     echo "> Sembuyikan\n                    </label>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Registrasi pengajar</label>\n                <div class=\"controls\">\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-pengajar\" value=\"1\" ";
     // line 52
     echo twig_escape_filter($this->env, set_radio("registrasi-pengajar", "1", get_pengaturan("registrasi-pengajar", "value") == "1" ? true : ""), "html", null, true);
     echo "> Tampilkan\n                    </label>\n                    <label class=\"radio inline\">\n                        <input type=\"radio\" name=\"registrasi-pengajar\" value=\"0\" ";
     // line 55
     echo twig_escape_filter($this->env, set_radio("registrasi-pengajar", "0", get_pengaturan("registrasi-pengajar", "value") == "0" ? true : ""), "html", null, true);
     echo "> Sembuyikan\n                    </label>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Info Registrasi</label>\n                <div class=\"controls\">\n                    <textarea name=\"info-registrasi\" class=\"tinymce\" style=\"width:100%; height:300px;\">";
     // line 62
     echo set_value("info-registrasi", get_pengaturan("info-registrasi", "value"));
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Peraturan E-learning</label>\n                <div class=\"controls\">\n                    <textarea name=\"peraturan-elearning\" class=\"tinymce\" style=\"width:100%; height:300px;\">";
     // line 68
     echo set_value("peraturan-elearning", get_pengaturan("peraturan-elearning", "value"));
     echo "</textarea>\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <label class=\"control-label\">Email server</label>\n                <div class=\"controls\">\n                    <input type=\"text\" name=\"email-server\" class=\"span5\" value=\"";
     // line 74
     echo twig_escape_filter($this->env, set_value("email-server", get_pengaturan("email-server", "value")), "html", null, true);
     echo "\">\n                    <br>";
     // line 75
     echo form_error("email-server");
     echo "\n                </div>\n            </div>\n            <div class=\"control-group\">\n                <div class=\"controls\">\n                    <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n                </div>\n            </div>\n        ";
     // line 83
     echo form_close();
     echo "\n\n    </div>\n</div>\n";
 }
开发者ID:unregister,项目名称:new_elearning,代码行数:56,代码来源:7c6785edc4eca16ab1544d48104c49727a1d4b532f8759711570632a9508.php


示例3: generate_radio

function generate_radio($field, $data)
{
    $c0 = set_radio('inp_' . $field . '_prsn', 0, 0 == $data[$field . '_prsn']);
    $c1 = set_radio('inp_' . $field . '_prsn', 1, 1 == $data[$field . '_prsn']);
    $c3 = set_radio('inp_' . $field . '_prsn', 3, 3 == $data[$field . '_prsn']);
    $c5 = set_radio('inp_' . $field . '_prsn', 5, 5 == $data[$field . '_prsn']);
    $rad = '<span class="col-lg-6"><input type="radio" name="inp_' . $field . '_prsn" value="0" ' . $c0 . '/> 0-25%</span>
            <span class="col-lg-6"><input type="radio" name="inp_' . $field . '_prsn" value="1" ' . $c1 . '/> 26-50%</span> 
            <span class="col-lg-6"><input type="radio" name="inp_' . $field . '_prsn" value="3" ' . $c3 . '/> 51-75%</span>
            <span class="col-lg-6"><input type="radio" name="inp_' . $field . '_prsn" value="5" ' . $c5 . '/> 76-100%</span>';
    return $rad;
}
开发者ID:TIAbdilah,项目名称:bk123,代码行数:12,代码来源:edit.php


示例4: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Alasan laporan</h4>\n";
     // line 5
     echo get_flashdata("laporkan");
     echo "\n\n<p>Mengapa anda melaporkan komentar tersebut?</p>\n\n";
     // line 9
     echo form_open("materi/detail/" . $this->getAttribute(isset($context["materi"]) ? $context["materi"] : null, "id") . "/laporkan/" . $this->getAttribute(isset($context["komentar"]) ? $context["komentar"] : null, "id"));
     echo "\n";
     // line 10
     echo form_error("alasan");
     echo "\n<label class=\"radio\">\n  <input type=\"radio\" ";
     // line 12
     echo twig_escape_filter($this->env, set_radio("alasan", "SARA"), "html", null, true);
     echo " class=\"hide-lain\" name=\"alasan\" value=\"SARA\"> SARA\n</label>\n<label class=\"radio\">\n  <input type=\"radio\" ";
     // line 15
     echo twig_escape_filter($this->env, set_radio("alasan", "Pornografi"), "html", null, true);
     echo " class=\"hide-lain\" name=\"alasan\" value=\"Pornografi\"> Pornografi\n</label>\n<label class=\"radio\">\n  <input type=\"radio\" ";
     // line 18
     echo twig_escape_filter($this->env, set_radio("alasan", "Profokasi/Intimidasi"), "html", null, true);
     echo " class=\"hide-lain\" name=\"alasan\" value=\"Profokasi/Intimidasi\"> Profokasi/Intimidasi\n</label>\n<label class=\"radio\">\n  <input type=\"radio\" ";
     // line 21
     echo twig_escape_filter($this->env, set_radio("alasan", "tulis"), "html", null, true);
     echo " class=\"show-lain\" name=\"alasan\" value=\"tulis\"> Tulis alasan\n</label>\n<div class=\"form-lain ";
     // line 23
     echo twig_test_empty(get_post_data("alasan")) || get_post_data("alasan") != "tulis" ? "hide" : "";
     echo "\">\n    <textarea class=\"span12\" name=\"alasan_lain\" placeholder=\"Tulis alasan anda\">";
     // line 24
     echo twig_escape_filter($this->env, set_value("alasan_lain"), "html", null, true);
     echo "</textarea>\n    ";
     // line 25
     echo form_error("alasan_lain");
     echo "\n</div>\n<p><button type=\"submit\" class=\"btn btn-primary\">Submit</button></p>\n";
     // line 28
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:38,代码来源:9e099557ff2888af408b3d56eb271e09d9d40394fc59564ba8d488d23000.php


示例5: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<strong>Edit Profil</strong>\n";
     // line 5
     echo get_flashdata("edit");
     echo "\n\n";
     // line 7
     echo form_open("admin/siswa/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . (isset($context["siswa_id"]) ? $context["siswa_id"] : null));
     echo "\n<input type=\"hidden\" name=\"siswa_id\" value=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["siswa_id"]) ? $context["siswa_id"] : null, "html", null, true);
     echo "\">\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <th width=\"30%\">NIS <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" id=\"nis\" name=\"nis\" style=\"width:40%;\" value=\"";
     // line 14
     echo twig_escape_filter($this->env, set_value("nis", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "nis")), "html", null, true);
     echo "\">\n                <br>";
     // line 15
     echo form_error("nis");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Nama <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"nama\" style=\"width:90%;\" value=\"";
     // line 21
     echo twig_escape_filter($this->env, set_value("nama", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "nama")), "html", null, true);
     echo "\">\n                <br>";
     // line 22
     echo form_error("nama");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Jenis Kelamin <span class=\"text-error\">*</span></th>\n            <td>\n                <label class=\"radio inline\"><input type=\"radio\" name=\"jenis_kelamin\" value=\"Laki-laki\" ";
     // line 28
     echo twig_escape_filter($this->env, set_radio("jenis_kelamin", "Laki-laki", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "jenis_kelamin") == "Laki-laki" ? true : false), "html", null, true);
     echo "> Laki-laki</label>\n                <label class=\"radio inline\"><input type=\"radio\" name=\"jenis_kelamin\" value=\"Perempuan\" ";
     // line 29
     echo twig_escape_filter($this->env, set_radio("jenis_kelamin", "Perempuan", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "jenis_kelamin") == "Perempuan" ? true : false), "html", null, true);
     echo "> Perempuan</label>\n                <br>";
     // line 30
     echo form_error("jenis_kelamin");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Tahun Masuk <span class=\"text-error\">*</span></th>\n            <td>\n                <input type=\"text\" name=\"tahun_masuk\" maxlength=\"4\" style=\"width:15%;\" value=\"";
     // line 36
     echo twig_escape_filter($this->env, set_value("tahun_masuk", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tahun_masuk")), "html", null, true);
     echo "\">\n                <br>";
     // line 37
     echo form_error("tahun_masuk");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Tempat Lahir</th>\n            <td>\n                <input type=\"text\" name=\"tempat_lahir\" value=\"";
     // line 43
     echo twig_escape_filter($this->env, set_value("tempat_lahir", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tempat_lahir")), "html", null, true);
     echo "\">\n                <br>";
     // line 44
     echo form_error("tempat_lahir");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Tanggal Lahir</th>\n            <td>\n                ";
     // line 50
     $context["tgl"] = !twig_test_empty($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) ? twig_date_format_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir"), "d") : "";
     // line 51
     echo "                ";
     $context["bln"] = !twig_test_empty($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) ? twig_date_format_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir"), "m") : "";
     // line 52
     echo "                ";
     $context["thn"] = !twig_test_empty($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir")) ? twig_date_format_filter($this->env, $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "tgl_lahir"), "Y") : "";
     // line 53
     echo "                <select class=\"span2\" style=\"width: 20%;float:left;margin-right:5px;\" name=\"tgl_lahir\">\n                    <option value=\"\">--Tgl--</option>\n                    ";
     // line 55
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 31));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 56
         echo "                        <option value=\"";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("tgl_lahir", isset($context["i"]) ? $context["i"] : null, (isset($context["i"]) ? $context["i"] : null) == (isset($context["tgl"]) ? $context["tgl"] : null) ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "</option>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 58
     echo "                </select>\n                <select class=\"span2\" style=\"width: 35%;float:left;margin-right:5px;\" name=\"bln_lahir\">\n                    <option value=\"\">--Bulan--</option>\n                    ";
     // line 61
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range(1, 12));
     foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
         // line 62
         echo "                        <option value=\"";
         echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
         echo "\" ";
         echo twig_escape_filter($this->env, set_select("bln_lahir", isset($context["i"]) ? $context["i"] : null, (isset($context["i"]) ? $context["i"] : null) == (isset($context["bln"]) ? $context["bln"] : null) ? true : false), "html", null, true);
         echo ">";
         echo twig_escape_filter($this->env, get_indo_bulan(isset($context["i"]) ? $context["i"] : null), "html", null, true);
         echo "</option>\n                    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 64
     echo "                </select>\n                <input type=\"text\" name=\"thn_lahir\" style=\"width:15%;float:left;\" maxlength=\"4\" value=\"";
     // line 65
     echo twig_escape_filter($this->env, set_value("thn_lahir", isset($context["thn"]) ? $context["thn"] : null), "html", null, true);
     echo "\" placeholder=\"Tahun\">\n                <br>";
     // line 66
     echo form_error("thn_lahir");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Agama</th>\n            <td>\n                <select name=\"agama\" style=\"width:30%;\">\n                    <option value=\"\">--pilih--</option>\n                    <option value=\"ISLAM\" ";
     // line 74
     echo twig_escape_filter($this->env, set_select("agama", "ISLAM", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama") == "ISLAM" ? true : false), "html", null, true);
//.........这里部分代码省略.........
开发者ID:Raniratna,项目名称:new_elearning,代码行数:101,代码来源:32219dfed1fd50555f6036e4f9e600c420546d0786c0f29cd094d78a5728.php


示例6: set_value

				<input type="input" class="form-control" name="numero" value="<?php 
    echo set_value('numero', $numero);
    ?>
"/><br />
			</div>

			<div class="form-group">
				<label for="publicado">Publicado</label>
				<br>
				<input type="radio"  name="publicado" value="1" <?php 
    echo set_radio('publicado', '1', $esta_publicado);
    ?>
/>Si
				<br>
				<input type="radio"  name="publicado" value="0" <?php 
    echo set_radio('publicado', '0', $no_esta_publicado);
    ?>
/>No
			</div>
			<input type="hidden" name="imagen_original" value="<?php 
    echo set_value('imagen_original', $imagen_original);
    ?>
"/>
			<div class="form-group">
				<label for="imagen">Imagen</label>
				<div class="row">
					<div class="col-md-4 col-sm-4 col-lg-4">
						<?php 
    if (!empty($imagen_original)) {
        echo img('assets/img/' . $imagen_original, FALSE, array('class' => 'img-thumbnail'));
    }
开发者ID:quirogamauricio,项目名称:Gala,代码行数:31,代码来源:ver.php


示例7:

							<div class="col-md-9">
								<?if(!empty($lists['total'])):?>
									<?foreach($lists['data'] as $l):?>	
										<label class="radio"><input type="radio" name="main_list" value="<?=$l['id']?>" <?=set_radio('main_list',$l['id'],$l['id']==$this->config->item('mailchimp_main_list'))?>/><?=$l['name']?></label>
									<?endforeach;?>
								<?endif;?>
								<p class="help-block">This is the list users will be asked about on the registration page.</p>
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="control-group">
							<label class="col-md-3 control-label">Active Lists</label>
							<div class="col-md-9">
								<?if(!empty($lists['total'])):?>
									<?foreach($lists['data'] as $l):?>	
										<label class="checkbox"><input type="checkbox" name="active_lists[]" value="<?=$l['id']?>" <?=set_radio('active_lists[]',$l['id'],isset($active_lists[$l['id']]))?>/><?=$l['name']?></label>
									<?endforeach;?>
								<?endif;?>
								<p class="help-block">Users will be able to subscribe to and unsubscribe from these lists from their email settings page.</p>
							</div>
						</div>
					</div>
					<div class="form-actions">
						<input type="submit" name="submit" value="Save Changes" class="btn btn <?php echo $themes['primary']; ?>" />
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
开发者ID:bmfelix,项目名称:draftlounge,代码行数:31,代码来源:mailchimp.php


示例8: form_error

        <div class="control-group <?php 
echo form_error('tahunakademik_status') ? 'error' : '';
?>
">
            <?php 
echo form_label('Status' . lang('bf_form_label_required'), 'tahunakademik_status', array('class' => "control-label"));
?>
            <div class='controls'>
        <label class="radio">
            <input id="tahunakademik_status" name="tahunakademik_status" type="radio" class="" value="A" <?php 
echo set_radio('tahunakademik_status', 'A', TRUE);
?>
 />
            <label for="tahunakademik_status">Aktik</label>
            <input id="tahunakademik_status" name="tahunakademik_status" type="radio" class="" value="N" <?php 
echo set_radio('tahunakademik_status', 'N');
?>
 />
            <label for="tahunakademik_status">Tidak Aktif</label>
            <span class="help-inline"><?php 
echo form_error('tahunakademik_status');
?>
</span>
            </label>
        </div>



        </div>

开发者ID:triasfahrudin,项目名称:siska21,代码行数:29,代码来源:create.php


示例9: rbt_make_inputs

function rbt_make_inputs($inputs, $default = array(), $clear_form = false)
{
    shout_dev();
    echo validation_errors('<div class="alert alert-error">', '</div>');
    //$CI=&get_instance();
    //$data = $CI->input->post();
    $datepicker = FALSE;
    foreach ($inputs as $name => $input) {
        $default_value = '';
        if (array_key_exists($name, $default)) {
            $default_value = $default[$name];
        }
        if ($input['type'] == 'text') {
            echo '<p>' . $input['display'];
            if (strpos($input['rules'], 'required') !== false) {
                echo '<span title="required" style="color: #F00; font-weight: bold">*</span>';
            }
            echo '<br/>';
            if (!$clear_form) {
                echo '<input type="text" name="' . $name . '" value="' . set_value($name, $default_value) . '" id="' . $input['id'] . '" class="' . $input['class'] . '"/></p>';
            }
            if ($clear_form) {
                echo '<input type="text" name="' . $name . '" value="" id="' . $input['id'] . '" class="' . $input['class'] . '"/></p>';
            }
        } elseif ($input['type'] == 'datetime' or $input['type'] == 'date') {
            echo '<p>' . $input['display'];
            if (strpos($input['rules'], 'required') !== false) {
                echo '<span title="required" style="color: #F00; font-weight: bold">*</span>';
            }
            echo '<br/>';
            if (!$clear_form) {
                echo '<input type="text" name="' . $name . '" value="' . set_value($name, $default_value) . '" id="' . $input['id'] . '" class="' . $input['class'] . ' datepicker"/></p>';
            }
            if ($clear_form) {
                echo '<input type="text" name="' . $name . '" value="" id="' . $input['id'] . '" class="' . $input['class'] . ' datepicker"/></p>';
            }
        } elseif ($input['type'] == 'password') {
            echo '<p>' . $input['display'];
            if (strpos($input['rules'], 'required') !== false) {
                echo '<span title="required" style="color: #F00; font-weight: bold">*</span>';
            }
            echo '<br/>';
            if (!$clear_form) {
                echo '<input type="password" name="' . $name . '" value="' . set_value($name, $default_value) . '" id="' . $input['id'] . '" class="' . $input['class'] . '"/></p>';
            }
            if ($clear_form) {
                echo '<input type="password" name="' . $name . '" value="" id="' . $input['id'] . '" class="' . $input['class'] . '"/></p>';
            }
        } elseif ($input['type'] == 'textarea') {
            echo '<p>' . $input['display'];
            if (strpos($input['rules'], 'required') !== false) {
                echo '<span title="required" style="color: #F00; font-weight: bold">*</span>';
            }
            echo '<br/>';
            if (!$clear_form) {
                echo '<textarea name="' . $name . '" id="' . $input['id'] . '" class="' . $input['class'] . '">' . set_value($name, $default_value) . '</textarea></p>';
            }
            if ($clear_form) {
                echo '<textarea name="' . $name . '" id="' . $input['id'] . '" class="' . $input['class'] . '"></textarea></p>';
            }
        } elseif ($input['type'] == 'upload') {
            echo '<p>' . $input['display'];
            if (strpos($input['rules'], 'required') !== false) {
                echo '<span title="required" style="color: #F00; font-weight: bold">*</span>';
            }
            echo '<br/>';
            if (!$clear_form) {
                //get file path
                $exp = explode('|', $input['rules']);
                foreach ($exp as $ex) {
                    if (strpos($ex, 'path') !== FALSE) {
                        $path = str_replace('upload_path:./', '', $ex);
                        $path = trim($path, '/') . '/' . $default_value;
                        $src = base_url($path);
                        $ext = pathinfo($path, PATHINFO_EXTENSION);
                        if ($default_value != NULL) {
                            if ($ext == 'png' or $ext == 'jpg' or $ext == 'gif') {
                                echo '<img class="upload_default ' . $name . '" src="' . $src . '"/><br/>';
                            } else {
                                echo '<div class="alert"><a href="' . $path . '">' . $default_value . '</a></div>';
                            }
                        }
                    }
                }
            }
            echo '<input type="file" name="' . $name . '" id="' . $input['id'] . '" class="' . $input['class'] . '"/></p>';
        } elseif ($input['type'] == 'hidden') {
            //echo '<p>'.$input['display'].'<br/>';
            echo '<input type="hidden" name="' . $name . '" value="' . $input['value'] . '" id="' . $input['id'] . '" class="' . $input['class'] . '"/></p>';
        } elseif ($input['type'] == 'radio') {
            echo '<p>' . $input['display'];
            if (strpos($input['rules'], 'required') !== false) {
                echo '<span title="required" style="color: #F00; font-weight: bold">*</span>';
            }
            echo ': ';
            foreach ($input['options'] as $disp => $value) {
                echo '<input type="radio" name="' . $name . '" value="' . $value . '" id="' . $input['id'] . '" class="' . $input['class'] . '" ' . set_radio($name, $value) . '> ' . ucfirst($disp) . ' &nbsp;';
            }
            echo '</p>';
            //echo '<input type="hidden" name="'.$name.'" value="'.$input['value'].'"/></p>';
//.........这里部分代码省略.........
开发者ID:robotys,项目名称:sacl,代码行数:101,代码来源:rbt_helper.php


示例10: disable_this

						<fieldset id="curriculumTypefield" <?php 
echo disable_this("curriculumTypefield");
?>
 >
							<div class="create-curriculum-form-group form-group <?php 
echo has_error("curriculumType") ? "has-error" : "";
?>
">
								<label for="inputCurriculumtype"  class="col-sm-4 control-label"> Curriculum Type </label>
								<div class="col-sm-7">
									<?php 
if ($curriculum_types && is_array($curriculum_types) && count($curriculum_types) > 0) {
    foreach ($curriculum_types as $typei => $typeinfo) {
        echo '
													<label class="radio-inline">
													 	<input type="radio" name="curriculumType" id="inputCurriculumtype' . ($typeinfo ? $typeinfo->getCurriculumtypeid() : 0) . '" value="' . ($typeinfo ? $typeinfo->getCurriculumtypeid() : 0) . '" ' . set_radio('curriculumType', $typeinfo ? $typeinfo->getCurriculumtypeid() : 0, FALSE) . '> ' . ($typeinfo ? $typeinfo->curriculum_type : "") . '
													</label>
													';
    }
}
?>
							      	
									 <?php 
if (has_message("curriculumType")) {
    echo '<span class="help-block">' . get_message("curriculumType") . '</span>';
}
?>
							    </div>
							</div>
						</fieldset>
						<div class="create-curriculum-form-group form-group <?php 
开发者ID:shemehs,项目名称:shine19395,代码行数:31,代码来源:content.php


示例11: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"row\">\n    <div class=\"module span8 offset2\">\n            <div class=\"module-head\">\n                <span class=\"pull-right\"><b>Step 4 : </b>User administrator</span>\n                <h3>Install e-learning</h3>\n            </div>\n\n            <div class=\"module-body\">\n\n                ";
     // line 17
     if ((isset($context["success"]) ? $context["success"] : null) == false) {
         // line 18
         echo "                <div class=\"well well-small\" style=\"box-shadow: none;\">\n                    Buat pengajar yang bertindak sebagai administrator.\n                </div>\n                ";
         // line 21
         echo form_open_multipart("setup/index/4", array("class" => "form-horizontal row-fluid"));
         echo "\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">NIP</label>\n                        <div class=\"controls\">\n                            <input type=\"text\" id=\"nip\" name=\"nip\" class=\"span4\" value=\"";
         // line 25
         echo twig_escape_filter($this->env, set_value("nip"), "html", null, true);
         echo "\">\n                            <br>";
         // line 26
         echo form_error("nip");
         echo "\n                        </div>\n                    </div>\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 32
         echo twig_escape_filter($this->env, set_value("nama"), "html", null, true);
         echo "\">\n                            <br>";
         // line 33
         echo form_error("nama");
         echo "\n                        </div>\n                    </div>\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Jenis Kelamin <span class=\"text-error\">*</span></label>\n                        <div class=\"controls\">\n                            <label class=\"radio inline\"><input type=\"radio\" name=\"jenis_kelamin\" value=\"Laki-laki\" ";
         // line 39
         echo twig_escape_filter($this->env, set_radio("jenis_kelamin", "Laki-laki"), "html", null, true);
         echo "> Laki-laki</label>\n                            <label class=\"radio inline\"><input type=\"radio\" name=\"jenis_kelamin\" value=\"Perempuan\" ";
         // line 40
         echo twig_escape_filter($this->env, set_radio("jenis_kelamin", "Perempuan"), "html", null, true);
         echo "> Perempuan</label>\n                            <br>";
         // line 41
         echo form_error("jenis_kelamin");
         echo "\n                        </div>\n                    </div>\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Tempat Lahir</label>\n                        <div class=\"controls\">\n                            <input type=\"text\" name=\"tempat_lahir\" class=\"span5\" value=\"";
         // line 47
         echo twig_escape_filter($this->env, set_value("tempat_lahir"), "html", null, true);
         echo "\">\n                            <br>";
         // line 48
         echo form_error("tempat_lahir");
         echo "\n                        </div>\n                    </div>\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Tanggal Lahir</label>\n                        <div class=\"controls\">\n                            <select class=\"span2\" style=\"width: 10%;\" name=\"tgl_lahir\">\n                                <option value=\"\">Tgl</option>\n                                ";
         // line 56
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(1, 31));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 57
             echo "                                    <option value=\"";
             echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
             echo "\" ";
             echo twig_escape_filter($this->env, set_select("tgl_lahir", isset($context["i"]) ? $context["i"] : null), "html", null, true);
             echo ">";
             echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
             echo "</option>\n                                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 59
         echo "                            </select>\n                            <select class=\"span2\" style=\"width: 17%;\" name=\"bln_lahir\">\n                                <option value=\"\">Bulan</option>\n                                ";
         // line 62
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(1, 12));
         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
             // line 63
             echo "                                    <option value=\"";
             echo twig_escape_filter($this->env, isset($context["i"]) ? $context["i"] : null, "html", null, true);
             echo "\" ";
             echo twig_escape_filter($this->env, set_select("bln_lahir", isset($context["i"]) ? $context["i"] : null), "html", null, true);
             echo ">";
             echo twig_escape_filter($this->env, get_indo_bulan(i 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP set_register_value函数代码示例发布时间:2022-05-15
下一篇:
PHP set_query_var函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap