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


PHP bottom函数代码示例

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


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

示例1: form_saisie

 public static function form_saisie($user, $date_debut, $date_fin)
 {
     $PHP_SELF = $_SERVER['PHP_SELF'];
     $session = session_id();
     $date_today = date("d-m-Y");
     if ($date_debut == "") {
         $date_debut = $date_today;
     }
     if ($date_fin == "") {
         $date_fin = $date_today;
     }
     $huser = hash_user($user);
     header_popup();
     echo "<center>\n";
     echo "<h1>" . _('export_cal_titre') . "</h1>\n";
     echo _('button_export_2') . "<br>";
     echo " <a href='" . ROOT_PATH . "export/ics_export.php?usr=" . $huser . "'>" . $_SESSION['config']['URL_ACCUEIL_CONGES'] . "/export/ics_export.php?usr=" . $huser . "<a>";
     bottom();
 }
开发者ID:TexGG,项目名称:Libertempo,代码行数:19,代码来源:Fonctions.php

示例2: propose_config

function propose_config()
{
    $session = session_id();
    header_popup('PHP_CONGES : Installation');
    // affichage du titre
    echo "<center>\n";
    echo "<br><H1><img src=\"" . TEMPLATE_PATH . "img/tux_config_32x32.png\" width=\"32\" height=\"32\" border=\"0\" title=\"" . _('install_install_phpconges') . "\" alt=\"" . _('install_install_phpconges') . "\"> " . _('install_index_titre') . "</H1>\n";
    echo "<br><br>\n";
    echo "<h2>" . _('install_configuration') . " :</h2>\n";
    echo "<h3>\n";
    echo "<table border=\"0\">\n";
    echo "<tr><td>-> <a href=\"configure.php?session={$session}\">" . _('install_config_appli') . "</a></td></tr>\n";
    echo "<tr><td>-> <a href=\"config_type_absence.php?session={$session}\">" . _('install_config_types_abs') . "</a></td></tr>\n";
    echo "<tr><td>-> <a href=\"config_mail.php?session={$session}\">" . _('install_config_mail') . "</a></td></tr>\n";
    echo "<tr><td>-> <a href=\"javascript:void(0);\" onClick=\"javascript:OpenPopUp('test_mail.php?session={$session}','testmail',800,350);\">" . _('install_test_mail') . "</a></td></tr>\n";
    echo "<tr><td>-> <a href=\"config_logs.php?session={$session}\">" . _('config_logs') . "</a></td></tr>\n";
    echo "<tr><td>&nbsp;</td></tr>\n";
    echo "<tr><td>-> <a href=\"../\">" . _('install_acceder_appli') . "</a></td></tr>\n";
    echo "</table>\n";
    echo "</h3><br><br>\n";
    echo '<a href="' . ROOT_PATH . 'deconnexion.php?session=' . $session . '" target="_top">' . '<img src="' . TEMPLATE_PATH . 'img/exit.png" width="22" height="22" border="0" title="' . _('button_deconnect') . '" alt="' . _('button_deconnect') . '">' . _('button_deconnect') . '</a>';
    bottom();
}
开发者ID:kakargias,项目名称:php-conges,代码行数:23,代码来源:index.php

示例3: form_saisie

function form_saisie($action, $new_mois, $new_year)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    header_popup();
    if ($action == "imprim") {
        ouvre_calendrier($new_mois, $new_year);
    }
    echo "<center>\n";
    echo "<h3>" . _('imprim_calendrier_titre') . "</h3>\n";
    echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
    echo "<table>\n";
    // choix du mois et annee
    echo "<tr>\n";
    echo "<td align=\"center\">\n";
    echo "<b>" . _('divers_mois') . " : </b>\n";
    $mois_default = date("m");
    affiche_selection_new_mois($mois_default);
    // la variable est $new_mois
    echo "</td>\n";
    echo "<td align=\"center\">\n";
    echo "<b>" . _('divers_annee') . " : </b>\n";
    $year_default = date("Y");
    affiche_selection_new_year($year_default - 5, $year_default + 5, $year_default);
    // la variable est $new_year
    echo "</td>\n";
    echo "</tr>\n";
    // ligne vide
    echo "<tr>\n";
    echo "<td colspan=\"2\">&nbsp;\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td colspan=\"2\" align=\"center\">\n";
    echo "\t<input type=\"hidden\" name=\"action\" value=\"imprim\">\n";
    echo "\t<input type=\"submit\" value=\"" . _('form_submit') . "\">\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td colspan=\"2\" align=\"center\">\n";
    echo "\t<input type=\"button\" value=\"" . _('form_close_window') . "\" onClick=\"javascript:window.close();\">\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "</form>\n";
    bottom();
}
开发者ID:TexGG,项目名称:Libertempo,代码行数:47,代码来源:imprim_calendrier.php

示例4: list

<?php

require '../utility/common.php';
require '../utility/htmlcommon.php';
list($user_id, $tree, $name) = logged_in();
session_start();
$_SESSION['first_load'] = true;
session_commit();
top(true, 'Account Management', $name);
?>

		<div class="listsDiv">
			<ul id = "manageaccount">
				<li><a href="passwordchange.php" class="">Change Password</a></li>
				<li><a href="usernamechange.php" class="">Change Username</a></li>
				<li><a href="emailchange.php" class="">Change Email</a></li>
				<li>Change your life</li>
			</ul>
		</div>

<?php 
bottom(array('account.js'));
开发者ID:dulinriley,项目名称:classmatches,代码行数:22,代码来源:account.php

示例5: confirm_saisie

function confirm_saisie($tab_checkbox_j_chome, $DEBUG = FALSE)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    header_popup();
    echo "<h1>" . _('admin_jours_chomes_titre') . "</h1>\n";
    echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
    echo "<table>\n";
    echo "<tr>\n";
    echo "<td align=\"center\">\n";
    foreach ($tab_checkbox_j_chome as $key => $value) {
        $date_affiche = eng_date_to_fr($key);
        echo "{$date_affiche}<br>\n";
        echo "<input type=\"hidden\" name=\"tab_checkbox_j_chome[{$key}]\" value=\"{$value}\">\n";
    }
    echo "<input type=\"hidden\" name=\"choix_action\" value=\"commit\">\n";
    echo "<input type=\"submit\" value=\"" . _('admin_jours_chomes_confirm') . "\">\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td align=\"center\">\n";
    echo "\t<input type=\"button\" value=\"" . _('form_cancel') . "\" onClick=\"javascript:window.close();\">\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "</form>\n";
    bottom();
}
开发者ID:coz787,项目名称:Libertempo,代码行数:28,代码来源:admin_jours_chomes.php

示例6: install

function install($lang, $DEBUG = FALSE)
{
    // soit, c'est une install complète , soit c'est une mise à jour d'une version non déterminée
    header_popup('PHP_CONGES : Installation');
    // affichage du titre
    echo "<center>\n";
    echo "<br><H1><img src=\"" . TEMPLATE_PATH . "img/tux_config_32x32.png\" width=\"32\" height=\"32\" border=\"0\" title=\"" . _('install_install_phpconges') . "\" alt=\"" . _('install_install_phpconges') . "\"> " . _('install_index_titre') . "</H1>\n";
    echo "<br><br>\n";
    echo "<table border=\"0\">\n";
    echo "<tr align=\"center\">\n";
    echo "<td colspan=\"3\"><h2>" . _('install_no_prev_version_found') . ".<br>" . _('install_indiquez') . " ...</h2><br><br></td>\n";
    echo "</tr>\n";
    echo "<tr align=\"center\">\n";
    echo "<td valign=top>\n";
    echo "\n";
    echo "<h3>... " . _('install_nouvelle_install') . "</h3>\n";
    echo "<br>\n";
    // Formulaire : lance install.php
    echo "<form action=\"install.php\" method=\"POST\">\n";
    echo "<input type=\"hidden\" name=\"lang\" value=\"{$lang}\">\n";
    echo "<input type=\"submit\" value=\"" . _('form_start') . "\">\n";
    echo "</form>\n";
    echo "</td>\n";
    echo "<td><img src=\"" . TEMPLATE_PATH . "img/shim.gif\" width=\"100\" height=\"10\" border=\"0\" vspace=\"0\" hspace=\"0\"></td>\n";
    echo "<td valign=top>\n";
    echo "<h3>... " . _('install_mise_a_jour') . "</h3><b>" . _('install_indiquez_pre_version') . " :</b><br><br>\n";
    // Formulaire : lance mise_a_jour.php
    echo "<form action=\"mise_a_jour.php\" method=\"POST\">\n";
    // affichage de la liste des versions ...
    echo "<select name=\"version\">\n";
    echo "<option value=\"0\">" . _('install_installed_version') . "</option>\n";
    echo "<option value=\"1.0\">v1.0.x</option>\n";
    echo "<option value=\"0.10\">v0.10.x</option>\n";
    echo "<option value=\"0.9\">v0.9.x</option>\n";
    echo "<option value=\"0.8\">v0.8.x</option>\n";
    echo "<option value=\"0.7\">v0.7.x</option>\n";
    echo "<option value=\"0.6\">v0.6.x</option>\n";
    echo "<option value=\"0.5\">v0.5.x</option>\n";
    echo "<option value=\"0.4\">v0.4</option>\n";
    echo "</select>\n";
    echo "<br>\n";
    echo "<input type=\"hidden\" name=\"lang\" value=\"{$lang}\">\n";
    echo "<input type=\"submit\" value=\"" . _('form_start') . "\">\n";
    echo "</form>\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    bottom();
}
开发者ID:HadoDokis,项目名称:Libertempo,代码行数:49,代码来源:index.php

示例7: function

			
			return false;
			
		}
		
		
	};
	
	window.onload = function() {
		rcon.send( "status&init", true );
		document.getElementById( "input" ).focus();
	};

</script>
<pre id="terminal">Requesting server status...
</pre>
<form onsubmit="rcon.send( this.command.value ); this.command.value = ''; return false;">
	<table border="0" style="width: 100%;">
		<tr>
			<td>
				<input type="text" id="input" style="background-color: lightgray; border: 1px black solid; width:100%;" name="command" >Type Command Here</input>
			</td>
			<td width="1px">
				<input type="submit" value="Send" style="border: 1px black solid; background-color: lightgray;margin-bottom:20px;cursor:pointer;cursor:hand"/>
			</td>
		</tr>
	</table>
</form>
<?php 
bottom($start);
开发者ID:Zipcore,项目名称:SSMS,代码行数:29,代码来源:rcon.php

示例8: foreach

?>
<div class="listsDiv">
	<ul id = "groupFunctions">
		<li><a href="groups.php">My Groups</a></li>
		<li><a href="search.php">Search and Add Groups</a></li>
		<li><a href="create.php">Create a New Group</a></li>
		<li><a href="groupmates.php">Find People in your Groups</a></li>
	</ul>
	<h2>Find People in your Groups</h2>
	<select name="group">
		<?php 
foreach ($groups as $group) {
    ?>
			<option value="<?php 
    echo htmlspecialchars($group['id']);
    ?>
"><?php 
    echo htmlspecialchars($group['name']);
    ?>
</option>
		<?php 
}
?>
	</select>
	<input type="submit" value="Find" id="find-group-mates" />
	<h2>Your Groupmates</h2>
	<div id="groupmates"></div>
</div>
<?php 
bottom(array('groupmates.js'));
开发者ID:dulinriley,项目名称:classmatches,代码行数:30,代码来源:groupmates.php

示例9: confirm_saisie

 public static function confirm_saisie($tab_checkbox_j_chome)
 {
     $PHP_SELF = $_SERVER['PHP_SELF'];
     $session = session_id();
     $return = '';
     header_popup();
     $return .= '<h1>' . _('admin_jours_chomes_titre') . '</h1>';
     $return .= '<form action="' . $PHP_SELF . '?session=' . $session . '&onglet=jours_chomes" method="POST">';
     $return .= '<table>';
     $return .= '<tr>';
     $return .= '<td align="center">';
     foreach ($tab_checkbox_j_chome as $key => $value) {
         $date_affiche = eng_date_to_fr($key);
         $return .= $date_affiche . '<br>';
         $return .= '<input type="hidden" name="tab_checkbox_j_chome[' . $key . ']" value="' . $value . '">';
     }
     $return .= '<input type="hidden" name="choix_action" value="commit">';
     $return .= '<input type="submit" value="' . _('admin_jours_chomes_confirm') . '">';
     $return .= '</td>';
     $return .= '</tr>';
     $return .= '<tr>';
     $return .= '<td align="center">';
     $return .= '<input type="button" value="' . _('form_cancel') . '" onClick="javascript:window.close();">';
     $return .= '</td>';
     $return .= '</tr>';
     $return .= '</table>';
     $return .= '</form>';
     bottom();
 }
开发者ID:TexGG,项目名称:Libertempo,代码行数:29,代码来源:Fonctions.php

示例10: connect

require '../utility/common.php';
require '../utility/htmlcommon.php';
$select_db = connect('select');
list($user_id, $tree, $name) = logged_in();
session_start();
$_SESSION['first_load'] = true;
session_commit();
top(true, 'Classmatches', $name);
homesidebar($user_id, $tree);
eventsidebar($select_db, $user_id);
?>
		<div id="middle">
			<div id="textBox">
				<textarea name="post" class="postBox" placeholder="Add new post..."></textarea>
				<button id="postsubmit" type="button" value="Submit"></button> 
				<div id="groupsDiv">
					<p> to see this post, users...</p>
					<input type="radio" name="andor" value="and" checked="checked">must be in <b>all</b> of the following groups<br>
					<input type="radio" name="andor" value="or">can be in <b>any</b> of the following groups</input>
					<div name="groupChoose" id="groupContainer">
						<input type="text" placeholder="enter groups" id="groupBox"></input>
					</div>
				</div>
			</div>
			<ul id="posts"></ul>
		</div>
		<div id="notification-list"></div>
<?php 
bottom(array('home.js'));
?>
	
开发者ID:dulinriley,项目名称:classmatches,代码行数:30,代码来源:home.php

示例11: session_saisie_user_password

function session_saisie_user_password($erreur, $session_username, $session_password)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $config_php_conges_version = $_SESSION['config']['php_conges_version'];
    $config_url_site_web_php_conges = $_SESSION['config']['url_site_web_php_conges'];
    //    $config_stylesheet_file         = $_SESSION['config']['stylesheet_file'];
    $return_url = getpost_variable('return_url', false);
    // verif si on est dans le repertoire install
    if (substr(dirname($_SERVER["SCRIPT_FILENAME"]), -6, 6) == "config") {
        // verif si on est dans le repertoire install
        $config_dir = TRUE;
    } else {
        $config_dir = FALSE;
    }
    $add = '<script language="JavaScript" type="text/javascript">
<!--
// Les cookies sont obligatoires
if (! navigator.cookieEnabled) {
    document.write("<font color=\'#FF0000\'><br><br><center>' . _('cookies_obligatoires') . '</center></font><br><br>");
}
//-->
</script>
<noscript>
        <font color="#FF0000"><br><br><center>' . _('javascript_obligatoires') . '</center></font><br><br>
</noscript>';
    header_login('', $add);
    include_once TEMPLATE_PATH . 'login_form.php';
    bottom();
    exit;
}
开发者ID:TexGG,项目名称:Libertempo,代码行数:30,代码来源:fonction.php

示例12: catch

		        }
			    catch(Exception $e) {
		            $profile = 'ERROR';
		        }
		preg_match_all($pattern, $message, $matches);
		$steamid2 = $matches[0][1];

		$statsinfo[3] = "right";
		if ($steamid != $steamid2 && $steamid2 != "") {
			$matchprofile = SteamId::convertSteamIdToCommunityId($steamid2);
			$statsinfo[2] = $steamid2;
			$matchurl = "<a href=http://steamcommunity.com/profiles/$matchprofile target=_blank>$steamid2></a>" . getstatsurl($statsinfo);
		}
		$message = str_replace($steamid2, $matchurl, $message);
		$statsinfo[2] = $steamid;
		echo "<tr class=\"elements\">
		<td width=\"200\" nowrap=\"nowrap\">$servername</td>
		<td width=\"200\" nowrap=\"nowrap\"><a href=\"http://steamcommunity.com/profiles/$profile\" title=\"$name\" target=_blank>$name" . getstatsurl($statsinfo) . "</a></td>
		<td width=\"120\" nowrap=\"nowrap\">$logtag</td>
		<td width=\"100%\">$message</td>
		<td width=\"120\" nowrap=\"nowrap\">$time</td>
		</tr>\n";
	}

	echo '</table><div style="clear:both;"></div></div>';

        mysql_close();
        bottom( $startTime );

?>
开发者ID:Zipcore,项目名称:SSMS,代码行数:30,代码来源:adminlogs.php

示例13: affichage

function affichage($user, $date_debut, $date_fin, $opt_debut, $opt_fin, $DEBUG = FALSE)
{
    if ($DEBUG) {
        echo "user = {$user}, date_debut = {$date_debut}, date_fin = {$date_fin}, opt_debut = {$opt_debut}, opt_fin = {$opt_fin}<br>\n";
    }
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    $comment = "&nbsp;";
    header_popup();
    echo "<h1>{$user}</h1>\n";
    echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
    echo "<table>\n";
    echo "<tr>\n";
    // calcul :
    // $nb_jours=compter($user, $date_debut, $date_fin, $opt_debut, $opt_fin, $comment, $DEBUG);
    $nb_jours = compter($user, "", $date_debut, $date_fin, $opt_debut, $opt_fin, $comment, $DEBUG);
    echo "<td align=\"center\"><h2>" . _('calcul_nb_jours_nb_jours') . " <b>{$nb_jours}</b></h2></td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td align=\"center\"><i><font color=\"red\">{$comment}<font/></i></td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td align=\"center\"><i>" . _('calcul_nb_jours_reportez') . " \"" . _('saisie_conges_nb_jours') . "\" " . _('calcul_nb_jours_form') . ".</i></td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td align=\"center\">&nbsp;</td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td align=\"center\">\n";
    echo "  <input type=\"button\" value=\"" . _('form_close_window') . "\" onClick=\"javascript:window.close();\">\n";
    echo "</td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "</form>\n";
    if ($_SESSION['config']['rempli_auto_champ_nb_jours_pris']) {
        if ($comment == "&nbsp;" && $DEBUG == FALSE) {
            echo "<script>envoi('{$nb_jours}'); window.close()</script>";
        } else {
            echo "<script>envoi('{$nb_jours}')</script>";
        }
    }
    bottom();
}
开发者ID:kakargias,项目名称:php-conges,代码行数:43,代码来源:calcul_nb_jours_pris.php

示例14: affichage


//.........这里部分代码省略.........
                echo "<option value=\"TRUE\"";
                if ($conf_valeur == "TRUE") {
                    echo "selected";
                }
                echo ">TRUE</option>";
                echo "<option value=\"FALSE\"";
                if ($conf_valeur == "FALSE") {
                    echo "selected";
                }
                echo ">FALSE</option>";
                echo "</select><br>";
            } elseif (substr($conf_type, 0, 4) == "enum") {
                echo "<b>{$conf_nom}</b>&nbsp;=&nbsp;<select name=\"tab_new_values[{$conf_nom}]\">";
                $options = explode("/", substr(strstr($conf_type, '='), 1));
                for ($i = 0; $i < count($options); $i++) {
                    echo "<option value=\"" . $options[$i] . "\"";
                    if ($conf_valeur == $options[$i]) {
                        echo "selected";
                    }
                    echo ">" . $options[$i] . "</option>";
                }
                echo "</select><br>";
            }
            echo "<br>";
        }
    }
    echo "</td></tr>\n";
    echo "<tr><td align=\"right\">\n";
    echo "<input type=\"submit\"  value=\"" . _('form_save_modif') . "\"><br>";
    echo "</td></tr>\n";
    /******************* GESTION DES PLUGINS V1.7 *************************/
    //rajout du formulaire de gestion des plugins : à partir de la version 1.7
    // - On détecte les plugins puis on propose de les installer
    // L'installation du plugin va lancer include/plugins/[nom_du_plugins]/plugin_install.php
    // plugin_install.php lance la création des tables supplémentaires;
    // normalement le format de nommage des tables est conges_plugin_[nom_du_plugin]. Exemple de table : conges_plugin_cet
    // il vaut mieux éviter de surcharger les tables existantes pour éviter les nombreux problèmes de compatibilité
    // lors d'un changement de version.
    // - Lorsqu'un plugin est installé, l'administrateur ou la personne autorisée pourra activer le plugin.
    // Le status qui s'affichera deviendra "activated"
    // Soit 4 statuts disponibles : not installed, installed, disable, activated
    // Correspondants à 4 fichiers dans le dossier du plugin : plugin_install.php, plugin_uninstall.php, plugin_active.php, plugin_inactive.php
    //Les statuts sont retrouvés par la table conges_plugins
    //Ensuite, les fichiers à inclure doivent être listés dans include/plugins/[nom_du_plugins]/allfilestoinclude.php
    // Ces fichiers à inclure contiennent le coeur de votre plugin.
    $my_plugins = scandir(PLUGINS_DIR);
    $plug_count = 0;
    echo "<table width=\"100%\">\n";
    echo "<tr><td>\n";
    echo "    <fieldset class=\"cal_saisie\">\n";
    echo "    <legend class=\"boxlogin\"> Plugins</legend>\n";
    foreach ($my_plugins as $my_plugin) {
        if (is_dir(PLUGINS_DIR . "/{$my_plugin}") && !preg_match("/^\\./", $my_plugin)) {
            echo "Plugin détecté : ";
            echo "<b> {$my_plugin} </b>. This plugin is installed ? :\n            <select name=tab_new_values[" . $my_plugin . "_installed]>";
            $sql_plug = "SELECT p_is_active, p_is_install FROM conges_plugins WHERE p_name = '" . $my_plugin . "';";
            $ReqLog_plug = SQL::query($sql_plug);
            if ($ReqLog_plug->num_rows != 0) {
                while ($plug = $ReqLog_plug->fetch_array()) {
                    $p_install = $plug["p_is_install"];
                    if ($p_install == '1') {
                        echo "<option selected='selected' value='1'>Y</option><option value='0'>N</option>";
                    } else {
                        echo "<option value='1'>Y</option><option selected='selected' value='0'>N</option>";
                    }
                    echo "</select>";
                    echo " ... Is activated ? : <select name=tab_new_values[" . $my_plugin . "_activated]>";
                    $p_active = $plug["p_is_active"];
                    if ($p_active == '1') {
                        echo "<option selected='selected' value='1'>Y</option><option value='0'>N</option>";
                    } else {
                        echo "<option value='1'>Y</option><option selected='selected' value='0'>N</option>";
                    }
                }
            } else {
                echo "<option value='1'>Y</option><option selected='selected' value='0'>N</option>";
                echo "</select>";
                echo " ... Is activated ? : <select name=tab_new_values[" . $my_plugin . "_activated]>";
                echo "<option value='1'>Y</option><option selected='selected' value='0'>N</option>";
            }
            echo "</select>";
            echo "<br />";
            $plug_count++;
        }
    }
    if ($plug_count == 0) {
        echo "No plugin detected.";
    }
    echo "</td></tr>\n";
    echo "<tr><td align=\"right\">\n";
    echo "<input type=\"submit\"  value=\"" . _('form_save_modif') . "\"><br>";
    echo "</td></tr>\n";
    /**********************************************************************/
    echo "</table>\n";
    echo "</form>\n";
    echo "<br><br>\n";
    affiche_bouton_retour($session);
    echo "<br><br>\n";
    bottom();
}
开发者ID:kakargias,项目名称:php-conges,代码行数:101,代码来源:configure.php

示例15: restaure

function restaure($fichier_restaure_name, $fichier_restaure_tmpname, $fichier_restaure_size, $fichier_restaure_error, $DEBUG = FALSE)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $session = session_id();
    header_popup();
    echo "<h1>" . _('admin_sauve_db_titre') . "</h1>\n";
    if ($fichier_restaure_error != 0 || $fichier_restaure_size == 0) {
        //message d'erreur et renvoit sur la page précédente (choix fichier)
        echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
        echo "<table>\n";
        echo "<tr>\n";
        echo "<th> " . _('admin_sauve_db_bad_file') . " : <br>{$fichier_restaure_name}</th>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td align=\"center\">\n";
        echo "\t<input type=\"hidden\" name=\"choix_action\" value=\"restaure\">\n";
        echo "\t<input type=\"submit\" value=\"" . _('form_redo') . "\">\n";
        echo "</td>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td align=\"center\">\n";
        echo "\t<input type=\"button\" value=\"" . _('form_cancel') . "\" onClick=\"javascript:window.close();\">\n";
        echo "</td>\n";
        echo "</tr>\n";
        echo "</table>\n";
        echo "</form>\n";
    } else {
        //affichage du contenu :
        //readfile($fichier_restaure_tmpname);
        $result = execute_sql_file($fichier_restaure_tmpname, $DEBUG);
        /*		// on lit le fichier et on met chaque ligne dans un tableau
        		$tab_lines = file ($fichier_restaure_tmpname);
        		// puis parcourt du tableau :
        		// si la ligne n'est pas un commentaire (commence par # (après avoir enlevé les espaces de debut de chaine))
        		// on l'ajoute a la requete sql )
        		$sql2="";
        		foreach ($tab_lines as $line_num => $line)
        		{
        			$line=trim($line);
        			if(substr($line,0,1)=="#")
        			{
        				//echo "#<b>$line_num</b> $line<br>\n";
        			}
        			else
        			{
        				//echo "$line<br>\n";
        				//execution de la requete sql:
        				$sql2=$line;
        				//echo "$sql2<br>";
        				$ReqLog = SQL::query($sql2) ;
        			}
        		}
        */
        echo "<form action=\"\" method=\"POST\">\n";
        echo "<table>\n";
        echo "<tr>\n";
        echo "<th>" . _('admin_sauve_db_restaure_ok') . " !</th>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td align=\"center\">&nbsp;</td>\n";
        echo "</tr>\n";
        echo "<tr>\n";
        echo "<td align=\"center\">\n";
        echo "\t<input type=\"button\" value=\"" . _('form_close_window') . "\" onClick=\"javascript:window.close();\">\n";
        echo "</td>\n";
        echo "</tr>\n";
        echo "</table>\n";
        echo "</form>\n";
    }
    bottom();
}
开发者ID:kakargias,项目名称:php-conges,代码行数:71,代码来源:admin_db_sauve.php


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