本文整理汇总了PHP中settings::get_rector_value方法的典型用法代码示例。如果您正苦于以下问题:PHP settings::get_rector_value方法的具体用法?PHP settings::get_rector_value怎么用?PHP settings::get_rector_value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类settings
的用法示例。
在下文中一共展示了settings::get_rector_value方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main
public function main()
{
?>
<div id="main">
<div id="reports-new">
<div class="ui error form segment square-corners no-shadow">
<div class="three fields">
<div class="field">
<label>Год набора</label>
<input id="year" name="year" placeholder="Год набора" type="text">
</div>
<div class="field">
<label>Срок обучения (лет)</label>
<input id="duration" name="duration" placeholder="4" type="text" onchange="calendar.update();">
</div>
<div class="field">
<label>ФИО ректора</label>
<?php
$settings = settings::get_rector_value(template_session::get_user_id());
$rector = $settings->value;
?>
<input id="rector" name="rector" value="<?php
if (!empty($rector)) {
echo $rector;
}
?>
" placeholder="М.П. Батура" type="text" >
</div>
</div>
<div class="field">
<label>Регистрационный номер учебного плана</label>
<input id="registration_number" name="registration_number" placeholder="2014.09.20/000" type="text" >
</div>
<div class="field">
<div class="ui fluid selection dropdown">
<div class="default text">Форма обучения</div>
<i class="dropdown icon"></i>
<input type="hidden" id="training_form_id" name="training_form_id">
<div class="menu">
<?php
$training_forms = training_forms::get();
if ($training_forms) {
foreach ($training_forms as $training_form) {
?>
<div class="item" data-value="<?php
echo $training_form->id;
?>
"><?php
echo html::escape($training_form->name);
?>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<div class="field">
<div class="ui fluid selection dropdown">
<div class="default text">Квалификация специалиста</div>
<i class="dropdown icon"></i>
<input type="hidden" id="qualification_id" name="qualification_id" >
<div class="menu">
<?php
$qualifications = qualifications::get();
if ($qualifications) {
foreach ($qualifications as $qualification) {
?>
<div class="item" data-value="<?php
echo $qualification->id;
?>
"><?php
echo html::escape($qualification->name);
?>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<div class="field">
<div class="ui fluid selection dropdown">
<div class="default text">Специальность</div>
<i class="dropdown icon"></i>
<input type="hidden" id="specialty_id" name="specialty_id">
<div class="menu">
<?php
$specialties = specialties::get();
if ($specialties) {
foreach ($specialties as $specialty) {
?>
//.........这里部分代码省略.........