Пример #1
0
 function preset_select($field = '', $value = '', $preset_value = '')
 {
     if ($value == $preset_value) {
         return set_select($field, $preset_value, TRUE);
     } else {
         return set_select($field, $value);
     }
 }
Пример #2
0
 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;
 }
/**
 * 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;
}
 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";
 }
 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";
 }
 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";
 }
Пример #7
0
?>
		  <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 
Пример #8
0
		</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>
 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);
     echo ">ISLAM</option>\n                    <option value=\"KRISTEN\" ";
     // line 75
     echo twig_escape_filter($this->env, set_select("agama", "KRISTEN", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama") == "KRISTEN" ? true : false), "html", null, true);
     echo ">KRISTEN</option>\n                    <option value=\"KATOLIK\" ";
     // line 76
     echo twig_escape_filter($this->env, set_select("agama", "KATOLIK", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama") == "KATOLIK" ? true : false), "html", null, true);
     echo ">KATOLIK</option>\n                    <option value=\"HINDU\" ";
     // line 77
     echo twig_escape_filter($this->env, set_select("agama", "HINDU", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama") == "HINDU" ? true : false), "html", null, true);
     echo ">HINDU</option>\n                    <option value=\"BUDHA\" ";
     // line 78
     echo twig_escape_filter($this->env, set_select("agama", "BUDHA", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "agama") == "BUDHA" ? true : false), "html", null, true);
     echo ">BUDHA</option>\n                </select>\n                <br>";
     // line 80
     echo form_error("agama");
     echo "\n            </td>\n        <tr>\n        <tr>\n            <th>Alamat</th>\n            <td>\n                <textarea name=\"alamat\" style=\"width:90%;\">";
     // line 86
     echo twig_escape_filter($this->env, set_value("alamat", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "alamat")), "html", null, true);
     echo "</textarea>\n                <br>";
     // line 87
     echo form_error("alamat");
     echo "\n            </td>\n        <tr>\n        ";
     // line 90
     if ($this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") != 3) {
         // line 91
         echo "        <tr>\n            <th>Status <span class=\"text-error\">*</span></th>\n            <td>\n                <label class=\"radio inline\"><input type=\"radio\" name=\"status_id\" value=\"0\" ";
         // line 94
         echo twig_escape_filter($this->env, set_radio("status_id", "0", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == "0" ? true : false), "html", null, true);
         echo "> Pending</label>\n                <label class=\"radio inline\"><input type=\"radio\" name=\"status_id\" value=\"1\" ";
         // line 95
         echo twig_escape_filter($this->env, set_radio("status_id", "1", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == "1" ? true : false), "html", null, true);
         echo "> Aktif</label>\n                <label class=\"radio inline\"><input type=\"radio\" name=\"status_id\" value=\"2\" ";
         // line 96
         echo twig_escape_filter($this->env, set_radio("status_id", "2", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == "2" ? true : false), "html", null, true);
         echo "> Blocking</label>\n                <label class=\"radio inline\"><input type=\"radio\" name=\"status_id\" value=\"3\" ";
         // line 97
         echo twig_escape_filter($this->env, set_radio("status_id", "3", $this->getAttribute(isset($context["siswa"]) ? $context["siswa"] : null, "status_id") == "3" ? true : false), "html", null, true);
         echo "> Alumni</label>\n                <br>";
         // line 98
         echo form_error("status_id");
         echo "\n            </td>\n        <tr>\n        ";
     } else {
         // line 102
         echo "            <input type=\"hidden\" name=\"status_id\" value=\"3\">\n        ";
     }
     // line 104
     echo "        <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 111
     echo form_close();
     echo "\n";
 }
Пример #10
0
                    <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>
Пример #11
0
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>
Пример #12
0
                    <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 
Пример #13
0
                <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>
		
                                            </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 
    }
    ?>
Пример #15
0
 ><?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;
Пример #16
0
                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') {
Пример #17
0
					<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 
Пример #18
0
			    <!--//
			    <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>
Пример #19
0
                <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]');
Пример #20
0
  <p>
    <label for="ProsjektID">Prosjekt:</label>
    <select name="ProsjektID">
      <option value="0" <?php 
echo set_select('ProsjektID', 0, $Utgift['ProsjektID'] == 0 ? TRUE : FALSE);
?>
>(ingen prosjekt)</option>
<?php 
foreach ($Prosjekter as $Prosjekt) {
    ?>
      <option value="<?php 
    echo $Prosjekt['ID'];
    ?>
" <?php 
    echo set_select('ProsjektID', $Prosjekt['ID'], $Utgift['ProsjektID'] == $Prosjekt['ID'] ? TRUE : FALSE);
    ?>
><?php 
    echo $Prosjekt['Navn'];
    ?>
</option>
<?php 
}
?>
    </select>
  </p>

  <p>
    <label for="DatoBokfort">Dato:</label>
    <input type="date" name="DatoBokfort" value="<?php 
echo set_value('DatoBokfort', $Utgift['DatoBokfort']);
Пример #21
0
?>
>Efectivo</option>
						<option value="cheque" <?php 
echo set_select('dmetodo_pago', 'cheque');
?>
>Cheque</option>
						<option value="tarjeta de crédito o debito" <?php 
echo set_select('dmetodo_pago', 'tarjeta de credito o debito');
?>
>Tarjeta de crédito o debito</option>
						<option value="depósito en cuenta" <?php 
echo set_select('dmetodo_pago', 'deposito en cuenta');
?>
>Depósito en cuenta</option>
						<option value="transferencia" <?php 
echo set_select('dmetodo_pago', '"transferencia"');
?>
>Transferencia</option>
						
					</select>
					<div class="w100" id="show_pago_digitos" style="display:none;">
						<label for="dmetodo_pago_digitos">*Últimos 4 dígitos</label> <br>
						<input type="text" name="dmetodo_pago_digitos" id="dmetodo_pago_digitos" value="<?php 
echo set_value('dmetodo_pago_digitos');
?>
" class="a-c not" size="10" maxlength="4" style="color:red;">
					</div>
					<div class="clear"></div>
				</div>
				<input type="button" name="enviar" value="Guardar" class="btn-blue corner-all" id="submit">
			</div>
          <div class="form-group required">
          <label class="control-label">I am happy to pet sit in:</label>
            <div class="col-sm-8">
              <select name="s_location" id="s_location" class="gends">
                <option value="">--- Choose location ---</option>
              <?php 
$s_location = set_value('s_location');
if (array_key_exists('s_location', $sitter_registration_fields)) {
    foreach ($sitter_registration_fields['s_location'] as $key => $value) {
        ?>
                    <option value="<?php 
        echo $key;
        ?>
" <?php 
        echo $key == $s_location ? set_select('s_location', $s_location) : '';
        ?>
><?php 
        echo $value;
        ?>
</option>
                  <?php 
    }
}
?>
              </select>
              <div class="error-msg">
              <?php 
echo form_error('s_location', '<label class="error">', '</label>');
?>
              </div>
?>
 (<?php 
echo lang('training_instution');
?>
) <span class="required">*</span></label>
                        <div class="da-form-item small" >
                            <select name="coures_id" >
                                <option value="">Select One</option>
                                <?php 
foreach ($Courses as $Course) {
    ?>
                                    <option value="<?php 
    echo $Course->id;
    ?>
" <?php 
    echo set_select('coures_id', $Course->id);
    ?>
><?php 
    echo $Course->name;
    ?>
 (<?php 
    echo $Course->training_inst;
    ?>
)</option>
                            <?php 
}
?>
                            </select>
<?php 
echo form_error('coures_id');
?>
							<li class="info_req">
								<label for="group">Group:</label>
								<select id="group" name="update_group" class="tooltip_trigger"
									title="Set the users group, that can define them as an admin, public, moderator etc."
								>
								<?php 
foreach ($groups as $group) {
    ?>
									<?php 
    $user_group = $group[$this->flexi_auth->db_column('user_group', 'id')] == $user[$this->flexi_auth->db_column('user_acc', 'group_id')] ? TRUE : FALSE;
    ?>
									<option value="<?php 
    echo $group[$this->flexi_auth->db_column('user_group', 'id')];
    ?>
" <?php 
    echo set_select('update_group', $group[$this->flexi_auth->db_column('user_group', 'id')], $user_group);
    ?>
>
										<?php 
    echo $group[$this->flexi_auth->db_column('user_group', 'name')];
    ?>
									</option>
								<?php 
}
?>
								</select>
							</li>
							<li>
								<label>Privileges:</label>
								<a href="<?php 
echo $base_url . 'auth_admin/update_user_privileges/' . $user[$this->flexi_auth->db_column('user_acc', 'id')];
Пример #25
0
                                    <input type="text" name="city" id="city" value="<?php 
echo isset($customerDetails) ? $customerDetails['bill_address']['city'] : set_value('city');
?>
">
                                    <div class="error"><?php 
echo form_error('city');
?>
</div>       
                                </div>
                                <div>
                                    <label for="state">State/Region:</label>
                                    <select name="state" id="state">
                                        <option value="">Please select state</option>
                                     <?php 
foreach ($states as $key => $val) {
    $selectS = set_select('state', $key, $customerDetails['bill_address']['state'] == $key);
    ?>
                                        <option value="<?php 
    echo $key;
    ?>
" <?php 
    echo $selectS;
    ?>
><?php 
    echo $val;
    ?>
</option>
                                    <?php 
}
?>
  
Пример #26
0
echo $error;
?>
</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-sm-2">Terbitkan &nbsp<span class="required">*</span></label>
                                <div class="col-md-3">
                                    <select class="form-control" name="terbitkan">
                                        <option disabled selected>-- Pilih Terbitkan --</option>
                                        <option value="Ya" <?php 
echo set_select('terbitkan', 'Ya');
?>
>Ya</option>
                                        <option value="Tidak" <?php 
echo set_select('terbitkan', 'Tidak');
?>
>Tidak</option>
                                    </select>
                                    <?php 
echo form_error('terbitkan');
?>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-md-6">
                                    <button type="submit" class="btn btn-primary">Simpan</button>
                                </div>
                            </div>
                        </div>
                    </form>
Пример #27
0
});
</script>
<h4>Combobox Relationship Table</h4>
<?php 
echo form_open('index.php/matakuliah/input');
echo validation_errors();
?>
<table>
  <tr>
    <td>Semester</td>
    <td>
    <select name="id_semester" id="id_semester">
      <option value="">-- Pilih Semester --</option>
      <?php 
foreach ($semester as $sem) {
    echo "<option value='{$sem['id_semester']}' " . set_select('id_semester', $sem['id_semester']) . ">{$sem['nama_semester']}</option>";
}
?>
    </select>
    </td>
  </tr>
  <tr>
    <td>Mata Kuliah</td>
    <td>
    <?php 
echo "<select name='id_matakuliah' id='id_matakuliah'>";
if (isset($_POST['id_matakuliah'])) {
    $mapel = $this->model_makul->getMakul($_POST['id_semester']);
    $data .= "<option value=''>-- Pilih Mata Kuliah --</option>";
    foreach ($mapel as $mp) {
        if ($mp['id_matakuliah'] == $_POST['id_matakuliah']) {
        $ship_banned = $row[$this->flexi_cart_admin->db_column('item_shipping', 'banned')];
        ?>
								<select name="update[<?php 
        echo $item_shipping_id;
        ?>
][banned]" class="width_150">
									<option value="0" <?php 
        echo set_select('update[' . $item_shipping_id . '][banned]', 0, $ship_banned == 0);
        ?>
>Location Not Banned</option>
									<option value="1" <?php 
        echo set_select('update[' . $item_shipping_id . '][banned]', 1, $ship_banned == 1);
        ?>
>Whitelist Location</option>
									<option value="2" <?php 
        echo set_select('update[' . $item_shipping_id . '][banned]', 2, $ship_banned == 2);
        ?>
>Blacklist Location</option>
								</select>
							</td>
							<td class="align_ctr">
								<?php 
        $ship_separate = (bool) $row[$this->flexi_cart_admin->db_column('item_shipping', 'separate')];
        ?>
								<input type="hidden" name="update[<?php 
        echo $item_shipping_id;
        ?>
][separate]" value="0"/>
								<input type="checkbox" name="update[<?php 
        echo $item_shipping_id;
        ?>
Пример #29
0
    ?>
                <div class="control-group">
                    <label class="control-label" for="department_email"><?php 
    echo lang('contact_departments_title');
    ?>
<em>*</em></label>
                    <div class="controls">
                        <select name="department_email" id="department_email">
                        <?php 
    foreach ($departments as $email => $title) {
        ?>
                              <option value="<?php 
        echo $email;
        ?>
" <?php 
        echo set_select('department_email', $email);
        ?>
><?php 
        echo $title;
        ?>
</option>
                        <?php 
    }
    ?>
                        </select>
                    </div>
                </div>
                <?php 
}
?>
                <div class="control-group">
Пример #30
0
                                    <?php 
if ($this->session->userdata("my_type") != "5") {
    ?>
                                    <div class="col-sm-3">
                                        <div class="form-group">
                                            <label>User Type</label>
                                            <select class="form-control" name="user" id="user_type">
                                                <option value=""> Select  User type</option>
                                                <?php 
    foreach ($type as $ty) {
        ?>
                                                        <option value="<?php 
        echo $ty->user_type_id;
        ?>
" <?php 
        echo set_select("user", $ty->user_type_id);
        ?>
 ><?php 
        echo $ty->user_type;
        ?>
</option>
                                                <?php 
    }
    ?>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-3">
                                        <div class="form-group">
                                            <label>Name</label>
                                            <select class="form-control" name="fname" id="fname">