text() public static method

public static text ( $name, $value = '', $attributes = [] )
Example #1
0
function meta_acpt_slide_options()
{
    $form = new form('slide', null);
    $form->image('image', array('label' => 'Image URL', 'help' => 'Upload an Image that is 940px by 350px for best results', 'button' => 'Add Your Slide'));
    $form->text('headline', array('label' => 'Headline'));
    $form->textarea('description', array('label' => 'Description'));
    $form->select('showText', array('Yes', 'No'), array('label' => 'Show Headline and Description'));
}
Example #2
0
 private function buildForm()
 {
     $options = array('method' => "POST", 'enctype' => "multipart/form-data", 'action' => '/blog/formular/add', 'width' => '400px');
     $form = new \form('testing', $options);
     $form->label('checkbox');
     $form->checkbox('checkbox test', 'testcheckbox', 'check', '');
     $form->checkbox('checkbox test2', 'testcheckbox', 'check2', true);
     $form->label('radio');
     $form->radio('radio test', 'testradio', 'radio', '');
     $form->radio('radio test 2', 'testradio', 'radio2', true);
     $form->label('textarea');
     $form->text('textarea', ' ', ['error' => $this->error['textarea']]);
     $form->select('autos', ['a' => 'audi', 'b' => 'vw', 'c' => 'toyota'], 'b', ['label' => 'auto select']);
     $form->text('username', '', ['placeholder' => 'username', 'label' => 'Username', 'error' => $this->error['username']]);
     $form->password('password', '', ['label' => 'Password', 'error' => $this->error['password']]);
     $form->button('senden', ['type' => 'submit']);
     return $form;
 }
Example #3
0
function meta_custom()
{
    $form = new form('details', null);
    $form->text('name', array('label' => 'Text Field'));
    $form->image('image', array('label' => 'Image Field', 'button' => 'Add Your Image'));
    $form->file('file', array('label' => 'File Field', 'button' => 'Select a File'));
    $form->textarea('address', array('label' => 'Textarea', 'validate' => 'html'));
    $form->select('rooms', array('one', 'two', 'three'), array('label' => 'Select List'));
    $form->radio('baths', array('blue', 'green', 'red'), array('label' => 'Radio Buttons'));
    $form->editor('baths', 'WYSIWYG Editor');
}
Example #4
0
 public function gui($url)
 {
     # Create list
     if (!empty($_POST['createlist'])) {
         try {
             $this->defaultWordsList();
             http::redirect($url . '&list=1');
         } catch (Exception $e) {
             $this->okt->error->set($e->getMessage());
         }
     }
     # Adding a word
     if (!empty($_POST['swa'])) {
         try {
             $this->addRule($_POST['swa']);
             http::redirect($url . '&added=1');
         } catch (Exception $e) {
             $okt->error->add($e->getMessage());
         }
     }
     # Removing spamwords
     if (!empty($_POST['swd']) && is_array($_POST['swd'])) {
         try {
             $this->removeRule($_POST['swd']);
             http::redirect($url . '&removed=1');
         } catch (Exception $e) {
             $okt->error->add($e->getMessage());
         }
     }
     /* DISPLAY
     		---------------------------------------------- */
     global $okt;
     $okt->page->messages->success('list', __('m_antispam_Words_successfully_added'));
     $okt->page->messages->success('added', __('m_antispam_Word_successfully_added'));
     $okt->page->messages->success('removed', __('m_antispam_Words_successfully_removed'));
     $res = '';
     $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_Add_word') . '</legend>' . '<p>' . form::text('swa', 20, 128) . ' ';
     $res .= adminPage::formtoken() . '<input type="submit" value="' . __('c_c_action_Add') . '"/></p>' . '</fieldset>' . '</form>';
     $rs = $this->getRules();
     if ($rs->isEmpty()) {
         $res .= '<p><strong>' . __('m_antispam_No_word_in_list') . '</strong></p>';
     } else {
         $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_List') . '</legend>' . '<div style="' . $this->style_list . '">';
         while ($rs->fetch()) {
             $disabled_word = false;
             $p_style = $this->style_p;
             $res .= '<p style="' . $p_style . '"><label class="classic">' . form::checkbox(array('swd[]'), $rs->rule_id, false) . ' ' . html::escapeHTML($rs->rule_content) . '</label></p>';
         }
         $res .= '</div>' . '<p>' . form::hidden(array('spamwords'), 1) . adminPage::formtoken() . '<input type="submit" value="' . __('m_antispam_Delete_selected_words') . '"/></p>' . '</fieldset></form>';
     }
     $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<p><input type="submit" value="' . __('m_antispam_Create_default_wordlist') . '" />' . form::hidden(array('spamwords'), 1) . form::hidden(array('createlist'), 1) . adminPage::formtoken() . '</p>' . '</form>';
     return $res;
 }
 public function getHtmlField($aPostedData)
 {
     $return = '';
     switch ($this->type) {
         # Champ texte
         default:
         case 1:
             $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<label for="' . $this->html_id . '"' . ($this->status == 2 ? ' class="required" title="' . __('c_c_required_field') . '"' : '') . '>' . html::escapeHTML($this->title) . '</label>' . form::text($this->html_id, 60, 255, $aPostedData[$this->id]) . '</p>';
             break;
             # Zone de texte
         # Zone de texte
         case 2:
             $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<label for="' . $this->html_id . '"' . ($this->status == 2 ? ' class="required" title="' . __('c_c_required_field') . '"' : '') . '>' . html::escapeHTML($this->title) . '</label>' . form::textarea($this->html_id, 58, 10, $aPostedData[$this->id]) . '</p>';
             break;
             # Menu déroulant
         # Menu déroulant
         case 3:
             $values = array_filter((array) unserialize($this->value));
             $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<label for="' . $this->html_id . '"' . ($this->status == 2 ? ' class="required" title="' . __('c_c_required_field') . '"' : '') . '>' . html::escapeHTML($this->title) . '</label>' . form::select($this->html_id, array_flip($values), $aPostedData[$this->id]) . '</p>';
             break;
             # Boutons radio
         # Boutons radio
         case 4:
             $values = array_filter((array) unserialize($this->value));
             $str = '';
             foreach ($values as $k => $v) {
                 $str .= '<li><label>' . form::radio(array($this->html_id, $this->html_id . '_' . $k), $k, $k == $aPostedData[$this->id]) . html::escapeHTML($v) . '</label></li>';
             }
             $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<span class="fake-label">' . html::escapeHTML($this->title) . '</span></p>' . '<ul class="checklist">' . $str . '</ul>';
             break;
             # Cases à cocher
         # Cases à cocher
         case 5:
             $values = array_filter((array) unserialize($this->value));
             $str = '';
             foreach ($values as $k => $v) {
                 $str .= '<li><label>' . form::checkbox(array($this->html_id . '[' . $k . ']', $this->html_id . '_' . $k), $k, in_array($k, $aPostedData[$this->id])) . html::escapeHTML($v) . '</label></li>';
             }
             $return = '<p class="field" id="' . $this->html_id . '-wrapper">' . '<span class="fake-label">' . html::escapeHTML($this->title) . '</span></p>' . '<ul class="checklist">' . $str . '</ul>';
             break;
     }
     return $return;
 }
Example #6
0
 private function displayForms($url, $type, $title)
 {
     $res = '<h3>' . $title . '</h3>' . '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_Add_IP_address') . '</legend><p>' . form::hidden(array('ip_type'), $type) . form::text(array('addip'), 18, 255) . ' ';
     $res .= adminPage::formtoken() . '<input type="submit" value="' . __('c_c_action_Add') . '"/></p>' . '</fieldset></form>';
     $rs = $this->getRules($type);
     if ($rs->isEmpty()) {
         $res .= '<p><strong>' . __('m_antispam_No_IP_address_in_list') . '</strong></p>';
     } else {
         $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_IP_list') . '</legend>' . '<div style="' . $this->style_list . '">';
         while ($rs->fetch()) {
             $bits = explode(':', $rs->rule_content);
             $pattern = $bits[0];
             $ip = $bits[1];
             $bitmask = $bits[2];
             $p_style = $this->style_p;
             $res .= '<p style="' . $p_style . '"><label class="classic">' . form::checkbox(array('delip[]'), $rs->rule_id, false) . ' ' . html::escapeHTML($pattern) . '</label></p>';
         }
         $res .= '</div>' . '<p><input type="submit" value="' . __('c_c_action_Delete') . '"/>' . adminPage::formtoken() . form::hidden(array('ip_type'), $type) . '</p>' . '</fieldset></form>';
     }
     return $res;
 }
Example #7
0
				<?php 
foreach ($okt->languages->list as $aLanguage) {
    ?>

				<p class="field" lang="<?php 
    echo $aLanguage['code'];
    ?>
"><label for="p_public_url_<?php 
    echo $aLanguage['code'];
    ?>
"><?php 
    printf(__('m_partners_%s_%s'), '<code>' . $okt->config->app_url . $aLanguage['code'] . '/</code>', html::escapeHTML($aLanguage['title']));
    ?>
<span class="lang-switcher-buttons"></span></label>
				<?php 
    echo form::text(array('p_public_url[' . $aLanguage['code'] . ']', 'p_public_url_' . $aLanguage['code']), 40, 255, isset($okt->partners->config->public_url[$aLanguage['code']]) ? html::escapeHTML($okt->partners->config->public_url[$aLanguage['code']]) : '');
    ?>
</p>

				<?php 
}
?>

			</fieldset>

		</div><!-- #tab_seo -->

	</div><!-- #tabered -->

	<p><?php 
echo form::hidden('m', 'partners');
Example #8
0
			?>
			<option value="<?php 
echo $listAll[$i]["cat_id"];
?>
"<? if($listAll[$i]["cat_id"] == $iCat) echo ' selected="selected"';?>><? for($j=0;$j<$listAll[$i]["level"];$j++) echo "--"; ?> <?php 
echo $listAll[$i]["cat_name"];
?>
 </option>
		<?
		}
		?>
		</select>
	</td>
</tr>
<?php 
echo $form->text("Link tới category", "link_category", "link_category", $link_category, "Link tới category", 0, 250, "", 1000, "", 'disabled="disabled"', "");
echo $form->button("button", "create_link_category", "create_link_category", "Tạo link", "Tạo link tới category", '" onClick="link_to_category()"', "");
echo $form->hidden("object", "object", $object, "");
?>
<?
$form->close_table();
$form->close_form();
unset($form);

//---------------------------- Create link to data -----------------------------------
if(isset($arrayData)){
	//Search data
	$id			= getValue("id");
	$keyword		= getValue("keyword", "str", "GET", "", 1);
	$sqlWhere	= "";
	//Tìm theo ID
Example #9
0
    echo form::text(array('p_public_list_url[' . $aLanguage['code'] . ']', 'p_public_list_url_' . $aLanguage['code']), 60, 255, isset($okt->diary->config->public_list_url[$aLanguage['code']]) ? html::escapeHTML($okt->diary->config->public_list_url[$aLanguage['code']]) : '');
    ?>
</p>

				<p class="field" lang="<?php 
    echo $aLanguage['code'];
    ?>
"><label for="p_public_event_url_<?php 
    echo $aLanguage['code'];
    ?>
"><?php 
    printf(__('m_diary_event_url_from_%s_in_%s'), '<code>' . $okt->config->app_url . $aLanguage['code'] . '/</code>', html::escapeHTML($aLanguage['title']));
    ?>
<span class="lang-switcher-buttons"></span></label>
				<?php 
    echo form::text(array('p_public_event_url[' . $aLanguage['code'] . ']', 'p_public_event_url_' . $aLanguage['code']), 60, 255, isset($okt->diary->config->public_event_url[$aLanguage['code']]) ? html::escapeHTML($okt->diary->config->public_event_url[$aLanguage['code']]) : '');
    ?>
</p>
				<?php 
}
?>
			</fieldset>

		</div><!-- #tab_seo -->

	</div><!-- #tabered -->

	<p><?php 
echo form::hidden('m', 'diary');
?>
	<?php 
Example #10
0
 center"><?php 
        echo form::checkbox(array('filters_active[]'), $fid, $f->active);
        ?>
</td>
			<td class="<?php 
        echo $td_class;
        ?>
 center"><?php 
        echo form::checkbox(array('filters_auto_del[]'), $fid, $f->auto_delete);
        ?>
</td>
			<td class="<?php 
        echo $td_class;
        ?>
 center"><?php 
        echo form::text(array('f_order[' . $fid . ']'), 2, 5, (string) $i);
        ?>
</td>
			<td class="<?php 
        echo $td_class;
        ?>
"><?php 
        echo $f->hasGUI() ? '<a href="' . html::escapeHTML($f->guiURL()) . '">' . __('m_antispam_Filter_configuration') . '</a>' : '&nbsp;';
        ?>
</td>
		</tr>
	<?php 
        $i++;
    }
    ?>
Example #11
0
			<?php 
foreach ($okt->languages->list as $aLanguage) {
    ?>

			<p class="field" lang="<?php 
    echo $aLanguage['code'];
    ?>
"><label for="p_title_<?php 
    echo $aLanguage['code'];
    ?>
"><?php 
    $okt->languages->unique ? _e('m_galleries_plupload_items_title') : printf(__('m_galleries_plupload_items_title_in_%s'), $aLanguage['title']);
    ?>
 <span class="lang-switcher-buttons"></span></label>
			<?php 
    echo form::text(array('p_title[' . $aLanguage['code'] . ']', 'p_title_' . $aLanguage['code']), 100, 255, html::escapeHTML($aItemLocalesData[$aLanguage['code']]['title']));
    ?>
</p>

			<?php 
}
?>
		</div>

		<p class="field col"><label for="gallery_id" title="<?php 
_e('c_c_required_field');
?>
" class="required"><?php 
_e('m_galleries_plupload_gallery');
?>
</label>
Example #12
0
?>
    <script>
    var News = new News();
    </script>
	<?php 
echo $form->form_open();
?>
    <?php 
echo $form->textnote('Các trường có dấu (<span class="form-asterick">*</span>) là bắt buộc nhập');
?>
	
    <?php 
echo $form->textnote('Các trường có dấu (<span class="form-asterick">*</span>) là bắt buộc nhập');
?>
	<?php 
echo $form->text(array('label' => 'Email', 'name' => 'use_email', 'id' => 'use_email', 'value' => getValue('use_email', 'str', 'POST', $use_email), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập email', 'placeholder' => 'Email không dài quá 255 ký tự'), 0, 'span6');
?>
    <?php 
echo $form->text(array('label' => 'Họ', 'name' => 'use_firstname', 'id' => 'use_firstname', 'value' => getValue('use_firstname', 'str', 'POST', $use_firstname), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập họ', 'placeholder' => 'Họ'), 0, 'span6');
?>
    <?php 
echo $form->text(array('label' => 'Tên', 'name' => 'use_lastname', 'id' => 'use_lastname', 'value' => getValue('use_lastname', 'str', 'POST', $use_lastname), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập tên', 'placeholder' => 'Tên'), 0, 'span6');
?>
    <?php 
echo $form->getFile(array('label' => 'Ảnh đại diện', 'title' => 'Ảnh đại diện', 'name' => 'use_avatar', 'id' => 'use_avatar'));
?>
    <?php 
echo $form->text(array('label' => 'Ngày sinh', 'name' => 'use_birthday', 'id' => 'use_birthday', 'isdatepicker' => 1, 'value' => getValue('use_birthday', 'str', 'POST', date('d/m/Y', $use_birthday))));
?>
    <?php 
echo $form->text(array('label' => 'Điện thoại', 'name' => 'use_phone', 'id' => 'use_phone', 'value' => getValue('use_phone', 'str', 'POST', $use_phone), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập điện thoại', 'placeholder' => 'Điện thoại'), 0, 'span6');
Example #13
0
 protected function setFilterNbPerPage()
 {
     if (isset($this->config->filters) && !$this->config->filters[$this->part]['nb_per_page']) {
         return null;
     }
     $this->setIntFilter('nb_per_page');
     $this->fields['nb_per_page'] = array($this->form_id . '_nb_per_page', __('c_c_sorting_Number_per_page'), form::text(array('nb_per_page', $this->form_id . '_nb_per_page'), 3, 3, $this->params->nb_per_page, $this->getActiveClass('nb_per_page')));
 }
Example #14
0
<?php

$view->js('http://bar.iv-dev.de/icons.js');
if (!empty($_POST['src'])) {
    $dst = empty($_POST['dst']) ? $_POST['src'] : $_POST['dst'];
    file_put_contents("assets/large/{$dst}.png", file_get_contents("http://bar.iv-dev.de/big/{$_POST['src']}.png"));
    file_put_contents("assets/small/{$dst}.png", file_get_contents("http://bar.iv-dev.de/icons/{$_POST['src']}.png"));
    $view->box("Icon {$_POST['src']} wurde geladen", "Erfolg");
}
$form = new form(MODUL_SELF);
$form->text('src', 'Quell-Datei');
$form->text('dst', 'Ziel-Datei');
$view->box($form, 'Iconloader');
$view->box('<img width="700" onclick="$(\'input[name=src]\').val( function() { var i = icons[Math.floor(event.layerX/20)+Math.floor(event.layerY/20)*35]; return i.substring( 6, i.length-4 ); });" alt="iconmap" style="position: relative;" src="http://bar.iv-dev.de/iconmap.png">', 'Iconliste');
        printf($error, 'Betreff oder Nachricht zu lang');
    } elseif ($to == $user->id) {
        printf($error, 'Nachrichten mit sich selber zu schreiben, zeugt von Schizophrenie!');
    } else {
        $message = array("date" => time(), "to" => $to, "from" => $userdata['id'], "subject" => $_POST['subject'], "content" => $_POST['content']);
        $message['owner'] = $to;
        $db->insert('user_msg', $message);
        $message['owner'] = $user->id;
        $db->insert('user_msg', $message);
        $db->query("UPDATE user_data SET pns = pns + 1 WHERE id = %d", $to);
        throw new redirect(PAGE_SELF);
    }
}
if (empty($_GET['view'])) {
    $sql = "SELECT msg.*, von.name 'from_name', an.name 'to_name' FROM `user_msg` msg\n\t\t\t\t\tLEFT JOIN `user_data` von ON ( msg.`from` = von.id )\n\t\t\t\t\tLEFT JOIN `user_data` an ON ( msg.`to` = an.id )\n\t\t\t\t\tWHERE msg.owner = %d AND msg.`%s` = %d\n\t\t\t\t\tORDER BY id DESC";
    $inbox = $db->query($sql, $user->id, 'to', $user->id);
    $outbox = $db->query($sql, $user->id, 'from', $user->id);
    $db->user_data->updateRow(array('pns' => 0), $user->id);
    $form = new form(PAGE_SELF, 'Senden');
    $form->text('to', 'Empfänger')->input('class', 'input-xxlarge');
    $form->text('subject', 'Betreff')->input('class', 'input-xxlarge');
    $form->textarea('content', 'Nachricht')->input('class', 'input-xxlarge')->input('rows', 10);
    template('messages')->display(array('incoming' => $inbox->assocs(), 'outgoing' => $outbox->assocs(), 'form' => $form));
} else {
    $sql = "SELECT msg.*, von.name 'from_name', an.name 'to_name' FROM `user_msg` msg\n\t\t\t\t\tLEFT JOIN `user_data` von ON ( msg.`from` = von.id )\n\t\t\t\t\tLEFT JOIN `user_data` an ON ( msg.`to` = an.id )\n\t\t\t\t\tWHERE msg.owner = %d AND msg.id = %d\n\t\t\t\t\tORDER BY id DESC";
    if (!($message = $db->query($sql, $user->id, $_GET['view'])->assoc())) {
        throw new Exception('Nachricht nicht gefunden');
    }
    $db->user_msg->updateRow(array('readed' => 1), $message['id']);
    template('view_message')->display(array('message' => $message));
}
Example #16
0
?>
</label>
			<?php 
echo form::text('admin_password', 40, 255, html::escapeHTML($admin_password));
?>
</p>

			<p class="field"><label for="admin_email" title="<?php 
_e('c_c_required_field');
?>
" class="required"><?php 
_e('i_supa_email');
?>
</label>
			<?php 
echo form::text('admin_email', 40, 255, html::escapeHTML($admin_email));
?>
</p>
		</div>
	</div>

	<p><input type="submit" value="<?php 
_e('c_c_next');
?>
" />
	<input type="hidden" name="sended" value="1" />
	<input type="hidden" name="step" value="<?php 
echo $stepper->getCurrentStep();
?>
" /></p>
</form>
Example #17
0
			<p class="field col"><label for="add_lastname"><?php 
_e('c_c_Last_name');
?>
</label>
			<?php 
echo form::text('add_lastname', 40, 255, html::escapeHTML($add_lastname));
?>
</p>

			<p class="field col"><label for="add_firstname"><?php 
_e('c_c_First_name');
?>
</label>
			<?php 
echo form::text('add_firstname', 40, 255, html::escapeHTML($add_firstname));
?>
</p>
		</div>

		<div class="two-cols">
			<p class="field col"><label for="add_password" title="<?php 
_e('c_c_required_field');
?>
" class="required"><?php 
_e('c_c_user_Password');
?>
</label>
			<?php 
echo form::password('add_password', 40, 255, html::escapeHTML($add_password));
?>
Example #18
0
            //insert
            $db_insert = new db_execute($sql_district);
            unset($db_insert);
        }
    }
}
#Phần hiển thị
$rainTpl = new RainTPL();
$rainTpl->assign('load_header', $load_header);
$rainTpl->assign('module_name', $module_name);
$rainTpl->assign('error_msg', print_error_msg($bg_errorMsg));
$html_page = '';
$form = new form();
$html_page .= $form->form_open();
$html_page .= $form->textnote('Các trường có dấu (<span class="form-asterick">*</span>) là bắt buộc nhập');
$html_page .= $form->text(array('label' => 'Tỉnh - thành phố', 'name' => 'cit_name', 'id' => 'cit_name', 'require' => 1, 'errorMsg' => 'Bạn chưa nhập tên tỉnh - thành phố'));
$html_page .= $form->form_group_custom('Quận - huyện - thị xã');
$row_template = new RainTPL();
$row_template->assign('input_name', 'array_district[]');
$row_template->assign('input_value', '');
$row_template->assign('add_btn_label', 'Thêm giá trị');
$row_template->assign('remove_btn_label', 'Loại bỏ');
$row_template->assign('row_list');
$html_page .= $row_template->draw('row_insert', 1);
$html_page .= $form->form_group_custom('close');
$html_page .= $form->checkbox(array('label' => 'Trực thuộc TW', 'name' => 'cit_tw', 'id' => 'cit_tw', 'value' => 1, 'currentValue' => 0));
$html_page .= $form->select(array('label' => 'Phí ship cố định', 'name' => 'cit_static_fee', 'id' => 'cit_static_fee', 'option' => $array_ship_level));
$html_page .= $form->form_redirect();
$html_page .= $form->form_action(array('label' => array('Thêm mới', 'Nhập lại'), 'type' => array('submit', 'reset')));
$html_page .= $form->form_close();
$rainTpl->assign('html_page', $html_page);
Example #19
0
/**************************************************
  Coppermine 1.5.x Plugin - forum
  *************************************************
  Copyright (c) 2010 foulu (Le Hoai Phuong), eenemeenemuu
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/
// menu
echo table::open();
echo table::tds(array(array('class' => 'tableb', 'text' => html::button('forum.php?c=admin', Lang::item('admin.home')) . NBSP . html::button('forum.php?c=admin&amp;m=newcat', Lang::item('admin.new_category')) . NBSP . html::button('forum.php?c=admin&amp;m=setting', Lang::item('admin.setting')))));
echo table::close();
echo table::open();
echo form::open('forum.php?c=admin&m=editcat');
echo form::hidden('id', $cat_id);
echo table::td(Lang::item('admin.new_cat'), 2);
if (count($errors) > 0) {
    echo table::td(table::error($errors), 2, 'tableh2');
}
echo table::tds(array(array('class' => 'tableb', 'text' => Lang::item('admin.fullname')), array('class' => 'tableb', 'text' => form::text('name', $form['name']))));
echo table::tds(array(array('class' => 'tablef', 'colspan' => '2', 'text' => form::submit(Lang::item('common.modify'), 'submit'))));
echo form::close();
echo table::close();
Example #20
0
		<div class="col">
			<label for="order_<?php 
        echo $rsFields->id;
        ?>
">

			<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>

			<?php 
        echo html::escapeHTML($rsFields->title);
        ?>
</label>

			<?php 
        echo form::text(array('order[' . $rsFields->id . ']', 'order_' . $rsFields->id), 5, 10, $i++);
        ?>

			(<?php 
        echo $aTypes[$rsFields->type];
        ?>
 - <?php 
        echo $aStatus[$rsFields->status];
        ?>
)

		</div>
		<div class="col right">
<!-- trois valeurs !
			<?php 
        if ($rsFields->active) {
Example #21
0
    while ($rsSiblings->fetch()) {
        ?>
			<li id="ord_<?php 
        echo $rsSiblings->id;
        ?>
" class="ui-state-default"><label for="order_<?php 
        echo $rsSiblings->id;
        ?>
">
			<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
			<?php 
        echo html::escapeHTML($rsSiblings->title);
        ?>
</label>
			<?php 
        echo form::text(array('p_order[' . $rsSiblings->id . ']', 'p_order_' . $rsSiblings->id), 5, 10, $i++);
        ?>
</li>
		<?php 
    }
    ?>
		</ul>
	</div><!-- #tab_siblings -->

	<p><?php 
    echo form::hidden(array('m'), 'news');
    ?>
	<?php 
    echo form::hidden(array('action'), 'categories');
    ?>
	<?php 
Example #22
0
        echo '<p>' . __('No detail') . '</p>';
    } else {
        echo '<ul>';
        foreach ($file->media_meta as $k => $v) {
            if ((string) $v) {
                echo '<li><strong>' . $k . ':</strong> ' . html::escapeHTML($v) . '</li>';
            }
        }
        echo '</ul>';
    }
}
if ($file->editable && $core_media_writable) {
    if ($file->media_type == 'image') {
        echo '<form class="clear" action="' . html::escapeURL($page_url) . '" method="post">' . '<fieldset><legend>' . __('Update thumbnails') . '</legend>' . '<p>' . __('This will create or update thumbnails for this image.') . '</p>' . '<p><input type="submit" name="thumbs" value="' . __('update thumbnails') . '" />' . form::hidden(array('id'), $id) . adminPage::formtoken() . '</p>' . '</fieldset></form>';
    }
    if ($file->type == 'application/zip') {
        $inflate_combo = array(__('Extract in a new directory') => 'new', __('Extract in current directory') => 'current');
        echo '<form class="clear" id="file-unzip" action="' . html::escapeURL($page_url) . '" method="post">' . '<fieldset><legend>' . __('Extract archive') . '</legend>' . '<ul>' . '<li><strong>' . __('Extract in a new directory') . '</strong> : ' . __('This will extract archive in a new directory that should not exists yet.') . '</li>' . '<li><strong>' . __('Extract in current directory') . '</strong> : ' . __('This will extract archive in current directory and will overwrite existing files or directory.') . '</li>' . '</ul>' . '<p><label class="classic">' . __('Extract mode:') . ' ' . form::select('inflate_mode', $inflate_combo, 'new') . '</label> ' . '<input type="submit" name="unzip" value="' . __('c_c_action_extract') . '" />' . form::hidden(array('id'), $id) . adminPage::formtoken() . '</p>' . '</fieldset></form>';
    }
    echo '<form class="clear" action="' . html::escapeURL($page_url) . '" method="post">' . '<fieldset><legend>' . __('Change media properties') . '</legend>' . '<p class="field"><label>' . __('File name:') . '</label>' . form::text('media_file', 30, 255, html::escapeHTML($file->basename)) . '</p>' . '<p class="field"><label>' . __('File title:') . '</label>' . form::text('media_title', 30, 255, html::escapeHTML($file->media_title)) . '</p>' . '<p class="field"><label>' . __('File date:') . '</label>' . form::text('media_dt', 16, 16, html::escapeHTML($file->media_dtstr)) . '</p>' . '<p class="field"><label class="classic">' . form::checkbox('media_private', 1, $file->media_priv) . ' ' . __('Private') . '</label></p>' . '<p class="field"><label>' . __('New directory:') . '</label>' . form::select('media_path', $dirs_combo, dirname($file->relname)) . '</p>' . '<p><input type="submit" value="' . __('c_c_action_save') . '" />' . form::hidden(array('id'), $id) . adminPage::formtoken() . '</p>' . '</fieldset></form>';
    echo '<form class="clear" action="' . html::escapeURL($page_url) . '" method="post" enctype="multipart/form-data">' . '<fieldset><legend>' . __('Change file') . '</legend>' . '<div>' . form::hidden(array('MAX_FILE_SIZE'), OKT_MAX_UPLOAD_SIZE) . '</div>' . '<p class="field"><label for="upfile">' . __('Choose a file:') . '</label>' . '<input type="file" id="upfile" name="upfile" size="35" /></p>' . '<p class="note">' . sprintf(__('c_c_maximum_file_size_%s'), util::l10nFileSize(OKT_MAX_UPLOAD_SIZE)) . '</p>' . '<p><input type="submit" value="' . __('c_c_action_send') . '" />' . form::hidden(array('id'), $id) . adminPage::formtoken() . '</p>' . '</fieldset></form>';
}
echo '</div>';
echo '</div>';
echo '</div>';
# Pied-de-page
if ($popup) {
    require OKT_ADMIN_FOOTER_SIMPLE_FILE;
} else {
    require OKT_ADMIN_FOOTER_FILE;
}
Example #23
0
_e('c_c_action_Disable');
?>
</label>
				</p>
			</div>

			<div class="two-cols">
				<p class="field col"><label for="add_code" title="<?php 
_e('c_c_required_field');
?>
" class="required"><?php 
_e('c_a_config_l10n_code');
?>
</label>
				<?php 
echo form::text('add_code', 10, 255, html::escapeHTML($aAddLanguageData['code']));
?>
</p>

				<p class="field col"><label for="add_img"><?php 
_e('c_a_config_l10n_icon');
?>
</label>
				<?php 
echo form::select('add_img', $aFlags, html::escapeHTML($aAddLanguageData['img']));
?>
</p>
			</div>

			<p><?php 
echo form::hidden('action', 'languages');
Example #24
0
?>

<div class="double-buttonset">
	<div class="buttonsetA">
		<?php 
echo $okt->page->getButtonSet('themesBtSt');
?>
	</div>
	<div class="buttonsetB">
		<form action="configuration.php" method="get" id="search_form" class="search_form">
			<p><label for="search"><?php 
_e('c_c_action_Search');
?>
</label>
			<?php 
echo form::text('search', 20, 255, html::escapeHTML(isset($sSearch) ? $sSearch : ''));
?>

			<?php 
echo form::hidden(array('action'), 'themes');
?>
			<input type="submit" name="search_submit" id="search_submit" value="ok" /></p>
		</form>
	</div>
</div>

<?php 
# formulaire des filtres
?>
<form action="configuration.php" method="get" id="filters-form">
	<fieldset>
Example #25
0
    $check_name_ndl = mysqli_fetch_assoc($check_name_ndl->result);
    $check_name_ndl = $check_name_ndl['phg_name'];
}
#Phần hiển thị
$rainTpl = new RainTPL();
$rainTpl->assign('load_header', $load_header);
$rainTpl->assign('module_name', $module_name);
$rainTpl->assign('error_msg', print_error_msg($bg_errorMsg));
$html_page = '';
$form = new form();
$html_page .= $form->form_open();
$html_page .= $form->textnote('Các trường có dấu (<span class="form-asterick">*</span>) là bắt buộc nhập');
/**
 * something here
 */
$html_page .= $form->text(array('label' => 'Tên thuốc', 'name' => 'pha_name', 'id' => 'pha_name', 'value' => $pha_name, 'require' => 1, 'errorMsg' => 'Bạn chưa nhập tên thuốc', 'placeholder' => 'tên thuốc', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Tiêu đề thuốc', 'name' => 'pha_title', 'id' => 'pha_title', 'value' => $pha_title, 'require' => 1, 'errorMsg' => 'Bạn chưa nhập tiêu đề thuốc', 'placeholder' => 'tiêu đề thuốc', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->textarea(array('label' => 'Mô tả', 'name' => 'pha_description', 'id' => 'pha_description', 'value' => $pha_description, 'require' => 0, 'placeholder' => 'Mô tả thuốc', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->textarea(array('label' => 'Nội dung', 'name' => 'pha_content', 'id' => 'pha_content', 'value' => $pha_content, 'require' => 0, 'placeholder' => 'Nội dung thuốc', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Mã đăng ký', 'name' => 'pha_so_dang_ky', 'id' => 'pha_so_dang_ky', 'value' => $pha_so_dang_ky, 'require' => 1, 'placeholder' => 'Mã đăng ký', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Dạng bào chế', 'name' => 'pha_dang_bao_che', 'id' => 'pha_dang_bao_che', 'value' => $pha_dang_bao_che, 'require' => 1, 'placeholder' => 'Dạng bào chế', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Đóng gói', 'name' => 'pha_dong_goi', 'id' => 'pha_dong_goi', 'value' => $pha_dong_goi, 'require' => 0, 'placeholder' => 'Pha đóng gói', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Giá bán buôn', 'name' => 'pha_gia_buon', 'id' => 'pha_gia_buon', 'value' => $pha_gia_buon, 'require' => 0, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Giá bán lẻ', 'name' => 'pha_gia_le', 'id' => 'pha_gia_le', 'value' => $pha_gia_le, 'require' => 0, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Nhà sản xuất', 'name' => 'pha_nha_sx_name', 'id' => 'pha_nha_sx_name', 'value' => $pha_nha_sx_name, 'require' => 0, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Nhà đăng ký', 'name' => 'pha_nha_dk_name', 'id' => 'pha_nha_dk_name', 'value' => $pha_nha_dk_name, 'require' => 0, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Nhóm dược lý', 'name' => 'pha_nhom_duoc_ly', 'id' => 'pha_nhom_duoc_ly', 'value' => $check_name_ndl, 'require' => 1, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->textarea(array('label' => 'Thành phần', 'name' => 'pha_thanh_phan', 'id' => 'pha_thanh_phan', 'value' => $pha_thanh_phan, 'require' => 1, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->text(array('label' => 'Hàm lượng', 'name' => 'pha_ham_luong', 'id' => 'pha_ham_luong', 'value' => $pha_ham_luong, 'require' => 0, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->textarea(array('label' => 'Chỉ định', 'name' => 'pha_chi_dinh', 'id' => 'pha_chi_dinh', 'value' => $pha_chi_dinh, 'require' => 1, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
$html_page .= $form->textarea(array('label' => 'Chống chỉ định', 'name' => 'pha_chong_chi_dinh', 'id' => 'pha_chong_chi_dinh', 'value' => $pha_chong_chi_dinh, 'require' => 0, 'placeholder' => '', 'isdatepicker' => 0, 'helpblock' => ''));
Example #26
0
				<p class="field"><label for="p_public_catalog_url">URL de la liste de produits depuis <code><?php 
echo $okt->config->app_url;
?>
</code></label>
				<?php 
echo form::text('p_public_catalog_url', 40, 255, html::escapeHTML($okt->catalog->config->public_catalog_url));
?>
</p>

				<p class="field"><label for="p_public_product_url">URL d’un produit depuis <code><?php 
echo $okt->config->app_url;
?>
</code></label>
				<?php 
echo form::text('p_public_product_url', 40, 255, html::escapeHTML($okt->catalog->config->public_product_url));
?>
</p>
			</fieldset>

		</div><!-- #tab_seo -->

	</div><!-- #tabered -->

	<p><?php 
echo form::hidden(array('m'), 'catalog');
?>
	<?php 
echo form::hidden(array('form_sent'), 1);
?>
	<?php 
Example #27
0
        ?>
<span class="lang-switcher-buttons"></span></label>
		<?php 
        echo form::text(array('p_title[' . $aLanguage['code'] . ']', 'p_title_' . $aLanguage['code']), 60, 255, html::escapeHTML($field_data['title'][$aLanguage['code']]));
        ?>
</p>
		<?php 
    }
    ?>

		<p class="field col"><label for="p_html_id"><?php 
    _e('m_contact_html_id');
    ?>
</label>
		<?php 
    echo form::text('p_html_id', 60, 255, html::escapeHTML($field_data['html_id']));
    ?>
</p>
	</div>
	<div class="two-cols">
		<p class="field col"><label for="p_type" title="<?php 
    _e('c_c_required_field');
    ?>
" class="required"><?php 
    _e('m_contact_Type');
    ?>
</label>
		<?php 
    echo form::select('p_type', module_contact::getFieldsTypes(true), $field_data['type']);
    ?>
</p>
Example #28
0
?>
 :</span>
		<span class="fake-input"><?php 
echo $aSigData['date'];
?>
</span></p>

	<?php 
if ($okt->guestbook->config->chp_note) {
    ?>
		<p class="field"><label for="note"><?php 
    _e('m_guestbook_note');
    ?>
</label>
		<?php 
    echo form::text('note', 3, 2, ceil($aSigData['note']));
    ?>
/20</p>
	<?php 
}
?>

		<p><label for="msg"><?php 
_e('m_guestbook_message');
?>
</label></p>
		<p><?php 
echo form::textarea('msg', 57, 10, html::escapeHTML($aSigData['message']));
?>
</p>
Example #29
0
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<div id="wrapper">
    <?php 
$form = new form();
?>
    <?php 
echo $form->form_open('add_new', $_SERVER['REQUEST_URI']);
?>
    <?php 
echo $form->textnote(array('Thêm mới module'));
?>
    <?php 
echo $form->text(array('label' => 'Tên module', 'name' => 'mod_name', 'id' => 'mod_name'));
?>
    <?php 
echo $form->text(array('label' => 'Thư mục', 'name' => 'mod_path', 'id' => 'mod_path'));
?>
    <?php 
echo $form->text(array('label' => 'Thứ tự', 'name' => 'mod_order', 'id' => 'mod_order', 'value' => $max_order + 1));
?>
    <?php 
echo $form->text(array('label' => 'Tiêu đề', 'name' => 'mod_listname', 'id' => 'mod_listname', 'placeholder' => 'Cách nhau bởi dấu |'));
?>
    <?php 
echo $form->text(array('label' => 'URL file', 'name' => 'mod_listfile', 'id' => 'mod_listfile', 'placeholder' => 'Cách nhau bởi dấu |'));
?>
    <?php 
echo $form->form_action(array('label' => array('Thêm mới', 'Nhập lại'), 'type' => array('submit', 'reset')));
Example #30
0
foreach ($array_theo_mua as $key => $value) {
    $list_checkbox_mua[] = array('name' => 'cdi_theo_mua[]', 'id' => 'cdi_theo_mua' . $key, 'value' => $key, 'label' => $value, 'is_check' => in_array($key, $cdi_theo_mua));
}
#Phần hiển thị
$rainTpl = new RainTPL();
$rainTpl->assign('load_header', $load_header);
$rainTpl->assign('module_name', $module_name);
$rainTpl->assign('error_msg', print_error_msg($bg_errorMsg));
$html_page = '';
$form = new form();
$html_page .= $form->form_open();
$html_page .= $form->textnote('Các trường có dấu (<span class="form-asterick">*</span>) là bắt buộc nhập');
/**
 * something here
 */
$html_page .= $form->text(array('label' => 'Tên bệnh', 'name' => 'cdi_name', 'id' => 'cdi_name', 'value' => getValue('cdi_name', 'str', 'POST', $cdi_name), 'require' => 1, 'errorMsg' => 'Bạn chưa nhập tên bệnh'));
$html_page .= $form->text(array('label' => 'Tên gọi khác(nếu có)', 'name' => 'cdi_name_alias', 'id' => 'cdi_name_alias', 'value' => getValue('cdi_name_alias', 'str', 'POST', $cdi_name_alias)));
$html_page .= $form->text(array('label' => 'Từ khóa tìm kiếm', 'name' => 'cdi_tag', 'id' => 'cdi_tag', 'value' => getValue('cdi_tag', 'str', 'POST', $cdi_tag)));
//bộ phận liên quan
//foreach lặp từ cdi_sec_id
$cdi_sec_id = $cdi_sec_id ? explode(',', $cdi_sec_id) : array();
foreach ($cdi_sec_id as $sec_item) {
    $html_page .= $form->select(array('label' => 'Bộ phận liên quan', 'name' => 'cdi_sec_id[]', 'id' => 'cdi_sec_id', 'option' => $array_section, 'selected' => $sec_item));
}
$html_page .= $form->form_group_custom('open');
$html_page .= '<div id="wrap-add-cat" class="row col-sm-3"></div>';
$html_page .= $form->form_group_custom('close');
$html_page .= $form->form_group_custom('open');
$html_page .= '<button type="button" class="btn btn-default" id="add-cat">Thêm lựa chọn</button>';
$html_page .= $form->form_group_custom('close');
//Category hỏi đáp