当前位置: 首页>>代码示例>>PHP>>正文


PHP open_form函数代码示例

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


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

示例1: msg_info

        $link_vm = "<a href='index.php?" . PAG_INDEX . "=" . $pages_refs['ms_computer'] . "&head=1&systemid=" . $valVM['hardware_id'] . "'  target='_blank'><font color=red>" . $valVM['name'] . "</font></a>";
        $link[$key] = true;
        if ($data[$key] != '') {
            msg_info($l->g(1266) . "<br>" . $l->g(1269) . ': ' . $link_vm);
        }
    } elseif ($key == "EXPORT_OCS") {
        $data[$key] = "<a href=# onclick=window.open(\"index.php?" . PAG_INDEX . "=" . $pages_refs['ms_export_ocs'] . "&no_header=1&systemid=" . $protectedGet['systemid'] . "\")>" . $l->g(1304) . "</a>";
        $link[$key] = true;
    } elseif ($key == "IPADDR" and (!isset($_SESSION['OCS']['RESTRICTION']['WOL']) or $_SESSION['OCS']['RESTRICTION']['WOL'] == "NO")) {
        $data[$key] = $item->{$key} . " <a href=# OnClick='confirme(\"\",\"WOL\",\"bandeau\",\"WOL\",\"" . $l->g(1283) . "\");'><i>WOL</i></a>";
        $link[$key] = true;
    } elseif ($item->{$key} != '') {
        $data[$key] = $item->{$key};
    }
}
echo open_form("bandeau");
//Wake On Lan function
if (isset($protectedPost["WOL"]) and $protectedPost["WOL"] == 'WOL' and (!isset($_SESSION['OCS']['RESTRICTION']['WOL']) or $_SESSION['OCS']['RESTRICTION']['WOL'] == "NO")) {
    require_once 'require/function_wol.php';
    $wol = new Wol();
    $sql = "select MACADDR,IPADDRESS from networks WHERE (hardware_id=%s) and status='Up'";
    $arg = array($systemid);
    $resultDetails = mysql2_query_secure($sql, $_SESSION['OCS']["readServer"], $arg);
    $msg = "";
    while ($item = mysql_fetch_object($resultDetails)) {
        $wol->wake($item->MACADDR, $item->IPADDRESS);
        if ($wol->wol_send == $l->g(1282)) {
            msg_info($wol->wol_send . "=>" . $item->MACADDR . "/" . $item->IPADDRESS);
        } else {
            msg_error($wol->wol_send . "=>" . $item->MACADDR . "/" . $item->IPADDRESS);
        }
开发者ID:inkoss,项目名称:karoshi-server,代码行数:31,代码来源:ms_computer.php

示例2: show_package_form

function show_package_form($data, $errors)
{
    global $l;
    // TODO translations
    echo '<h3>' . $l->g(435) . '</h3>';
    echo open_form('create_pack', '', 'enctype="multipart/form-data"');
    // Hidden fields
    show_form_input('TIMESTAMP', array('type' => 'hidden', 'value' => $data['TIMESTAMP']));
    echo '<div class="form-body">';
    // Left column
    echo '<div class="form-column">';
    show_file_upload_frame($data['TIMESTAMP'], $data, $errors);
    show_basic_info_frame($data, $errors);
    echo '</div>';
    // Right column
    echo '<div class="form-column">';
    show_deploy_speed_frame($data, $errors);
    show_redistrib_frame($data, $errors);
    show_user_messages_frame($data, $errors);
    echo '</div>';
    echo '</div>';
    // TODO labels
    echo '<div class="form-buttons">';
    show_form_submit('create_package', 'Create package');
    echo '</div>';
    echo close_form();
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:27,代码来源:package_form_view.php

示例3: show_computer_summary

function show_computer_summary($computer)
{
    global $l;
    $urls = $_SESSION['OCS']['url_service'];
    $labels = array('SYSTEM' => array('USERID' => $l->g(24), 'OSNAME' => $l->g(274), 'OSVERSION' => $l->g(275), 'OSCOMMENTS' => $l->g(286), 'DESCRIPTION' => $l->g(53), 'WINCOMPANY' => $l->g(51), 'WINOWNER' => $l->g(348), 'WINPRODID' => $l->g(111), 'WINPRODKEY' => $l->g(553), 'VMTYPE' => $l->g(1267)), 'NETWORK' => array('WORKGROUP' => $l->g(33), 'USERDOMAIN' => $l->g(557), 'IPADDR' => $l->g(34), 'NAME_RZ' => $l->g(304)), 'HARDWARE' => array('SWAP' => $l->g(50), 'MEMORY' => $l->g(26), 'UUID' => $l->g(1268), 'ARCH' => $l->g(1247)), 'AGENT' => array('USERAGENT' => $l->g(357), 'LASTDATE' => $l->g(46), 'LASTCOME' => $l->g(820)));
    $cat_labels = array('SYSTEM' => $l->g(1387), 'NETWORK' => $l->g(1388), 'HARDWARE' => $l->g(1389), 'AGENT' => $l->g(1390));
    foreach ($labels as $cat_key => $cat) {
        foreach ($cat as $key => $lbl) {
            if ($key == "MEMORY") {
                $sqlMem = "SELECT SUM(capacity) AS 'capa' FROM memories WHERE hardware_id=%s";
                $argMem = $computer->ID;
                $resMem = mysql2_query_secure($sqlMem, $_SESSION['OCS']["readServer"], $argMem);
                $valMem = mysqli_fetch_array($resMem);
                if ($valMem["capa"] > 0) {
                    $memory = $valMem["capa"];
                } else {
                    $memory = $computer->{$key};
                }
                $data[$key] = $memory;
            } elseif ($key == "LASTDATE" or $key == "LASTCOME") {
                $data[$key] = dateTimeFromMysql($computer->{$key});
            } elseif ($key == "NAME_RZ") {
                $data[$key] = "";
                $data_RZ = subnet_name($computer->ID);
                $nb_val = count($data_RZ);
                if ($nb_val == 1) {
                    $data[$key] = $data_RZ[0];
                } elseif (isset($data_RZ)) {
                    foreach ($data_RZ as $index => $value) {
                        $data[$key] .= $index . " => " . $value . "<br>";
                    }
                }
            } elseif ($key == "VMTYPE" and $computer->UUID != '') {
                $sqlVM = "select vm.hardware_id,vm.vmtype, h.name from virtualmachines vm left join hardware h on vm.hardware_id=h.id where vm.uuid='%s' order by h.name DESC";
                $argVM = $computer->UUID;
                $resVM = mysql2_query_secure($sqlVM, $_SESSION['OCS']["readServer"], $argVM);
                $valVM = mysqli_fetch_array($resVM);
                $data[$key] = $valVM['vmtype'];
                $link_vm = "<a href='index.php?" . PAG_INDEX . "=" . $urls->getUrl('ms_computer') . "&head=1&systemid=" . $valVM['hardware_id'] . "'  target='_blank'><font color=red>" . $valVM['name'] . "</font></a>";
                $link[$key] = true;
                if ($data[$key] != '') {
                    msg_info($l->g(1266) . "<br>" . $l->g(1269) . ': ' . $link_vm);
                }
            } elseif ($key == "IPADDR" and $_SESSION['OCS']['profile']->getRestriction('WOL', 'NO') == "NO") {
                $data[$key] = $computer->{$key} . " <a href=# OnClick='confirme(\"\",\"WOL\",\"bandeau\",\"WOL\",\"" . $l->g(1283) . "\");'><i>WOL</i></a>";
                $link[$key] = true;
            } elseif ($computer->{$key} != '') {
                $data[$key] = $computer->{$key};
            }
        }
    }
    echo open_form("bandeau");
    show_summary($data, $labels, $cat_labels, $link);
    echo "<input type='hidden' id='WOL' name='WOL' value=''>";
    echo close_form();
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:56,代码来源:ms_computer_views.php

示例4: show_activate_form

function show_activate_form($timestamp, $data, $errors)
{
    global $l;
    // TODO translations
    $package = get_package_info($timestamp);
    $redistrib_pack = get_redistrib_package_info($timestamp);
    echo '<h3>Package ' . $package['NAME'] . ' (' . $package['FILEID'] . ')</h3>';
    echo '<a href="#" target="_blank">Download</a>';
    if ($redistrib_pack) {
        echo ' - <a href="#" target="_blank">Download redistribution package</a>';
    }
    echo ' - <a href="#" target="_blank">View info file</a>';
    echo open_form('activate_pack');
    echo '<div class="form-frame">';
    show_form_field($data, $errors, 'select', 'METHOD', 'Activation method', array('type' => 'radio', 'options' => array('')));
    echo '</div>';
    echo close_form();
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:18,代码来源:activate_form_view.php

示例5: login

function login()
{
    global $sec_code, $pagetitle, $adminindex;
    $pagetitle .= ' ' . _BC_DELIM . ' ' . _ADMINLOGIN;
    require 'header.php';
    OpenTable();
    echo open_form($adminindex, 'login', _ADMINLOGIN) . '
	<label for="alogin" class="ulog">' . _ADMINID . '</label><input class="set" type="text" name="alogin" id="alogin" size="20" maxlength="25" /><br />
	<label for="pwd" class="ulog">' . _PASSWORD . '</label><input class="set" type="password" name="pwd" id="pwd" size="20" maxlength="40" /><br />';
    if ($sec_code & 1) {
        echo '<label for="gfx_check" class="ulog">' . _SECURITYCODE . ':</label>' . generate_secimg(7) . '<br />
		<label for="gfx_check" class="ulog">' . _TYPESECCODE . ':</label><input class="set" type="text" name="gfx_check" id="gfx_check" size="10" maxlength="8" /><br />';
    }
    echo '<label for="persistent" class="ulog">' . _LOGIN_REMEMBERME . '</label><input type="checkbox" name="persistent" id="persistent" value="1" /><br />
	<div style="text-align:center;"><input type="submit" class="sub" value="' . _LOGIN . '" /></div>' . close_form();
    echo '<script type="text/javascript">document.getElementById("alogin").focus();</script>';
    CloseTable();
    require 'footer.php';
}
开发者ID:cbsistem,项目名称:nexos,代码行数:19,代码来源:admin.php

示例6: affich_detail_simple

function affich_detail_simple($form_name, $list_fields, $list_col_cant_del, $default_fields, $table, $tab_options = array())
{
    $form_name = "affich_controllers";
    $table_name = $form_name;
    echo open_form($form_name);
    //	$list_fields=array($l->g(64) => 'MANUFACTURER',
    //					   $l->g(49) => 'NAME',
    //					   $l->g(66) => 'TYPE',
    //					   'Caption'=>'CAPTION',
    //					   $l->g(53)=>'DESCRIPTION',
    //					   $l->g(277)=> 'VERSION');
    //	//$list_fields['SUP']= 'ID';
    //	$list_col_cant_del[$l->g(66)]=$l->g(66);
    //	$default_fields= array($l->g(64)=>$l->g(64),$l->g(49)=>$l->g(49),$l->g(66)=>$l->g(66));
    $queryDetails = "SELECT ";
    foreach ($list_fields as $lbl => $value) {
        $queryDetails .= $value . ",";
    }
    $queryDetails = substr($queryDetails, 0, -1) . " FROM " . $table . " WHERE (hardware_id={$systemid})";
    tab_req($table_name, $list_fields, $default_fields, $list_col_cant_del, $queryDetails, $form_name, 80, $tab_options);
    echo close_form();
}
开发者ID:inkoss,项目名称:karoshi-server,代码行数:22,代码来源:fonction.php

示例7: affich_detail_simple

function affich_detail_simple($form_name, $list_fields, $list_col_cant_del, $default_fields, $table, $tab_options = array())
{
    if (AJAX) {
        parse_str($protectedPost['ocs']['0'], $params);
        $protectedPost += $params;
        ob_start();
        $ajax = true;
    } else {
        $ajax = false;
    }
    $form_name = "affich_controllers";
    $table_name = $form_name;
    $tab_options = $protectedPost;
    $tab_options['form_name'] = $form_name;
    $tab_options['table_name'] = $table_name;
    echo open_form($form_name);
    //	$list_fields=array($l->g(64) => 'MANUFACTURER',
    //					   $l->g(49) => 'NAME',
    //					   $l->g(66) => 'TYPE',
    //					   'Caption'=>'CAPTION',
    //					   $l->g(53)=>'DESCRIPTION',
    //					   $l->g(277)=> 'VERSION');
    //	//$list_fields['SUP']= 'ID';
    //	$list_col_cant_del[$l->g(66)]=$l->g(66);
    //	$default_fields= array($l->g(64)=>$l->g(64),$l->g(49)=>$l->g(49),$l->g(66)=>$l->g(66));
    $queryDetails = "SELECT ";
    foreach ($list_fields as $lbl => $value) {
        $queryDetails .= $value . ",";
    }
    $queryDetails = substr($queryDetails, 0, -1) . " FROM " . $table . " WHERE (hardware_id={$systemid})";
    ajaxtab_entete_fixe($list_fields, $default_fields, $tab_options, $list_col_cant_del);
    echo close_form();
    if ($ajax) {
        ob_end_clean();
        tab_req($list_fields, $default_fields, $list_col_cant_del, $queryDetails, $tab_options);
        ob_start();
    }
}
开发者ID:stweil,项目名称:OCSInventory-ocsreports,代码行数:38,代码来源:fonction.php

示例8: show_profile_create_form

function show_profile_create_form()
{
    global $l;
    ?>
	
	<div class="form-frame form-frame-create-profile">
		<h3><?php 
    echo $l->g(1399);
    ?>
</h3>
		
		<?php 
    $field_options = array('field_class' => 'big-label');
    echo open_form('create-profile', '#');
    show_form_field(array(), array(), 'input', 'name', $l->g(1396), $field_options);
    show_form_field(array(), array(), 'input', 'label', $l->g(1397), $field_options);
    show_form_field(array(), array(), 'select', 'duplicate_profile', $l->g(1398), array_merge($field_options, array('options' => get_profile_labels())));
    ?>
		
		<div class="form-buttons">
			<input type="submit" value="<?php 
    echo $l->g(1363);
    ?>
"/>
			<input type="reset" value="<?php 
    echo $l->g(1364);
    ?>
"/>
		</div>
		
		<?php 
    echo close_form();
    ?>
	</div>
	
	<?php 
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:37,代码来源:profile_create_form.php

示例9: base64_encode

 $escrow_array[$index]['preview_path'] = $path_to_preview;
 // Re-encode the $escrow_array.
 $cayman_escrow = base64_encode(serialize($escrow_array));
 // Update the record.
 $update = update_record($_POST['unique_ID'], $cayman_escrow);
 // Verify that the update occurred.
 if (!$update) {
     // We cannot write to the temporary data file. Note a fatal error.
     cpg_die(CRITICAL_ERROR, $lang_upload_php['not_writable'], __FILE__, __LINE__);
 }
 // Create upload form headers.
 pageheader($lang_upload_php['title']);
 // Open the form table.
 starttable("100%", $lang_upload_php['title'], 2);
 // Direct the request to this script.
 open_form($_SERVER['PHP_SELF']);
 // Create image tag and echo it to the output buffer.
 echo "<tr><td class=\"tableh2\"><img class=\"image\" src=\"" . $path_to_preview . "\"  /></td>";
 // Echo instructions.
 echo "<td class=\"tableh2\">{$lang_upload_php['picture']} - {$file_set[0]}<br /><br />{$lang_upload_php['place_instr_1']}<br /><br />";
 // If we have previously placed a picture, give a brief message about its success or failure.
 if (isset($file_placement)) {
     if ($file_placement == 'yes') {
         // The previous picture was placed successfully.
         echo "{$lang_upload_php['yes_place']}";
     } elseif ($file_placement == 'no') {
         // The previous image placement failed.
         echo "{$lang_upload_php['no_place']}";
     }
 }
 echo "</td></tr>";
开发者ID:alencarmo,项目名称:OCF,代码行数:31,代码来源:upload.php

示例10: while

    echo '</select> &nbsp;';
    $nday = 1;
    echo _DAY . ': <select name="day">';
    while ($nday <= 31) {
        echo '<option value="' . $nday . '">' . $nday . '</option>';
        $nday++;
    }
    echo '</select> &nbsp;' . _YEAR . ': <input type="text" name="year" size="5" maxlength="4" /><br /><br />';
    if ($MAIN_CFG['global']['multilingual']) {
        echo _LANGUAGE . ': ' . lang_selectbox($MAIN_CFG['global']['language'], 'language') . '<br /><br />';
    } else {
        echo '<input type="hidden" name="language" value="' . $MAIN_CFG['global']['language'] . '" />';
    }
    echo _EPHEMDESC . ':<br />
	<textarea name="content" cols="60" rows="10"></textarea><br /><br />
	<input type="submit" name="createEntry" value="' . _ADD . '" />' . close_form() . '<br />' . open_form(URL::admin(), false, _EPHEMMAINT);
    $nmonth = array(1 => _JANUARY, _FEBRUARY, _MARCH, _APRIL, _MAY, _JUNE, _JULY, _AUGUST, _SEPTEMBER, _OCTOBER, _NOVEMBER, _DECEMBER);
    echo _UMONTH . ': <select name="month">';
    while (list($nmonth_key, $nmonth_name) = each($nmonth)) {
        echo '<option value="' . $nmonth_key . '">' . $nmonth_name . '</option>';
    }
    echo '</select> &nbsp;';
    $nday = 1;
    echo _DAY . ': <select name="day">';
    while ($nday <= 31) {
        echo '<option value="' . $nday . '">' . $nday . '</option>';
        $nday++;
    }
    echo '</select> &nbsp;
	<input type="submit" name="transferEntry" value="' . _EDIT . '" />' . close_form();
    CloseTable();
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:history.php

示例11: elseif

    $row['parent_id'] = 0;
    $row['title'] = '';
    $row['comment'] = '';
    $row['content'] = '<b>nothing</b> yet';
    if (isset($_POST['wysiwyg']) || isset($_POST['preview'])) {
        $row['id'] = $_POST['page_id'];
        $row['parent_id'] = $_POST['parent_id'];
        $row['title'] = $_POST['title'];
        $row['comment'] = $_POST['comment'];
        if (isset($_POST['content'])) {
            $row['content'] = $_POST['content'];
        }
    } elseif (isset($_GET['id'])) {
        $page = $db->sql_ufetchrow("SELECT * FROM " . $module_prefix . "_pages WHERE id=" . intval($_GET['id']), SQL_ASSOC);
        if (!empty($page['id'])) {
            $row = $page;
            $row['content'] = $page['body'];
            unset($row['body']);
        }
        unset($page);
    }
    $wysiwyg = new Wysiwyg('wiki_content', 'content', '100%', '400px', $row['content']);
    $wysiwyg->setHeader();
    require_once 'header.php';
    if (isset($_POST['preview'])) {
        $cpgtpl->assign_block_vars('preview', array('S_TITLE' => $row['title'], 'S_COMMENT' => $row['comment'], 'S_BODY' => $row['content']));
    }
    $cpgtpl->assign_vars(array('G_STARTFORM' => open_form(URL::index('&amp;file=manage'), 'wiki_content', "Manage {$module_name} Content") . '<input type="hidden" name="page_id" value="' . $row['id'] . '" />', 'G_ENDFORM' => close_form(), 'S_WYSSEL' => $wysiwyg->getSelect(), 'S_TITLE' => 'Title: <input type="text" name="title" value="' . htmlspecialchars($row['title']) . '" style="width: 50%" />', 'S_COMMENT' => 'Comment: <input type="text" name="comment" value="' . htmlspecialchars($row['comment']) . '" style="width: 50%" />', 'S_PARENT' => 'Parent page: ' . wiki_create_select($row['parent_id']), 'S_WYSIWYG' => $wysiwyg->getHTML(), 'S_PREVIEW' => '<input type="submit" name="preview" value="Preview" />', 'S_SUBMIT' => isset($_POST['preview']) ? '<input type="submit" name="add_wiki" value="Submit" />' : ''));
    $cpgtpl->set_filenames(array('body' => 'wiki/manage.html'));
    $cpgtpl->display('body');
}
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:manage.php

示例12: tab_modif_values

function tab_modif_values($field_labels, $fields, $hidden_fields, $options = array())
{
    global $l;
    $options = array_merge(array('title' => null, 'comment' => null, 'button_name' => 'modif', 'show_button' => true, 'form_name' => 'CHANGE', 'top_action' => null, 'show_frame' => true), $options);
    if ($options['form_name'] != 'NO_FORM') {
        echo open_form($options['form_name']);
    }
    if ($options['show_frame']) {
        echo '<div class="form-frame form-frame-' . $options['form_name'] . '">';
    }
    if ($options['top_action']) {
        echo "<table align='right' border='0'><tr><td colspan=10 align='right'>" . $options['top_action'] . "</td></tr></table>";
    }
    if ($options['title']) {
        echo '<h3>' . $options['title'] . '</h3>';
    }
    if (is_array($field_labels)) {
        foreach ($field_labels as $key => $label) {
            $field = $fields[$key];
            echo '<div class="field field-' . $field['INPUT_NAME'] . '">';
            echo '<label>' . $label . '</label>';
            if ($field['COMMENT_BEFORE']) {
                echo '<span class="comment_before">' . $field['COMMENT_BEFORE'] . '</span>';
            }
            echo show_modif($field['DEFAULT_VALUE'], $field['INPUT_NAME'], $field['INPUT_TYPE'], $field['RELOAD'], $field['CONFIG']);
            if ($field['COMMENT_AFTER']) {
                echo '<span class="comment_after">' . $field['COMMENT_AFTER'] . '</span>';
            }
            echo '</div>';
        }
    } else {
        echo $field_labels;
    }
    if ($options['comment']) {
        echo '<div class="form-field"><i>' . $options['comment'] . '</i></div>';
    }
    if ($options['show_button'] === 'BUTTON') {
        echo '<div class="form-buttons">';
        echo '<input type="submit" name="Valid_' . $options['button_name'] . '" value="' . $l->g(13) . '"/>';
        echo '</div>';
    } else {
        if ($options['show_button']) {
            echo '<div class="form-buttons">';
            echo '<input type="submit" name="Valid_' . $options['button_name'] . '" value="' . $l->g(1363) . '"/>';
            echo '<input type="submit" name="Reset_' . $options['button_name'] . '" value="' . $l->g(1364) . '"/>';
            echo '</div>';
        }
    }
    if ($options['show_frame']) {
        echo "</div>";
    }
    if ($hidden_fields) {
        foreach ($hidden_fields as $key => $value) {
            echo "<input type='hidden' name='" . $key . "' id='" . $key . "' value='" . htmlspecialchars($value, ENT_QUOTES) . "'>";
        }
    }
    if ($options['form_name'] != 'NO_FORM') {
        echo close_form();
    }
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:60,代码来源:function_table_html.php

示例13: tab_modif_values

function tab_modif_values($tab_name, $tab_typ_champ, $tab_hidden, $title = "", $comment = "", $name_button = "modif", $showbutton = true, $form_name = 'CHANGE', $showbutton_action = '')
{
    global $l, $protectedPost, $css;
    if (!isset($css)) {
        $css = "mvt_bordure";
    }
    if ($form_name != 'NO_FORM') {
        echo open_form($form_name);
    }
    echo '<div class="' . $css . '" >';
    if ($showbutton_action != '') {
        echo "<table align='right' border='0'><tr><td colspan=10 align='right'>" . $showbutton_action . "</td></tr></table>";
    }
    echo "<table align='center' border='0' cellspacing=20 >";
    echo "<tr><td colspan=10 align='center'><font color=red><b><i>" . $title . "</i></b></font></td></tr>";
    if (is_array($tab_name)) {
        foreach ($tab_name as $key => $values) {
            //print_r($tab_typ_champ[$key]['DEFAULT_VALUE']);
            echo "<tr><td>" . $values . "</td><td>" . $tab_typ_champ[$key]['COMMENT_BEFORE'] . show_modif($tab_typ_champ[$key]['DEFAULT_VALUE'], $tab_typ_champ[$key]['INPUT_NAME'], $tab_typ_champ[$key]['INPUT_TYPE'], $tab_typ_champ[$key]['RELOAD'], $tab_typ_champ[$key]['CONFIG']) . $tab_typ_champ[$key]['COMMENT_BEHING'] . "</td></tr>";
        }
    } else {
        echo $tab_name;
    }
    echo "<tr ><td colspan=10 align='center'><i>" . $comment . "</i></td></tr>";
    if ($showbutton and $showbutton !== 'BUTTON') {
        echo "<tr><td><input title='" . $l->g(625) . "'  type='image'  src='image/success.png' name='Valid_" . $name_button . "'>";
        echo "<input title='" . $l->g(626) . "'  type='image'  src='image/error.png' name='Reset_" . $name_button . "'></td></tr>";
    } elseif ($showbutton === 'BUTTON') {
        echo "<tr><td colspan=2 align='center'><input title='" . $l->g(625) . "'  type='submit'  name='Valid_" . $name_button . "' value='" . $l->g(13) . "'></td></tr>";
    }
    echo "</table>";
    echo "</div>";
    if ($tab_hidden != "") {
        foreach ($tab_hidden as $key => $value) {
            echo "<input type='hidden' name='" . $key . "' id='" . $key . "' value='" . htmlspecialchars($value, ENT_QUOTES) . "'>";
        }
    }
    if ($form_name != 'NO_FORM') {
        echo close_form();
    }
}
开发者ID:inkoss,项目名称:karoshi-server,代码行数:41,代码来源:function_table_html.php

示例14: CloseTable

            echo '<div style="text-align:center;" class="gen"><b>' . _NEWSUBPREVIEW . '</b></div><br />
		<div style="text-align:center;">' . _CHECKSTORY . '</div><br />
		<table class="newsarticle" style="width:70%; margin:auto;"><tr><td>
		<img src="images/topics/' . $topicimage . '" style="border:0; float:right;" alt="' . (isset($topictext) ? $topictext : '') . '" title="' . (isset($topictext) ? $topictext : '') . '" />
		<span class="gen"><b>' . $subject . '</b></span><br /><br />
		<span style="font-size:10px;">' . $f_story;
            if ($f_storyext != '') {
                echo '<br /><br />' . $f_storyext;
            }
            echo '</span></tr></td></table>' . ($warning != '' ? '<br />' . $warning : '');
        } else {
            echo '<div style="text-align:center;" class="genmed">' . _SUBMITADVICE . '</div>';
        }
        CloseTable();
        OpenTable();
        echo open_form(URL::index('&amp;file=submit'), 'submitnews', _Submit_NewsLANG) . '
	<label class="ulog" for="subject">' . _SUBTITLE . '</label>
	  <input type="text" name="subject" id="subject" size="65" maxlength="80" value="' . $subject . '" /><br /><br />
	<label class="ulog" for="topic">' . _TOPIC . '</label>
	  <select name="topic" id="topic">';
        $result = $db->sql_query('SELECT topicid, topictext FROM ' . $prefix . '_topics ORDER BY topictext');
        echo '<option value="">' . _SELECTTOPIC . "</option>\n";
        while ($row = $db->sql_fetchrow($result)) {
            $sel = $row['topicid'] == $topic ? 'selected="selected" ' : '';
            echo "<option {$sel} value=\"{$row['topicid']}\">{$row['topictext']}</option>\n";
        }
        echo '</select><br /><br />';
        if ($MAIN_CFG['global']['multilingual']) {
            echo '
		<label class="ulog" for="alanguage">' . _LANGUAGE . '</label>
		  ' . lang_selectbox($alanguage) . '<br /><br />';
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:submit.php

示例15: implode

                        echo implode(', ', $radmin);
                    }
                    echo '</td><td>';
                    if (can_admin() || $row['aid'] == is_admin()) {
                        echo '<a href="' . URL::admin('&amp;modify=' . $row['admin_id']) . '">' . _MODIFYINFO . '</a>';
                    }
                    if (can_admin() && $row['aid'] != is_admin()) {
                        echo ' / <a href="' . URL::admin('&amp;del_aid=' . $row['admin_id']) . '">' . _DELAUTHOR . '</a>';
                    }
                    echo '</td></tr>';
                }
                echo '</table>';
                CloseTable();
                if (can_admin()) {
                    OpenTable();
                    echo open_form(URL::admin('admins&amp;mode=add'), false, _ADDAUTHOR) . '
		<label class="ulog" for="add_aid">' . _NICKNAME . '</label>
		<input type="text" name="add_aid" id="add_aid" size="31" maxlength="30" /> <font class="tiny">' . _REQUIRED . '</font><br />
		<label class="ulog" for="add_email">' . _EMAIL . '</label>
		<input type="text" name="add_email" id="add_email" size="31" maxlength="60" /> <font class="tiny">' . _REQUIRED . '</font><br />
		<label class="ulog" for="radmin[]">' . _PERMISSIONS . '</label>
		<select name="radmin[]" id="radmin[]" size="10" multiple="multiple">';
                    for ($i = 0; $i < count($adminops); $i++) {
                        echo '<option value="' . $adminops[$i] . '">' . $adminops[$i] . '</option>';
                    }
                    echo '</select><br />
		<label class="ulog" for="radminsuper">' . _SUPERUSER . '</label>
		<input type="checkbox" name="radminsuper" id="radminsuper" value="1" title="' . _SUPERWARNING . '" /><br />
		<label class="ulog" for="add_pwd">' . _PASSWORD . '</label>
		<input type="password" name="add_pwd" id="add_pwd" size="20" maxlength="40" /> <font class="tiny">' . _REQUIRED . '</font><br /><br />
		<input type="submit" value="' . _ADDAUTHOR2 . '" />' . close_form();
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:admins.php


注:本文中的open_form函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。