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


PHP close_form函数代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: print_perso


//.........这里部分代码省略.........
            if ($optPerso["IPDISCOVER"]["IVALUE"] == 2) {
                echo $td3 . $l->g(491) . " " . $optPerso["IPDISCOVER"]["TVALUE"] . "</td>";
            } else {
                if ($optPerso["IPDISCOVER"]["IVALUE"] == 1) {
                    echo $td3 . $l->g(492) . " " . $optPerso["IPDISCOVER"]["TVALUE"] . "</td>";
                }
            }
        }
    } else {
        echo $td3 . $l->g(493) . "</td>";
    }
    if ($_SESSION['OCS']['CONFIGURATION']['CONFIG'] == "YES") {
        echo "<td align=center rowspan=8><a href=# Onclick=window.open(\"index.php?" . PAG_INDEX . "=" . $pages_refs['ms_custom_param'] . "&head=1&idchecked=" . $systemid . "&origine=group\",\"rollo\",\"location=0,status=0,scrollbars=1,menubar=0,resizable=0,width=800,height=500\");>\n\t\t<img src='image/modif_a.png' title='" . $l->g(285) . "'></a></td></tr>";
    }
    $ii++;
    $td3 = $ii % 2 == 0 ? $td2 : $td4;
    $field_name = array('DOWNLOAD', 'DOWNLOAD_CYCLE_LATENCY', 'DOWNLOAD_PERIOD_LENGTH', 'DOWNLOAD_FRAG_LATENCY', 'DOWNLOAD_PERIOD_LATENCY', 'DOWNLOAD_TIMEOUT', 'PROLOG_FREQ', 'SNMP');
    $optdefault = look_config_default_values($field_name);
    //FREQUENCY
    echo "<tr><td bgcolor='white' align='center' valign='center'>" . (isset($optPerso["FREQUENCY"]) ? "<img width='15px' src='image/red.png'>" : "&nbsp;") . "</td>";
    echo $td3 . $l->g(494) . "</td>";
    if (isset($optPerso["FREQUENCY"])) {
        if ($optPerso["FREQUENCY"]["IVALUE"] == 0) {
            echo $td3 . $l->g(485) . "</td>";
        } else {
            if ($optPerso["FREQUENCY"]["IVALUE"] == -1) {
                echo $td3 . $l->g(486) . "</td>";
            } else {
                echo $td3 . $l->g(495) . " " . $optPerso["FREQUENCY"]["IVALUE"] . " " . $l->g(496) . "</td>";
            }
        }
    } else {
        echo $td3 . $l->g(497) . "</td>";
    }
    echo "</tr>";
    //DOWNLOAD_SWITCH
    echo "<tr><td bgcolor='white' align='center' valign='center'>" . (isset($optPerso["DOWNLOAD_SWITCH"]) ? "<img width='15px' src='image/red.png'>" : "&nbsp;") . "</td>";
    echo $td3 . $l->g(417) . " <font color=green size=1><i>DOWNLOAD</i></font> </td>";
    if (isset($optPerso["DOWNLOAD_SWITCH"])) {
        if ($optPerso["DOWNLOAD_SWITCH"]["IVALUE"] == 0) {
            echo $td3 . $l->g(733) . "</td>";
        } else {
            if ($optPerso["DOWNLOAD_SWITCH"]["IVALUE"] == 1) {
                echo $td3 . $l->g(205) . "</td>";
            } else {
                echo $td3 . "</td>";
            }
        }
    } else {
        echo $td3 . $l->g(488) . "(";
        if ($optdefault['ivalue']["DOWNLOAD"] == 1) {
            echo $l->g(205);
        } else {
            echo $l->g(733);
        }
        echo ")</td>";
    }
    echo "</tr>";
    //DOWNLOAD_CYCLE_LATENCY
    optperso("DOWNLOAD_CYCLE_LATENCY", $l->g(720) . " <font color=green size=1><i>DOWNLOAD_CYCLE_LATENCY</i></font>", $optPerso, 1, $optdefault['ivalue']["DOWNLOAD_CYCLE_LATENCY"], $l->g(511));
    //DOWNLOAD_FRAG_LATENCY
    optperso("DOWNLOAD_FRAG_LATENCY", $l->g(721) . " <font color=green size=1><i>DOWNLOAD_FRAG_LATENCY</i></font>", $optPerso, 1, $optdefault['ivalue']["DOWNLOAD_FRAG_LATENCY"], $l->g(511));
    //DOWNLOAD_PERIOD_LATENCY
    optperso("DOWNLOAD_PERIOD_LATENCY", $l->g(722) . " <font color=green size=1><i>DOWNLOAD_PERIOD_LATENCY</i></font>", $optPerso, 1, $optdefault['ivalue']["DOWNLOAD_PERIOD_LATENCY"], $l->g(511));
    //DOWNLOAD_PERIOD_LENGTH
    optperso("DOWNLOAD_PERIOD_LENGTH", $l->g(723) . " <font color=green size=1><i>DOWNLOAD_PERIOD_LENGTH</i></font>", $optPerso, 1, $optdefault['ivalue']["DOWNLOAD_PERIOD_LENGTH"]);
    //PROLOG_FREQ
    optperso("PROLOG_FREQ", $l->g(724) . " <font color=green size=1><i>PROLOG_FREQ</i></font>", $optPerso, 1, $optdefault['ivalue']["PROLOG_FREQ"], $l->g(730));
    //SNMP_SWITCH
    echo "<tr><td bgcolor='white' align='center' valign='center'>" . (isset($optPerso["SNMP_SWITCH"]) ? "<img width='15px' src='image/red.png'>" : "&nbsp;") . "</td>";
    echo $td3 . $l->g(1197) . " <font color=green size=1><i>SNMP_SWITCH</i></font></td>";
    if (isset($optPerso["SNMP_SWITCH"])) {
        if ($optPerso["SNMP_SWITCH"]["IVALUE"] == 0) {
            echo $td3 . $l->g(733) . "</td>";
        } else {
            if ($optPerso["SNMP_SWITCH"]["IVALUE"] == 1) {
                echo $td3 . $l->g(205) . "</td>";
            } else {
                echo $td3 . "</td>";
            }
        }
    } else {
        echo $td3 . $l->g(488) . "(";
        if ($optdefault['ivalue']["SNMP"] == 1) {
            echo $l->g(205);
        } else {
            echo $l->g(733);
        }
        echo ")</td>";
    }
    echo "</tr>";
    //TELEDEPLOY
    require_once 'require/function_machine.php';
    show_packages($systemid, "ms_group_show");
    if ($_SESSION['OCS']['CONFIGURATION']['TELEDIFF'] == "YES") {
        echo "<tr>\n\t\t<td colspan='10' align='right'>\n\t\t<a href=# Onclick=window.open(\"index.php?" . PAG_INDEX . "=" . $pages_refs['ms_custom_pack'] . "&head=1&idchecked=" . $systemid . "&origine=group\",\"rollo\",\"location=0,status=0,scrollbars=1,menubar=0,resizable=0,width=800,height=500\");>" . $l->g(501) . "\n\t\t</a>\n\t\t</td></tr>";
    }
    echo "</table><br>";
    echo close_form();
}
开发者ID:inkoss,项目名称:karoshi-server,代码行数:101,代码来源:ms_group_show.php

示例8: GraphicAdmin

            GraphicAdmin('_AMENU6');
            OpenTable();
            echo '<span class="genmed"><strong>' . _HEADLINESADMIN . '</strong></span><br /><br />
	<table border="0" width="100%">
	 <tr bgcolor="' . $bgcolor2 . '">
	   <td><strong>' . _SITENAME . '</strong></td>
	   <td><strong>' . _URL . '</strong></td>
	   <td><strong>' . _FUNCTIONS . '</strong></td>
	 </tr>';
            $result = $db->sql_uquery("SELECT hid, sitename, headlinesurl FROM " . $prefix . "_headlines ORDER BY hid");
            $bgcolor = $bgcolor3;
            while (list($hid, $sitename, $headlinesurl) = $db->sql_fetchrow($result)) {
                $bgcolor = $bgcolor == '' ? ' bgcolor="' . $bgcolor3 . '"' : '';
                echo '
	 <tr' . $bgcolor . '">
	   <td>' . $sitename . '</td>
	   <td><a href="' . $headlinesurl . '" target="new">' . $headlinesurl . '</a></td>
	   <td><a href="' . URL::admin('&amp;edit=' . $hid) . '">' . _EDIT . '</a> / <a href="' . URL::admin('&amp;del=' . $hid) . '">' . _DELETE . '</a></td>
	 </tr>';
            }
            echo '</table><br /><br />
	 ' . open_form(URL::admin(), false, _ADDHEADLINE) . '
	 <label class="ulog" for="xsitename">' . _SITENAME . '</label>
	  <input type="text" name="xsitename" size="50" maxlength="30" /><br />
	 <label class="ulog" for="headlinesurl">' . _RSSFILE . '</label>
	  <input type="text" name="headlinesurl" size="50" maxlength="200" /><br /><br />
	 <input type="submit" name="addHeadline" value="' . _ADDHEADLINE . '" />' . close_form();
            CloseTable();
        }
    }
}
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:headlines.php

示例9: login

function login()
{
    global $MAIN_CFG, $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 ($MAIN_CFG['global']['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

示例10: array

            }
            if (!empty($CONFIG['user_field2_name'])) {
                $form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
            }
            if (!empty($CONFIG['user_field3_name'])) {
                $form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
            }
            if (!empty($CONFIG['user_field4_name'])) {
                $form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
            }
        }
        $form_array[] = array('event', 'picture', 4);
        // Create the upload form
        create_form_simple($form_array);
        // Close the form with an submit button
        close_form($lang_upload_php['title'], 1, 'ok');
        list($timestamp, $form_token) = getFormToken();
        echo <<<EOT
        <input type="hidden" name="form_token" value="{$form_token}" />
        <input type="hidden" name="timestamp" value="{$timestamp}" />
EOT;
        // Close the table.
        endtable();
        echo <<<EOT
    </form>
EOT;
    } elseif ($upload_form == 'swfupload') {
        // Show form instructions
        form_instructions();
        // Create the upload form
        create_form_swfupload();
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:31,代码来源:upload2.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: array

    }
    if (!empty($CONFIG['user_field2_name'])) {
        $form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
    }
    if (!empty($CONFIG['user_field3_name'])) {
        $form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
    }
    if (!empty($CONFIG['user_field4_name'])) {
        $form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
    }
    // Check for movies and audio, and create width and height boxes if true.
    if (is_movie($file_set[1]) or is_audio($file_set[1])) {
        //Add width and height boxes to the form.
        $form_array[] = array($lang_admin_php['th_wd'], 'movie_wd', 0, 4, 1);
        $form_array[] = array($lang_admin_php['th_ht'], 'movie_ht', 0, 4, 1);
    }
    // Create the form and echo more instructions.
    create_form($form_array);
    // More instructions.
    if (count($escrow_array) > '1') {
        form_statement($lang_upload_php['place_instr_2']);
    }
    // Make button say 'Continue.'
    close_form($lang_continue);
    // Close the table, create footers, and flush the output buffer.
    endtable();
    pagefooter();
    ob_end_flush();
    // Exit the script.
    exit;
}
开发者ID:alencarmo,项目名称:OCF,代码行数:31,代码来源:upload.php

示例13: while

	<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 />';
        }
        echo '
	<label class="ulog">' . _EDITOR_STYLE . '</label>
		' . $story_editor->getSelect() . '<br /><br />
	' . _STORYTEXT . '<br />
		' . $story_editor->getHTML() . '<br />
	' . _EXTENDEDTEXT . '<br />
		' . $storyext_editor->getHTML() . '<br /><br />
	<div style="text-align:center;"><input type="submit" value="' . _PREVIEW . '" />';
        if ($story != '') {
            echo '&nbsp;&nbsp;<input type="submit" name="submit" value="' . _OK . '" />';
        }
        echo '</div>' . close_form();
        CloseTable();
    }
}
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:submit.php

示例14: msg

function msg($txt, $css, $closeid = false)
{
    global $protectedPost;
    if (isset($protectedPost['close_alert']) and $protectedPost['close_alert'] != '') {
        $_SESSION['OCS']['CLOSE_ALERT'][$protectedPost['close_alert']] = 1;
    }
    if (!$_SESSION['OCS']['CLOSE_ALERT'][$closeid]) {
        echo "<center><div id='my-alert-" . $closeid . "' class='alert alert-" . $css . " fade in' role='alert'>";
        if ($closeid != false) {
            echo "<button type='button' class='close' data-dismiss='alert'><span aria-hidden='true'>×</span><span class='sr-only'>Close</span></button>";
        }
        echo $txt . "</div></center>";
        if ($closeid != false) {
            echo "<script>\$('#my-alert-" . $closeid . "').on('closed.bs.alert', function () {\n\t\t\t pag('" . $closeid . "','close_alert','close_msg');\n\t\t\t})</script>";
            echo open_form('close_msg');
            echo "<input type='hidden' name='close_alert' id='close_alert' value=''>";
            echo close_form();
        }
        if ($css == 'error') {
            addLog('MSG_' . $css, $txt);
        }
    }
}
开发者ID:remicollet,项目名称:OCSInventory-ocsreports,代码行数:23,代码来源:function_commun.php

示例15: CloseTable

                                        }
                                    }
                                    echo '</table></form>';
                                    CloseTable();
                                    if (is_writeable('modules')) {
                                        if ($MAIN_CFG['global']['admin_help']) {
                                            echo '
<script language="JavaScript" type="text/javascript">
<!--' . "\nmaketip('cvsmodule','" . _EXAMPLE . "','will be created as \"modules/{TITLE}/\"');\nmaketip('server','" . _EXAMPLE . "','dragonflycms.org');\nmaketip('repository','" . _EXAMPLE . "','/CVS');\nmaketip('module','" . _EXAMPLE . "','modules/Shoutblock/modules/Shoutblock');\n" . '// -->
</script>';
                                        }
                                        OpenTable();
                                        echo open_form(URL::admin('modules'), '', _LOADNEWCVS) . '
	<label' . show_tooltip('cvsmodule') . ' class="ulog" for="cvsmodule">' . _TITLE . '</label><input type="text" name="cvsmodule" id="cvsmodule" size="30" /><br />
	<label' . show_tooltip('server') . ' class="ulog" for="server">Server</label><input type="text" name="server" id="server" size="30" /><br />
	<label' . show_tooltip('repository') . ' class="ulog" for="repository">Server Repository</label><input type="text" name="folder" id="folder" size="30" /><br />
	<label' . show_tooltip('module') . ' class="ulog" for="module">Module/Path</label><input type="text" name="module" id="module" size="30" /><br />
	<label class="ulog" for="cvsusername">User name</label><input type="text" name="cvsusername" id="cvsusername" size="30" value="anonymous" /><br />
	<label class="ulog" for="cvspassword">Password</label><input type="text" name="cvspassword" id="cvspassword" size="30" /><br />
	<input type="submit" value="Checkout module" />' . close_form();
                                        CloseTable();
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
开发者ID:cbsistem,项目名称:nexos,代码行数:31,代码来源:modules.php


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