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

PHP set_select函数代码示例

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

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



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

示例1: preset_select

 function preset_select($field = '', $value = '', $preset_value = '')
 {
     if ($value == $preset_value) {
         return set_select($field, $preset_value, TRUE);
     } else {
         return set_select($field, $value);
     }
 }
开发者ID:csiber,项目名称:CodeIgniter-Starter,代码行数:8,代码来源:myform_helper.php


示例2: sub_module_name

 public function sub_module_name()
 {
     $val = $this->module_object_model->sub_module_name();
     $opt = '<option value="Select Sub Module"> Select Sub Module </option>';
     foreach ($val as $op) {
         $opt .= '<option value="' . $op->sub_module_id . '" ' . set_select('sub_module_name', $op->sub_module_id) . '>' . $op->sub_module_name . '</option>';
     }
     echo $opt;
 }
开发者ID:Anuragigts,项目名称:Igts_sc_mo,代码行数:9,代码来源:module_object.php


示例3: CreaSelect

/**
 * Función que devuelve una lista desplegable/select.
 * @param array $datos Los datos que va a contener la lista desplegable.
 * @param string $name El nombre del select.
 * @return string Código html generado.
 */
function CreaSelect($datos, $name)
{
    $datos = CreaArrayParaSelect($datos);
    $html = '<select class="country_to_state country_select" id="billing_country" name="' . $name . '">';
    foreach ($datos as $idx => $texto) {
        $html .= "<option value='{$idx}' " . set_select($name, $idx) . " >{$texto}</option>";
    }
    $html .= '</select>';
    return $html;
}
开发者ID:isacm94,项目名称:Practica2_Servidor,代码行数:16,代码来源:CreaSelect_helper.php


示例4: 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 2 : </b>Informasi sekolah</span>\n                <h3>Install e-learning</h3>\n            </div>\n\n            <div class=\"module-body\">\n                ";
     // line 16
     echo isset($context["error"]) ? $context["error"] : null;
     echo "\n\n                ";
     // line 18
     echo form_open("setup/index/2", array("class" => "form-horizontal row-fluid"));
     echo "\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Jenjang <span class=\"text-error\">*</span></label>\n                        <div class=\"controls\">\n                            <select name=\"jenjang\">\n                                <option value=\"SMP\" ";
     // line 23
     echo twig_escape_filter($this->env, set_select("jenjang", "SMP"), "html", null, true);
     echo ">SMP/Sederajat</option>\n                                <option value=\"SMA\" ";
     // line 24
     echo twig_escape_filter($this->env, set_select("jenjang", "SMA"), "html", null, true);
     echo ">SMA/Sederajat</option>\n                            </select>\n                            <br>";
     // line 26
     echo form_error("host");
     echo "\n                        </div>\n                    </div>\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 32
     echo twig_escape_filter($this->env, set_value("nama-sekolah"), "html", null, true);
     echo "\">\n                            <br>";
     // line 33
     echo form_error("nama-sekolah");
     echo "\n                        </div>\n                    </div>\n                    <div class=\"control-group\">\n                        <label class=\"control-label\">Alamat <span class=\"text-error\">*</span></label>\n                        <div class=\"controls\">\n                            <input type=\"text\" name=\"alamat\" class=\"span10\" value=\"";
     // line 39
     echo twig_escape_filter($this->env, set_value("alamat"), "html", null, true);
     echo "\">\n                            <br>";
     // line 40
     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=\"span6\" value=\"";
     // line 46
     echo twig_escape_filter($this->env, set_value("telp"), "html", null, true);
     echo "\">\n                            <br>";
     // line 47
     echo form_error("telp");
     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                        </div>\n                    </div>\n                ";
     // line 55
     echo form_close();
     echo "\n\n            </div>\n    </div>\n</div>\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:41,代码来源:9499fbc7ee48b0de20a75e5999ee61f19224fcc773c2f5f2b591397295a0.php


示例5: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<div class=\"btn-group pull-right\">\n    <a class=\"btn btn-primary btn-small\" href=\"";
     // line 5
     echo twig_escape_filter($this->env, site_url("tugas/tambah_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id")), "html", null, true);
     echo "\">Tambah Pilihan</a>\n</div>\n\n<h4>Edit Pilihan</h4>\n";
     // line 9
     echo get_flashdata("tugas");
     echo "\n\n";
     // line 11
     echo form_open("tugas/edit_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id") . "/" . $this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "id"));
     echo "\n<table class=\"table table-striped\" style=\"margin-top:20px;\">\n    <tbody>\n        <tr>\n            <th width=\"15%\">Pilihan <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"pilihan\" style=\"width:auto;\">\n                    <option value=\"\">--Pilih--</option>\n                    <option value=\"1\" ";
     // line 19
     echo twig_escape_filter($this->env, set_select("pilihan", "1", $this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "urutan") == 1 ? true : false), "html", null, true);
     echo ">A</option>\n                    <option value=\"2\" ";
     // line 20
     echo twig_escape_filter($this->env, set_select("pilihan", "2", $this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "urutan") == 2 ? true : false), "html", null, true);
     echo ">B</option>\n                    <option value=\"3\" ";
     // line 21
     echo twig_escape_filter($this->env, set_select("pilihan", "3", $this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "urutan") == 3 ? true : false), "html", null, true);
     echo ">C</option>\n                    <option value=\"4\" ";
     // line 22
     echo twig_escape_filter($this->env, set_select("pilihan", "4", $this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "urutan") == 4 ? true : false), "html", null, true);
     echo ">D</option>\n                    <option value=\"5\" ";
     // line 23
     echo twig_escape_filter($this->env, set_select("pilihan", "5", $this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "urutan") == 5 ? true : false), "html", null, true);
     echo ">E</option>\n                </select>\n                ";
     // line 25
     echo form_error("pilihan");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <td colspan=\"2\">\n                <textarea name=\"konten\" id=\"konten\" style=\"height:350px;width:100%;\">";
     // line 30
     echo set_value("konten", html_entity_decode($this->getAttribute(isset($context["pilihan"]) ? $context["pilihan"] : null, "konten")));
     echo "</textarea>\n                ";
     // line 31
     echo form_error("konten");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <td colspan=\"2\">\n                <button type=\"submit\" class=\"btn btn-primary\">Update</button>\n            </td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 41
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:41,代码来源:b5b88c70e18ef19a4e4caac080df53ad820fd47c662b026ae71509b6d458.php


示例6: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 4
     echo "<h4>Tambah Pilihan</h4>\n";
     // line 5
     echo get_flashdata("tugas");
     echo "\n\n";
     // line 7
     echo form_open("tugas/tambah_pilihan/" . $this->getAttribute(isset($context["tugas"]) ? $context["tugas"] : null, "id") . "/" . $this->getAttribute(isset($context["pertanyaan"]) ? $context["pertanyaan"] : null, "id"));
     echo "\n<table class=\"table table-striped\">\n    <tbody>\n        <tr>\n            <th width=\"15%\">Pilihan <span class=\"text-error\">*</span></th>\n            <td>\n                <select name=\"pilihan\" style=\"width:auto;\">\n                    <option value=\"\">--Pilih--</option>\n                    <option value=\"1\" ";
     // line 15
     echo twig_escape_filter($this->env, set_select("pilihan", "1"), "html", null, true);
     echo ">A</option>\n                    <option value=\"2\" ";
     // line 16
     echo twig_escape_filter($this->env, set_select("pilihan", "2"), "html", null, true);
     echo ">B</option>\n                    <option value=\"3\" ";
     // line 17
     echo twig_escape_filter($this->env, set_select("pilihan", "3"), "html", null, true);
     echo ">C</option>\n                    <option value=\"4\" ";
     // line 18
     echo twig_escape_filter($this->env, set_select("pilihan", "4"), "html", null, true);
     echo ">D</option>\n                    <option value=\"5\" ";
     // line 19
     echo twig_escape_filter($this->env, set_select("pilihan", "5"), "html", null, true);
     echo ">E</option>\n                </select>\n                ";
     // line 21
     echo form_error("pilihan");
     echo "\n            </td>\n        </tr>\n        <tr>\n            <td colspan=\"2\">\n                <textarea name=\"konten\" id=\"konten\" style=\"height:350px;width:100%;\">";
     // line 26
     echo set_value("konten");
     echo "</textarea>\n                ";
     // line 27
     echo form_error("konten");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <td colspan=\"2\">\n                <button type=\"submit\" class=\"btn btn-primary\">Simpan</button>\n            </td>\n        </tr>\n    </tbody>\n</table>\n";
     // line 37
     echo form_close();
     echo "\n";
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:38,代码来源:82972ec53421770eeb6d07ea795e66c00ee0fdf6d0e4929025a3c5717d25.php


示例7: foreach

?>
		  <fieldset id="personal">
			
			<legend>Article Details</legend>
			<div class="clearfix">
				<label>Category:</label>
				<div class="input">
					<select name="category">
						<?php 
foreach ($categories as $category) {
    ?>
							<option value="<?php 
    echo $category->cid;
    ?>
" <?php 
    echo set_select('category', $category->cid);
    ?>
><?php 
    echo $category->name;
    ?>
</option>
						<?php 
}
?>
					</select>
				</div>
			</div>
			<div class="clearfix">
				<label>Title:</label>
				<div class="input">
					<input name="title" class="xxlarge" id="title" type="text" value="<?php 
开发者ID:bmfelix,项目名称:godraft,代码行数:31,代码来源:create_article.php


示例8: form_error

		</div>
		<div class="form-group">
		<div class="control-group<?php 
$e = form_error('trans_type');
echo !empty($e) ? ' error' : '';
?>
">
			<label class="col-md-3 control-label">Transaction Type</label>
			<div class="col-md-9">
				<select class="form-control" name="trans_type" >
					<option value="pending" <?php 
echo set_select('trans_type', 'pending');
?>
>Authorize and Pending</option>
					<option value="capture" <?php 
echo set_select('trans_type', 'capture');
?>
>Authorize and Capture</option>
				</select>
				<?php 
echo form_error('trans_type');
?>
			</div>
		</div>	
		</div>	
		</div>
		<div class="form-actions">
			<input type="submit" name="submit" class="btn btn green" value="Setup" />
		</div>
	</form>
	</div>
开发者ID:bmfelix,项目名称:godraft,代码行数:31,代码来源:paypalprosetup.php


示例9: 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


示例10: foreach

                    <td>
                        <span id="lblStates" style="color:DimGray;">State :</span></td>
                    <td>
                        <select name="ddlState" id="ddlState" class="texta">
							<option value="" <?php 
echo $client->State === '' ? 'selected="selected"' : '';
?>
></option>
        	                    <?php 
foreach ($states->result_array() as $row) {
    ?>
									<option value="<?php 
    echo $row['StatesCode'];
    ?>
" <?php 
    echo set_select('ddlState', $row['StatesCode'], $client->State === $row['StatesCode']);
    ?>
><?php 
    echo $row['StatesDescription'];
    ?>
</option>
                                <?php 
}
?>
						</select>
                        <!--span id="RequiredFieldValidator5" style="color:Red;visibility:hidden;">.</span-->
					</td>
                </tr>
                <tr>
                    <td style="height: 15px">
                        <span id="lblZip" style="color:DimGray;">ZIP Code :</span></td>
开发者ID:homebru,项目名称:bandb,代码行数:31,代码来源:profile.php


示例11: lang

echo lang('Arrival city');
?>
</label>
         <select class="form-control" name="to" id="to" value="<?php 
echo set_value('city');
?>
">
            <option value="0"></option>
          <?php 
foreach ($cities as $city) {
    ?>
            <option value="<?php 
    echo $city->destination_id;
    ?>
" <?php 
    echo set_select('to', $city->destination_id);
    ?>
><?php 
    echo $city->city;
    ?>
</option>
          <?php 
}
?>
        </select>
        <?php 
echo form_error('to');
?>
      </div>
    </div>
开发者ID:farzad1120,项目名称:tripexpress,代码行数:30,代码来源:search_form.php


示例12: foreach

                    <div class="req-div2">
                        <select id="room_number" name="room_number" style="width: 280px">
                            <option value=""></option>
                            <?php 
foreach ($rooms as $room) {
    ?>
                                <?php 
    if (!isset($user_room_id)) {
        $user_room_id = 0;
    }
    ?>
                                <option value="<?php 
    echo $room->room_id;
    ?>
" <?php 
    echo set_select('room_number', $room->room_id, $room->room_id === $user_room_id);
    ?>
><?php 
    echo $room->number;
    ?>
</option>
                            <?php 
}
?>
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <div class="req-div1">Дата відвідування*</div> 
                    <div class="req-div2">
                        <input type="text" id="date_from" name="date_from" class="input-xlarge" value="<?php 
开发者ID:alexmon1989,项目名称:pass-request,代码行数:31,代码来源:add_request.php


示例13: lang

                <div class="control-group">
                    <label class="control-label" for="manufacturers"><?php 
echo lang('field_search_manufacturers');
?>
<em>*</em></label>
                    <div class="controls">
                        <select id="manufacturers" name="manufacturers">
                        
                            <?php 
foreach ($manufacturers as $manufacturer) {
    ?>
                            <option value="<?php 
    echo $manufacturer['id'];
    ?>
" <?php 
    echo set_select('manufacturers', $manufacturer['id']);
    ?>
><?php 
    echo $manufacturer['text'];
    ?>
</option>
                            <?php 
}
?>
                        
                        </select>
                    </div>
                </div>
			</div>
		</div>
		
开发者ID:colonia,项目名称:tomatocart-v2,代码行数:30,代码来源:advanced_search.php


示例14: form_error

                                            </select>
                                            <?php 
echo form_error('payment_schedule_group', '<div class="text-danger">', '</div>');
?>
                                        </div>                                        
                                    </div>




                                    <div class="form-group">
                                        <label  class="col-md-2">Installment Relation</label>
                                        <div class="col-md-4">
                                            <select name="payment_schedule_relation" id="payment_schedule_relation" class="form-control">
                                                <option value="0" <?php 
echo set_select('installment_relation', '0', TRUE);
?>
>No Relation</option>
                                                <?php 
foreach ($payment_schedule_relations as $payment_schedule_relation) {
    echo $payment_schedule_detail->payment_schedule_relation_id . '==' . $payment_schedule_relation->id;
    ?>
                                                    <option value="<?php 
    echo $payment_schedule_relation->id;
    ?>
" <?php 
    if ($payment_schedule_detail->payment_schedule_relation_id == $payment_schedule_relation->id) {
        ?>
 selected="1" <?php 
    }
    ?>
开发者ID:EasysoftTechnologies,项目名称:zimp,代码行数:31,代码来源:update_payment_schedule_detail.php


示例15: lang

 ><?php 
        echo lang('text_uninstalled');
        ?>
</option>
                                            <?php 
    } else {
        ?>
                                                <option value="1" <?php 
        echo set_select('filter_status', '1');
        ?>
 ><?php 
        echo lang('text_installed');
        ?>
</option>
                                                <option value="0" <?php 
        echo set_select('filter_status', '0');
        ?>
 ><?php 
        echo lang('text_uninstalled');
        ?>
</option>
                                            <?php 
    }
}
?>
                                        </select>
                                    </div>
                                    <a class="btn btn-grey" onclick="filterList();" title="<?php 
echo lang('text_filter');
?>
"><i class="fa fa-filter"></i></a>&nbsp;
开发者ID:ududsha,项目名称:TastyIgniter,代码行数:31,代码来源:extensions.php


示例16: set_select

                echo $_entry->configVar;
                ?>
]"<?php 
                if (!empty($_entry->configInputClass)) {
                    echo ' class="' . $_entry->configInputClass . '"';
                }
                ?>
>
			    <?php 
                for ($i = 0; $i < count($_path); $i++) {
                    ?>
			    <option value="<?php 
                    echo $_path[$i];
                    ?>
"<?php 
                    echo set_select('inputSetting[' . $_entry->configVar . ']', $_path[$i], $_entry->configVal == $_path[$i] ? true : false);
                    ?>
><?php 
                    echo ucfirst($_path[$i]);
                    ?>
</option>
			    <?php 
                }
                ?>
			</select>
			<?php 
            }
            ?>
			
			<?php 
        } elseif ($_entry->configFieldType == 'text' or $_entry->configFieldType == 'password') {
开发者ID:StudsPro,项目名称:islandpeeps.com,代码行数:31,代码来源:index.php


示例17: set_select

					<option value="active" <?php 
echo set_select('status', lang('permissions_active'));
?>
><?php 
echo lang('permissions_active');
?>
</option>
					<option value="inactive" <?php 
echo set_select('status', lang('permissions_inactive'));
?>
><?php 
echo lang('permissions_inactive');
?>
</option>
					<option value="deleted" <?php 
echo set_select('status', lang('permissions_deleted'));
?>
><?php 
echo lang('permissions_deleted');
?>
</option>
				</select>
			</div>
		</div>

		<div class="form-actions">
			<input type="submit" name="submit" class="btn btn-primary" value="<?php 
echo lang('permissions_save');
?>
" /> or 
			<?php 
开发者ID:triasfahrudin,项目名称:siska21,代码行数:31,代码来源:permission_form.php


示例18: foreach

			    <!--//
			    <tr>
				<td width="120">
					<label for="description">Parent Id<font style="color:red;font-size:bolder"> * </font></label>
				</td>
				<td>
				<select name="parent">
					<option value="0" > -- </option>
					<?php 
foreach ($jData_parent_list as $kk => $vv) {
    ?>
					<option value="<?php 
    echo $kk;
    ?>
" <?php 
    echo set_select('parent', $kk);
    ?>
 ><?php 
    echo $vv->code;
    ?>
</option>
					
					<?php 
}
?>
				</select>
				</td>
      			    </tr>
      			    //-->
      			    <tr>
				<td>
开发者ID:bayugyug,项目名称:unov2,代码行数:31,代码来源:operator.add.frm.php


示例19: foreach

                <div class="form-group">
                    <label class="col-md-4 control-label" >User Role</label>
                    <div class="col-md-8">
                        <select class="form-control input-inline input-medium select2me" name="data[UserRoleID]" />
                        <option value=""></option>
                        <?php 
        if (isset($this->var['userrole_list'])) {
            ?>
                            <?php 
            foreach ($this->var['userrole_list'] as $row) {
                ?>
                            <option value="<?php 
                echo $row['UserRoleID'];
                ?>
" <?php 
                echo set_select('data[UserRoleID]', $row['UserRoleID']);
                ?>
><?php 
                echo $row['UserRoleName'];
                ?>
</option>
                            <?php 
            }
            ?>
                        <?php 
        }
        /*(isset($this->var['userrole_list']))*/
        ?>
                        </select>
                        <span class="help-inline input-inline text-danger"><?php 
        echo form_error('data[UserRoleID]');
开发者ID:hadjimar,项目名称:iapps4egov,代码行数:31,代码来源:user_addedit.php


示例20: set_select


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP set_send_count函数代码示例发布时间:2022-05-15
下一篇:
PHP set_section_visible函数代码示例发布时间: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