Ejemplo n.º 1
0
 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="******"'>" . $_SESSION['config']['URL_ACCUEIL_CONGES'] . "/export/ics_export.php?usr="******"<a>";
     bottom();
 }
Ejemplo n.º 2
0
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();
}
Ejemplo n.º 3
0
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();
}
Ejemplo n.º 4
0
<?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'));
Ejemplo n.º 5
0
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();
}
Ejemplo n.º 6
0
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();
}
Ejemplo n.º 7
0
			
			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);
Ejemplo n.º 8
0
?>
<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'));
Ejemplo n.º 9
0
 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();
 }
Ejemplo n.º 10
0
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'));
?>
	
Ejemplo n.º 11
0
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;
}
Ejemplo n.º 12
0
		        }
			    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 );

?>
Ejemplo n.º 13
0
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();
}
Ejemplo n.º 14
0
function affichage($session, $DEBUG = FALSE)
{
    $PHP_SELF = $_SERVER['PHP_SELF'];
    /**************************************/
    // affichage du titre
    echo "<H1><img src=\"" . TEMPLATE_PATH . "img/tux_config_32x32.png\" width=\"32\" height=\"32\" border=\"0\" title=\"" . _('config_appli_titre_2') . "\" alt=\"" . _('config_appli_titre_2') . "\"> " . _('config_appli_titre_1') . "</H1></center>\n";
    echo "<br>\n";
    /**************************************/
    affiche_bouton_retour($session);
    // affichage de la liste des variables
    if ($session == "") {
        echo "<form action=\"{$PHP_SELF}\" method=\"POST\"> \n";
    } else {
        echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\"> \n";
    }
    echo "<input type=\"hidden\" name=\"action\" value=\"commit\">\n";
    //requête qui récupère les informations de config
    $sql1 = "SELECT * FROM conges_config ORDER BY conf_groupe ASC";
    $ReqLog1 = SQL::query($sql1);
    $old_groupe = "";
    while ($data = $ReqLog1->fetch_array()) {
        $conf_nom = $data['conf_nom'];
        $conf_valeur = $data['conf_valeur'];
        $conf_groupe = $data['conf_groupe'];
        $conf_type = strtolower($data['conf_type']);
        $conf_commentaire = strtolower($data['conf_commentaire']);
        // changement de groupe de variables
        if ($old_groupe != $conf_groupe) {
            if ($old_groupe != "") {
                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 "<br>\n";
            echo "<table width=\"100%\">\n";
            echo "<tr><td>\n";
            echo "    <fieldset class=\"cal_saisie\">\n";
            echo "    <legend class=\"boxlogin\">" . _($conf_groupe) . "</legend>\n";
            $old_groupe = $conf_groupe;
        }
        // si on est sur le parametre "lang" on liste les fichiers de langue du répertoire install/lang
        if ($conf_nom == "lang") {
            echo "Choisissez votre langue :<br> \n";
            echo "Choose your language :<br>\n";
            // affichage de la liste des langues supportées ...
            // on lit le contenu du répertoire lang et on parse les nom de ficher (ex lang_fr_francais.php)
            //affiche_select_from_lang_directory("tab_new_values[$conf_nom]");
            affiche_select_from_lang_directory('lang', $conf_valeur);
        } else {
            // affichage commentaire
            echo "<br><i>" . _($conf_commentaire) . "</i><br>\n";
            // affichage saisie variable
            if ($conf_nom == "installed_version") {
                echo "<b>{$conf_nom}&nbsp;&nbsp;=&nbsp;&nbsp;{$conf_valeur}</b><br>";
            } elseif ($conf_type == "texte" || $conf_type == "path") {
                echo "<b>{$conf_nom}</b>&nbsp;=&nbsp;<input type=\"text\" size=\"50\" maxlength=\"200\" name=\"tab_new_values[{$conf_nom}]\" value=\"{$conf_valeur}\"><br>";
            } elseif ($conf_type == "boolean") {
                echo "<b>{$conf_nom}</b>&nbsp;=&nbsp;<select name=\"tab_new_values[{$conf_nom}]\">";
                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();
}
Ejemplo n.º 15
0
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();
}
Ejemplo n.º 16
0
eventsidebar($select_db, $user_id);
?>
<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>Search and Add Groups</h2>
	<div id = "searchgroupsDiv">
		<label>Search for a group:<input type="search" name="groupsearch" /></label>
		<button id="searchgroups" type="button">Search</button>
	</div>
	
	<form action="service/add.php" method="post">
		<fieldset>
			<legend>Add a group</legend>
			<p>Check the checkbox and press Add to add these groups</p>
			<p>Adding a group will add all of its parent groups as well</p>
			<?php 
echo form_security_gen();
?>
			<input type="submit" value="Add" />
			<ul id="searchresults"></ul>
		</fieldset>
	</form>
</div>
<?php 
bottom(array('search.js'));
Ejemplo n.º 17
0
function commit_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";
    if ($DEBUG) {
        echo "tab_checkbox_j_chome : <br>\n";
        print_r($tab_checkbox_j_chome);
        echo "<br>\n";
    }
    // si l'année est déja renseignée dans la database, on efface ttes les dates de l'année
    if (verif_year_deja_saisie($tab_checkbox_j_chome, $DEBUG)) {
        $result = delete_year($tab_checkbox_j_chome, $DEBUG);
    }
    // on insert les nouvelles dates saisies
    $result = insert_year($tab_checkbox_j_chome, $DEBUG);
    // on recharge les jours feries dans les variables de session
    init_tab_jours_feries($DEBUG);
    if ($result) {
        echo "<br>" . _('form_modif_ok') . ".<br><br>\n";
    } else {
        echo "<br>" . _('form_modif_not_ok') . " !<br><br>\n";
    }
    $date_1 = key($tab_checkbox_j_chome);
    $tab_date = explode('-', $date_1);
    $comment_log = "saisie des jours chomés pour " . $tab_date[0];
    log_action(0, "", "", $comment_log, $DEBUG);
    echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
    echo "<table>\n";
    echo "<tr><td align=\"center\">\n";
    echo "\t<input type=\"button\" value=\"" . _('form_close_window') . "\" onClick=\"javascript:window.close();\">\n";
    echo "</td></tr>\n";
    echo "</table>\n";
    echo "</form>\n";
    bottom();
}
Ejemplo n.º 18
0
function form_saisie($user, $date_debut, $date_fin, $DEBUG = FALSE)
{
    $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;
    }
    header_popup();
    echo "<center>\n";
    echo "<h1>" . _('export_cal_titre') . "</h1>\n";
    echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n";
    echo "<table>\n";
    // saisie des dates
    echo "<tr>\n";
    echo "<td align=\"center\">\n";
    echo "<b>" . _('export_cal_from_date') . "</b> <input type=\"text\" name=\"date_debut\" size=\"10\" maxlength=\"10\" value=\"{$date_debut}\" style=\"background-color: #D4D4D4; \" readonly=\"readonly\"> \n";
    echo "<a href=\"javascript:void(0);\" onClick=\"javascript:OpenPopUp('fonctions_export.php?session={$session}&champ_date=date_debut','calendardebut',250,220);\">\n";
    echo "<img src=\"" . TEMPLATE_PATH . "img/1day.png\" border=\"0\" title=\"" . _('export_cal_saisir_debut') . "\" alt=\"" . _('export_cal_saisir_debut') . "\"></a>\n";
    echo "</td>\n";
    echo "<td align=\"center\">\n";
    echo "<b>" . _('export_cal_to_date') . "</b> <input type=\"text\" name=\"date_fin\" size=\"10\" maxlength=\"10\" value=\"{$date_fin}\" style=\"background-color: #D4D4D4; \" readonly=\"readonly\"> \n";
    echo "<a href=\"javascript:void(0);\" onClick=\"javascript:OpenPopUp('fonctions_export.php?session={$session}&champ_date=date_fin','calendarfin',250,220);\">\n";
    echo "<img src=\"" . TEMPLATE_PATH . "img/1day.png\" border=\"0\" title=\"" . _('export_cal_saisir_fin') . "\" alt=\"" . _('export_cal_saisir_fin') . "\"></a>\n";
    echo "</td>\n";
    echo "</tr>\n";
    // ligne vide
    echo "<tr>\n";
    echo "<td colspan=\"2\">&nbsp;\n";
    echo "</td>\n";
    echo "</tr>\n";
    // saisie du format
    echo "<tr>\n";
    echo "<td colspan=\"2\">\n";
    echo "<table align=\"center\"><tr>\n";
    echo "<td><b>" . _('export_cal_format') . "</b> : </td>\n";
    echo "<td align=\"left\"><b>ical</b><input type=\"radio\" name=\"choix_format\" value=\"ical\" checked> </td>\n";
    echo "<td align=\"right\"> <b>vcal</b><input type=\"radio\" name=\"choix_format\" value=\"vcal\"></td>\n";
    echo "</tr></table>\n";
    echo "</td>\n";
    echo "<tr>\n";
    echo "<td align=\"center\">&nbsp;</td>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td colspan=\"2\" align=\"center\">\n";
    echo "\t<input type=\"hidden\" name=\"action\" value=\"export\">\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();
}
Ejemplo n.º 19
0
<?php 
include $_SERVER['DOCUMENT_ROOT'] . '/scripts/functions_page.php';
$filename = "http://www.turkiball.com" . $_SERVER["PHP_SELF"];
// Removes the slash if there is one
if (substr($filename, strlen($filename) - 1, 1) == '/') {
    $filename = substr($filename, 0, strlen($filename) - 1);
}
head(1);
// Means we're in the feed
?>
																								

</head>

<body>

<?php 
title();
newsbar(1);
// Means we're in the feed
navbarleft();
content(1, 8, 9999, 2, $filename);
// for the fn entries, filename for echoContent
bottom($filename);
?>
			

</body>

</html>
Ejemplo n.º 20
0
				<p class="developer-email">karan@classmatches.com</p>
			</div>
		</li>
		<li>
			<div class="developer">
				<p class="developer-name">Jeannette Yu</p>
				<p class="developer-description">
					Jeannette is attending her second year at the University of Washington as a Computer Science
					 major. She begun learning web programming while on this project, and mainly works on the
					 visible areas of the site along with the user interface. She is also currently assisting
					 with data visualization in UW's WProf project, developing with Javascript and the D3 library.
				</p>
				<p class="developer-email">jeannette@classmatches.com</p>
			</div>
		</li>
		<li>
			<div class="developer">
				<p class="developer-name">Stephanie Shi</p>
				<p class="developer-description">
					Stephaie is currently in her second year the the University of Washington studying Computer 
					Science and Health Sciences. She has been learning web programming through this project and mostly 
					helps with the visual aspects of this website.
				</p>
				<p class="developer-email">stephanie@classmatches.com</p>
			</div>
		</li>
	</ul>
</div>
<?php 
bottom(array('info.js'));
Ejemplo n.º 21
0
 public static function choix_save_restore()
 {
     $PHP_SELF = $_SERVER['PHP_SELF'];
     $session = session_id();
     $return = '';
     header_popup();
     $return .= '<h1>' . _('admin_sauve_db_titre') . '</h1>';
     $return .= '<form action="' . $PHP_SELF . '?session=' . $session . '" method="POST">';
     $return .= '<table>';
     $return .= '<tr>';
     $return .= '<th colspan="2">' . _('admin_sauve_db_choisissez') . ' :</th>';
     $return .= '</tr>';
     $return .= '<tr>';
     $return .= '<td><input type="radio" name="choix_action" value="sauvegarde" checked></td>';
     $return .= '<td><b>' . _('admin_sauve_db_sauve') . '</b></td>';
     $return .= '</tr>';
     $return .= '<tr>';
     $return .= '<td><input type="radio" name="choix_action" value="restaure" /></td>';
     $return .= '<td><b>' . _('admin_sauve_db_restaure') . '</b></td>';
     $return .= '</tr>';
     $return .= '<tr>';
     $return .= '<td colspan="2" align="center">';
     $return .= '&nbsp;';
     $return .= '</td>';
     $return .= '</tr>';
     $return .= '<tr>';
     $return .= '<td colspan=2" align="center">';
     $return .= '<input type="submit" value="' . _('form_submit') . '">';
     $return .= '</td>';
     $return .= '</tr>';
     $return .= '<tr>';
     $return .= '<td colspan="2" align="center">';
     $return .= '<input type="button" value="' . _('form_cancel') . '" onClick="javascript:window.close();">';
     $return .= '</td></tr></table></form>';
     echo $return;
     bottom();
 }
Ejemplo n.º 22
0
?>
					<select name="group">
						<option value="" selected="selected">--Select a group for this event to apply to--</option>
						<?php 
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    ?>
							<option value="<?php 
    echo htmlspecialchars($row['id']);
    ?>
">
								<?php 
    echo htmlspecialchars($row['name']);
    ?>
							</option>
						<?php 
}
?>
					</select> 
				</li>
			</ul>
			<?php 
echo form_security_gen();
?>
			<input type="submit" value="Create Event" />
		</form>
	</fieldset>
<!--</div>-->
</div>
<?php 
bottom(array('events.js'));
Ejemplo n.º 23
0
/*********************************/
/*   COMPOSITION DU HEADER...    */
/*********************************/
$add_css = '<style>#onglet_menu .onglet{ width: ' . str_replace(',', '.', 100 / count($onglets)) . '% ;}</style>';
header_menu('admin', $_SESSION['config']['titre_admin_index'], $add_css);
/*********************************/
/*   AFFICHAGE DES ONGLETS...  */
/*********************************/
echo '<div id="onglet_menu">';
foreach ($onglets as $key => $title) {
    echo '<div class="onglet ' . ($onglet == $key ? ' active' : '') . '" >
			<a href="' . $PHP_SELF . '?session=' . $session . '&onglet=' . $key . '">' . $title . '</a>
		</div>';
}
echo '</div>';
/*********************************/
/*   AFFICHAGE DE L'ONGLET ...    */
/*********************************/
/** initialisation des tableaux des types de conges/absences  **/
// recup du tableau des types de conges (seulement les conges)
$tab_type_cong = recup_tableau_types_conges($DEBUG);
// recup du tableau des types de conges exceptionnels (seulement les conges exceptionnels)
$tab_type_conges_exceptionnels = recup_tableau_types_conges_exceptionnels($DEBUG);
echo '<div class="' . $onglet . ' main-content">';
include ROOT_PATH . 'admin/admin_' . $onglet . '.php';
echo '</div>';
/*********************************/
/*   AFFICHAGE DU BOTTOM ...   */
/*********************************/
bottom();
exit;
Ejemplo n.º 24
0
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 {
        $result = execute_sql_file($fichier_restaure_tmpname, $DEBUG);
        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();
}
Ejemplo n.º 25
0
}
head(1);
// Means we're in the feed
?>
																								

</head>

<body>

<?php 
title();
newsbar(1);
// Means we're in the feed
navbarleft();
content(1, 0, 1, 0, $filename);
// in feed, for the fn entries, filename for echoContent
if (!$_GET["num"]) {
    // Makes $num be the newest news item of any type
    $num = end(getposts(0));
} else {
    $num = $_GET["num"];
}
bottom($num);
?>
			

</body>

</html>
Ejemplo n.º 26
0
$_SESSION['first_load'] = true;
session_commit();
top(true, 'Groups', $name, array('/utility/classmatch.css', 'groups.css'));
$select_db = connect('select');
eventsidebar($select_db, $user_id);
$groups = $tree->vars('name');
?>
<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>My Groups</h2>
	<ul id="groupList" class="tbl-list">
	<?php 
foreach ($groups as $group) {
    ?>
		<li><?php 
    echo htmlspecialchars($group);
    ?>
</li>
	<?php 
}
?>
	</ul>
</div>
<?php 
bottom(array('groups.js'));