本文整理汇总了PHP中div_close函数的典型用法代码示例。如果您正苦于以下问题:PHP div_close函数的具体用法?PHP div_close怎么用?PHP div_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了div_close函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: video_list_thumbnail
function video_list_thumbnail($videoList)
{
foreach ($videoList as $video) {
$id = $video->video_id;
$title = $video->video_title;
$year = $video->video_year;
echo "<div class='col-md-6' data-toggle='tooltip' data-placement='top' title='{$title}'> ";
echo a_open("thumbnail", base_url() . "video/{$id}");
echo img("data/music/videos/{$id}/cover.png");
echo a_close();
echo div_close();
}
}
示例2: styleConfig
function styleConfig()
{
echo '<div class="beta_box">';
div_open("beta_header");
echo "Personlig stilvalg - under utprøving! (beta)";
div_close();
echo '<div id="testediv"> </div>';
echo '<div id="xhrfeedback"> </div>';
h3("Velg en stil");
form_start_custom("styleedit", "javascript:changeUserStyle('modules/styleService.php')", "POST");
?>
<select id="userStyles">
<option value="NULL">Velg stilark</option>
<option value="NULL">Gå tilbake til standard</option>
</select>
<script type="text/javascript">
fetchStyles('modules/styleService.php');
</script>
<?php
form_submit("submit", "Bruk valgt stil");
form_end();
h3("Legg opp en ny stil");
form_start_custom("styleadd", "javascript:addUserStyle('modules/styleService.php')", "POST");
form_textfield2("Navn", "styleName", "");
br();
form_textfield2("URL", "styleURL", "");
br();
form_submit("submit", "Legg opp stil");
br();
form_end();
h3("Stiler du kan slette");
echo "(Disse er lagt opp av deg og ikke i bruk av noen andre for øyeblikket.)";
div_open("", "", "deleteStyleList");
div_close();
div_close();
}
示例3: array
* Vue permettant à un responsable de voir la liste des vacataires, de se connecter en leur nom ou de créer un vacataire
* Cette vue nécessite les varaibles suivantes : (optionnel) $temporaryWorkers => tableau contenant des tableau associatifs décrivant un 'teacher'. Les clés sont :
* 'initials' , 'firstnale' , 'lastname'
* $fieldNames => tableau contenant les différents champs (texte) à remplir pour la création d'un vacataire
*/
$fieldNames = array('Initiales', 'Nom', 'Prénom');
echo div(array('class' => 'text-center center-block'));
if (isset($temporaryWorkers) && !empty($temporaryWorkers)) {
$data = array();
foreach ($temporaryWorkers as $t) {
$data[$t['initials']] = $t['firstname'] . ' ' . $t['lastname'];
}
echo form_open('main/selectTemporaryWorkers', array('class' => 'form-group'));
echo form_dropdown('id', $data, '', 'id="login" class="form-control"');
echo br(1);
echo form_submit(array('value' => 'Connexion', 'class' => 'btn btn-success'));
echo br(2);
echo form_close();
}
echo nbs(2);
echo '<table id="myTable" class="table table-bordered">';
echo "<tr><th></th><th>Créer un nouveau vacataire</th><th></th><th></th></tr>";
echo '<tr id="new">';
foreach ($fieldNames as $field) {
echo '<td><input type="text" class="form-control" placeholder="' . $field . '"/></td>';
}
echo '<td><span style="cursor: pointer;" class="glyphicon glyphicon-floppy-disk" data-original-title="Enregistrer" data-placement="top" data-toogle="tooltip" onclick="saveNewRow()"></span></td>';
echo '</tr>';
echo '</table>';
echo div_close();
示例4: showModulesDropDown
function showModulesDropDown($module = "")
{
$table = getModules();
div_open();
form_start_post();
form_select("module");
if ($table) {
while ($row = nextResultInTable($table)) {
if ($module == $row['module']) {
form_option($row['module'], $row['module'], "true");
} else {
form_option($row['module'], $row['module']);
}
}
} else {
// no modules with settings available
form_option("-", "");
}
form_select_end();
// this module
form_hidden("m_c", "showSettingsGUI");
// button
form_submit("submit", getString("settings_show_settings", "Vis innstillinger"));
form_end();
div_close();
}
示例5: display_validation_errors
/**
* Fonction affichant une erreur.
*
* Cette fonction affiche une erreur dans un encadré rouge d'un certaine taille.
*
* @param string $error Texte de l'erreur
* @param integer $width Paramètre optionnel. Largeur en pixel de l'encadré. Par défaut : 750px
*
*/
function display_validation_errors($error, $width = 750)
{
if (!empty($error)) {
echo div(array('class' => 'alert alert-danger center-block', 'style' => "max-width: {$width}px;"));
echo $error;
echo div_close();
}
}
示例6: previewArticle
function previewArticle($article)
{
if (!$article) {
h3("Fant ikke artikkelen.");
} else {
table_open();
tr_open();
td_open(1);
h1_link($article['title'], url_to_article($article['articleid']));
articleMetaInfo($article['author'], $article['author_username'], make_date($article['date_posted']), make_time($article['time_posted']), $article['language']);
div_open("textbody", "");
$paragraph = makeReadyForPrint(nl2br($article['body']));
echo $paragraph;
div_close();
td_close();
tr_close();
table_close();
}
}
示例7: edit
/**
* edit function.
*
* @access public
* @param int $id (default: 0)
* @return void
*/
public function edit($id = 0)
{
$this->output->enable_profiler(false);
if (!$this->auth->loggedin()) {
redirect('user/login');
}
$uid = $id > 0 ? intval($id) : intval($this->auth->userid());
$user = $this->user_model->get_user($uid);
$data['title'] = $this->system_model->get('app_name');
$data['partial'] = 'admin_users';
$data['stylesheets'] = array('buttons_purple');
$data['breadcrumbs'] = array(array('data' => anchor('/', $data['title']), 'mode' => 'unavailable'), array('data' => anchor('admin', ucfirst(lang('administration')))), array('data' => anchor('admin/users', ucfirst(lang('users')))), array('data' => anchor('user/edit', ucfirst(lang('edit_user'))), 'mode' => 'current'));
$html = '<br>';
//heading(ucfirst(lang('edit_user')), 1);
$html .= div_open('row') . div_open('eight centered columns');
if ($this->input->post()) {
// !Process updated fields.
$user = array();
$username = $this->input->post('username');
$firstname = $this->input->post('firstname');
$lastname = $this->input->post('lastname');
$email = $this->input->post('email');
$phone = $this->input->post('phone');
if ($username) {
$user['username'] = $username;
}
if ($firstname) {
$user['firstname'] = $firstname;
}
if ($lastname) {
$user['lastname'] = $lastname;
}
if ($email) {
$user['email'] = $email;
}
if ($phone) {
$user['phone'] = $phone;
}
$ok = $this->user_model->update_user($id, $user);
$html .= p('updated: ' . $ok);
}
$html .= form_open(uri_string(), array('class' => 'custom'));
$html .= form_hidden('id', $id);
$html .= row(columns(form_label(ucfirst(lang('username')) . ':' . span('*', 'required'), 'username') . form_input(array('type' => 'text', 'name' => 'username', 'id' => 'username', 'class' => 'expand', 'value' => $user['username'])), 6, 'end'));
$html .= row(columns(form_label(ucfirst(lang('email_address')) . ':' . span('*', 'required'), 'email') . form_input(array('type' => 'email', 'name' => 'email', 'id' => 'email', 'class' => 'expand', 'value' => $user['email'])), 6) . columns(form_label(ucfirst(lang('phone_number')) . ':', 'phone') . form_input(array('type' => 'text', 'name' => 'phone', 'id' => 'phone', 'class' => 'expand', 'value' => $user['phone'])), 6));
$html .= row(columns(form_label(ucfirst(lang('firstname')) . ':', 'firstname') . form_input(array('type' => 'text', 'name' => 'firstname', 'id' => 'firstname', 'class' => 'expand', 'value' => $user['firstname'])), 6) . columns(form_label(ucfirst(lang('lastname')) . ':', 'lastname') . form_input(array('type' => 'text', 'name' => 'lastname', 'id' => 'lastname', 'value' => $user['lastname'])), 6));
$html .= button_group(array(button_anchor('admin/users', lang('button_cancel'), 'radius'), form_input(array('type' => 'submit', 'class' => 'radius button', 'value' => lang('button_save')))), 'radius right');
$html .= form_close() . div_close();
/*
$html .= div_open('four columns');
$html .= div_open('radius panel');
$html .= heading(ucfirst(lang('role')), 4);
$html .= form_open('user/role', array('class' => 'custom'));
$html .= form_hidden('source', $this->encrypt->encode(current_url()));
$allroles = $this->role_model->list_roles();
$role = $this->role_model->user_mapping($uid);
$role = $this->role_model->get_role($role['role']);
$html .= form_label(
ucfirst(lang('select')).' '.lang('role').':',
'role');
$html .= form_dropdown(
'role',
$allroles,
$role['id'],
'class="expand" id="role"');
$html .= form_input(array(
'type' => 'submit',
'class' => 'small radius button',
'value' => lang('button_save')));
$html .= form_close();
*/
$html .= div_close();
$data['html'] = $html;
$this->system_model->view('template', $data);
}
示例8: org
/**
* org function.
*
* @access public
* @return void
*/
public function org()
{
$this->output->enable_profiler(TRUE);
if (!$this->auth->loggedin()) {
redirect('user/login');
}
$uid = intval($this->auth->userid());
$user = $this->user_model->get_user($uid);
$this->form_validation->set_rules('org_name', lang('org_name'), 'trim|required');
$this->form_validation->set_rules('app_name', lang('app_name'), 'trim|required');
if ($this->form_validation->run() == true) {
if ($this->input->post('org_name') && strlen($this->input->post('org_name')) > 0) {
$this->system_model->set('org_name', $this->input->post('org_name'));
}
if ($this->input->post('app_name') && strlen($this->input->post('app_name')) > 0) {
$this->system_model->set('app_name', $this->input->post('app_name'));
}
if ($this->input->post('org_type') && strlen($this->input->post('org_type')) > 0) {
$this->system_model->set('org_type', $this->input->post('org_type'));
}
}
$org_type = $this->system_model->get('org_type');
$app_name = $this->system_model->get('app_name');
$org_name = $this->system_model->get('org_name');
$call_org = $org_type ? $org_type : lang('organization');
$data['title'] = $app_name;
/*
$data['breadcrumbs'] = array(
array('data' => anchor('/', $app_name), 'mode' => 'unavailable'),
array('data' => anchor('admin', ucfirst(lang('administration')))),
array('data' => anchor('admin/org', ucfirst(lang('the_organization'))), 'mode' => 'current'));
*/
$content = row(columns(heading(ucfirst(lang('administer')) . ' ' . span($call_org, 'org_type', 'org_type') . lang('org_pluralizer'), 1), 12));
$content .= form_open('admin/org', array('class' => 'custom')) . div_open('row') . div_open('six columns end');
$content .= form_label(sprintf(lang('input_org_name'), $call_org), 'org_name');
$content .= form_input(array('type' => 'text', 'name' => 'org_name', 'id' => 'org_name', 'class' => form_error('org_name') ? 'twelve error' : 'twelve', 'value' => $org_name));
$content .= form_label(lang('input_app_name'), 'app_name');
$content .= form_input(array('type' => 'text', 'name' => 'app_name', 'id' => 'app_name', 'class' => form_error('app_name') ? 'twelve error' : 'twelve', 'value' => $app_name));
$content .= form_label(lang('input_org_type'), 'org_type');
$content .= $org_type ? form_input(array('type' => 'text', 'name' => 'org_type', 'id' => 'org_type', 'class' => 'twelve', 'value' => $call_org)) : form_input(array('type' => 'text', 'name' => 'org_type', 'id' => 'org_type', 'class' => 'twelve', 'placeholder' => $call_org));
$content .= div_close(2);
$content .= form_input(array('type' => 'submit', 'class' => 'radius button', 'value' => lang('button_save')));
$content .= form_close();
$this->javascript->keyup('#org_type', '$("#org_name").val($("#org_type").val());');
$html = $content;
$data['html'] = $html;
$this->system_model->view('template', $data);
}