$datearchive = mysql_result($result, $i, datearchive);
 $id_userce = mysql_result($result, $i, id_userce);
 $titrece = mysql_result($result, $i, titrece);
 /* recherche du nom de l'auteur */
 $req2 = "select nom, prenom from salaries where id_user='******'";
 $result2 = DatabaseOperation::query($req2);
 $sal_nom = mysql_result($result2, 0, nom);
 $sal_prenom = mysql_result($result2, 0, prenom);
 echo "  <tr>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\">\n";
 $datecrea = affiche_date($datecrea);
 echo " {$datecrea}</div> </td>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\">\n";
 $datearchive = affiche_date($datearchive);
 echo " {$datearchive}</div> </td>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\"> {$sal_prenom} {$sal_nom} </div>\n";
 echo "    </td>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\">{$titrece} </div>\n";
 echo "    </td>\n";
 echo "    <td class=\"loginFFFFFF\" bgcolor=FFCC66>\n";
 echo "      <center>\n";
 echo "    <a href=\"articlece.php?numartce={$numartce}&archive=archive\"><img src=\"../images_pop/voir.gif\" width=\"61\" height=\"20\" border=\"0\"></a></td>\n";
 echo "      </center>\n";
 echo "    </td>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <center>\n";
 echo "        <input type=\"checkbox\" name=\"{$numartce}\" value=\"{$numartce}\">\n";
示例#2
0
文件: week.php 项目: Birssan/GRR
 }
 $month_current = date("m", $row[0]);
 $day_current = date("d", $row[0]);
 $year_current = date("Y", $row[0]);
 $debut_jour = mktime($morningstarts, 0, 0, $month_current, $day_current, $year_current);
 $t = max(round_t_down($row[0], $resolution, $debut_jour), $week_start);
 $end_t = min((int) round_t_up((int) $row[1], (int) $resolution, $debut_jour), (int) $week_end + 1);
 $weekday = (date("w", $t) + 7 - $weekstarts) % 7;
 $prev_weekday = -1;
 $slot = ($t - $week_midnight) % 86400 / $resolution;
 $firstday = date("d", $t);
 $lastday = date("d", $row[1]);
 $heigthSlotHoure = 60 / ($this_area_resolution / 60);
 do {
     if ($debug_flag) {
         echo "<br />DEBUG: t={$t} (" . affiche_date($t) . "), end_t={$end_t} (" . affiche_date($end_t) . "), weekday={$weekday}, slot={$slot}\n";
     }
     if ($slot < $first_slot) {
         $slot = $first_slot;
         $t = $weekday * 86400 + $am7;
         continue;
     }
     if ($slot <= $last_slot - 1) {
         $d[$weekday][$slot]["color"] = $row[2];
         if ($row[1] > mktime(24, 0, 0, date('m', $row[0]), date('d', $row[0]), date('Y', $row[0]))) {
             // Cas d'une réservation sur plusieurs jours
             if (date("d", $t) == $firstday) {
                 // Pour le prmier jour de réservation, Hdebut = Heure debut résa / Hfin = heure fin de journée / duree = (nb bloc d'une journée
                 //  - nb bloc vides)
                 $d[$weekday][$slot]["horaireDebut"] = $row[0];
                 $d[$weekday][$slot]["horaireFin"] = mktime($eveningends, 0, 0, date('m', $row[0]), date('d', $row[0]), date('Y', $row[0]));
示例#3
0
function showNoBookings($day, $month, $year, $back)
{
    global $vocab;
    $date = mktime(0, 0, 0, $month, $day, $year);
    echo '<h2>' . get_vocab("nobookings") . ' ' . affiche_date($date) . '</h2>';
    echo '<p>' . get_vocab("begin_bookings") . '<b>' . affiche_date(Settings::get("begin_bookings")) . '</b></p>';
    echo '<p>' . get_vocab("end_bookings") . '<b>' . affiche_date(Settings::get("end_bookings")) . '</b></p>';
    ?>
	<p>
		<?php 
    if ($back != "") {
        ?>
			<a href="<?php 
        echo $back;
        ?>
"><?php 
        echo get_vocab("returnprev");
        ?>
</a>
			<?php 
    }
    ?>
	</p>
</body>
</html>
<?php 
}
示例#4
0
function showNoBookings($day, $month, $year, $back)
{
    //global $vocab;
    /* todo refacto twig */
    $date = mktime(0, 0, 0, $month, $day, $year);
    echo '<h2>' . get_vocab('nobookings') . ' ' . affiche_date($date) . '</h2>';
    echo '<p>' . get_vocab('begin_bookings') . '<b>' . affiche_date(Settings::get('begin_bookings')) . '</b></p>';
    echo '<p>' . get_vocab('end_bookings') . '<b>' . affiche_date(Settings::get('end_bookings')) . '</b></p>';
    ?>
	<p>
		<?php 
    if ($back != '') {
        ?>
			<a href="<?php 
        echo $back;
        ?>
"><?php 
        echo get_vocab('returnprev');
        ?>
</a>
			<?php 
    }
    ?>
	</p>
</body>
</html>
<?php 
}
示例#5
0
文件: week.php 项目: rhertzog/lcs
    $month_current = date("m",$row[0]);
    $day_current = date("d",$row[0]);
    $year_current  = date("Y",$row[0]);
    $debut_jour=mktime($morningstarts,0,0,$month_current,$day_current,$year_current);

    $t = max(round_t_down($row[0], $resolution, $debut_jour), $week_start);
    $end_t = min((int)round_t_up((int)$row[1],
                     (int)$resolution, $debut_jour),
                             (int)$week_end+1);
    $weekday = (date("w", $t) + 7 - $weekstarts) % 7;

    $prev_weekday = -1; # Invalid value to force initial label.
    $slot = ($t - $week_midnight) % 86400 / $resolution;
    do
    {
        if ($debug_flag) echo "<br />DEBUG: t=$t (".affiche_date($t)."), end_t=$end_t (".affiche_date($end_t)."), weekday=$weekday, slot=$slot\n";

        if ($slot < $first_slot)
        {
            # This is before the start of the displayed day; skip to first slot.
            $slot = $first_slot;
            $t = $weekday * 86400 + $am7;
            continue;
        }

        if ($slot <= $last_slot)
        {
            # This is within the working day; color it.
            $d[$weekday][$slot]["color"] = $row[2];
            # Only label it if it is the first time on this day:
            if ($prev_weekday != $weekday)
$num = mysql_num_rows($result);
if ($num != 0) {
    $i = 0;
    while ($i < $num) {
        $taille = mysql_result($result, $i, taille);
        $num_article = mysql_result($result, $i, num_article);
        $publica = mysql_result($result, $i, publica);
        $titre_art = mysql_result($result, $i, titre_art);
        $date_crea = mysql_result($result, $i, date_crea);
        $archive = mysql_result($result, $i, archive);
        $sujet = mysql_result($result, $i, sujet);
        $titre_art = stripslashes($titre_art);
        $sujet = stripslashes($sujet);
        // Gestion de l'affichage des dates
        echo "  <tr>\n";
        $toto = affiche_date($date_crea);
        echo "<td class=\"loginFFFFFF\" align=\"center\" width=\"10%\">{$toto}</td>\n";
        echo "    <td class=\"loginFFFFFF\" align=\"center\" width=\"25%\">\n";
        taille($taille, $num_article, "articles", "gere");
        echo "    {$titre_art}&nbsp;</a></td>\n";
        echo "    <td class=\"loginFFFFFF\" align=\"center\" width=\"25%\">{$sujet}&nbsp;</td>\n";
        if ($publica != '') {
            echo "    <td class=\"loginFFFFFF\" align=\"center\" width=\"10%\">Oui</td>\n";
        } else {
            echo "    <td class=\"loginFFFFFF\" align=\"center\" width=\"10%\">&nbsp;</td>\n";
        }
        echo "    <td class=\"loginFFFFFF\" align=\"center\" width=\"10%\" bgcolor=FFCC66>\n";
        if ($publica == '') {
            taillemod($taille, $num_article, "articles");
            echo "    <img src=\"../images_pop/modification.gif\" border=\"0\"></a></td>\n";
        } else {
示例#7
0
                <td class="loginFFFFFF" width="30&ugrave;">

                                <input type="text" name="datecrea" size="22" class="txtfield" value='
<?php 
$date_crea = affiche_date($date_crea);
echo "{$date_crea}";
?>
                  '>
                </td>
                <td class="loginFFFFFFdroit">Derni&egrave;re modification</td>
                <td class="loginFFFFFF" width="30%">

                                <input type="text" name="date_lastmodif" size="22" class="txtfield" value='
<?php 
if ($date_modif != 0) {
    $date_modif = affiche_date($date_modif);
    echo "{$date_modif}";
}
?>
'>
                </td>
                <td class="loginFFFFFF" width="5%">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="600" border="4" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" bordercolor="#FFCC66">
        <tr>
          <td class="loginFFCC66">
 $id_userce = mysql_result($result, $i, id_userce);
 $titrece = mysql_result($result, $i, titrece);
 /* recherche du nom de l'auteur */
 $req2 = "select nom, prenom from salaries where id_user='******'";
 $result2 = DatabaseOperation::query($req2);
 $nbreq = mysql_num_rows($result2);
 if ($nbreq != 0) {
     $sal_nom = mysql_result($result2, 0, nom);
     $sal_prenom = mysql_result($result2, 0, prenom);
 } else {
     $sal_nom = "auteur invalide";
 }
 echo "  <tr>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\">\n";
 $datecrea = affiche_date($datecrea);
 echo " {$datecrea}</div> </td>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\"> {$sal_prenom} {$sal_nom} </div>\n";
 echo "    </td>\n";
 echo "    <td class=\"loginFFFFFF\">\n";
 echo "      <div align=\"left\">{$titrece} </div>\n";
 echo "    </td>\n";
 echo "    <td class=\"loginFFFFFF\" bgcolor=FFCC66>\n";
 echo "      <center>\n";
 echo "    <a href=\"articlece.php?numartce={$numartce}&voir=voir\"><img src=\"../images_pop/voir.gif\" width=\"61\" height=\"20\" border=\"0\"></a></td>\n";
 echo "      </center>\n";
 echo "    </td>\n";
 echo "    <td class=\"loginFFFFFF\" bgcolor=FFCC66>\n";
 echo "      <center>\n";
 echo "    <a href=\"mod_articlece.php?numartce={$numartce}\"><img src=\"../images_pop/modification.gif\" border=\"0\"></a></td>\n";
    include "../include/admin_calend_jour_cycle.inc.php";
}
echo "<h3>" . get_vocab('calendrier_jours/cycles');
echo "</h3>\n";
if (!isset($_GET['pview'])) {
    echo get_vocab("explication_Jours_Cycles3");
    echo "<br />" . get_vocab("explication_Jours_Cycles4") . "<br />\n";
}
// Modification d'un jour cycle
// intval($jour)=-1 : pas de jour cycle
// intval($jour)=0 : Titre
// intval($jour)>0 : Jour cycle
if (!isset($_GET['pview']) && isset($_GET['date'])) {
    $jour_cycle = grr_sql_query1("select Jours from " . TABLE_PREFIX . "_calendrier_jours_cycle  WHERE DAY = " . $_GET['date'] . "");
    echo "<fieldset style=\"padding-top: 8px; padding-bottom: 8px; width: 80%; margin-left: auto; margin-right: auto;\">\n";
    echo "<legend>" . get_vocab('Journee du') . " " . affiche_date($_GET['date']) . "</legend>\n";
    echo "<form id=\"main\" method=\"get\" action=\"admin_calend_jour_cycle.php\">\n";
    echo "<div><input type='radio' name='selection' value='0'";
    if (intval($jour_cycle) == -1) {
        echo " checked=\"checked\"";
    }
    echo " />" . get_vocab('Cette journee ne correspond pas a un jour cycle') . "<br />\n";
    echo "<input type='radio' name='selection' value='1'";
    if (intval($jour_cycle) > 0) {
        echo " checked=\"checked\"";
    }
    echo " />\n" . get_vocab("nouveau_jour_cycle");
    echo "<select name=\"newDay\" size=\"1\" onclick=\"check(1)\">";
    for ($i = 1; $i < Settings::get("nombre_jours_Jours/Cycles") + 1; $i++) {
        echo "<option value=\"" . $i . "\" ";
        if ($jour_cycle == $i) {
示例#10
0
function showNoBookings($day, $month, $year, $area, $back, $type_session)
{
 global $vocab;
 print_header($day, $month, $year, $area,$type_session);
 $date = mktime(0,0,0,$month,$day,$year);
 echo '<h2>'.get_vocab("nobookings").' '.affiche_date($date).'</h2>';
 echo '<p>'.get_vocab("begin_bookings").'<b>'.affiche_date(getSettingValue("begin_bookings")).'</b></p>';
 echo '<p>'.get_vocab("end_bookings").'<b>'.affiche_date(getSettingValue("end_bookings")).'</b></p>';
 ?>
 <p>
  <?php if ($back != "") { ?>
   <a href="<?php echo $back; ?>"><?php echo get_vocab("returnprev"); ?></a>
   <?php }
  ?>
  </p>
 </body>
</html>
<?php
}