• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP genDateSelector函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: make_site_list_html

    } else {
        echo "<td>\n";
        echo make_site_list_html('year.php', $id_site, $from_year, $from_month, $day, getUserName());
        echo "</td><td>";
        echo make_area_list_html('year.php', $id_site, $area, $from_year, $from_month, $day, getUserName());
        echo "</td>\n";
    }
    echo "\n<td><form method=\"get\" action=\"year.php\">";
    echo "<table border=\"0\">\n";
    echo "<tr><td>" . get_vocab("report_start") . get_vocab("deux_points") . "</td>";
    echo "<td>";
    echo genDateSelector("from_", "", $from_month, $from_year, "");
    echo "</td></tr>";
    echo "<tr><td>" . get_vocab("report_end") . get_vocab("deux_points");
    echo "</td><td>\n";
    echo genDateSelector("to_", "", $to_month, $to_year, "");
    echo "</td></tr>\n";
    echo "<tr><td>\n";
    echo "<input type=\"hidden\" name=\"area\" value=\"{$area}\" />\n";
    echo "<input type=\"submit\" name=\"valider\" value=\"" . $vocab["goto"] . "\" /></td><td> </td></tr>\n";
    echo "</table>\n";
    echo "</form></td>\n";
    echo '<td><a title="' . htmlspecialchars(get_vocab('back')) . '" href="' . page_accueil('no') . '">' . $vocab['back'] . '</a></td>';
    echo "</tr></table>\n";
}
$this_area_name = grr_sql_query1("SELECT area_name FROM " . TABLE_PREFIX . "_area WHERE id={$area}");
echo "<div class=\"titre_planning\">" . ucfirst($this_area_name) . " - " . get_vocab("all_areas") . " </div>\n";
//Used below: localized "all day" text but with non-breaking spaces:
$all_day = preg_replace("/ /", " ", get_vocab("all_day"));
//Get all meetings for this month in the room that we care about
//row[0] = Start time
开发者ID:Birssan,项目名称:GRR,代码行数:31,代码来源:year.php


示例2: array

            $params = array('name' => 'month_relative_ord', 'value' => $month_relative_ord, 'disabled' => $disabled, 'options' => $options, 'force_assoc' => TRUE);
            generate_select($params);
            $options = array();
            for ($i = 0; $i < 7; $i++) {
                $i_offset = ($i + $weekstarts) % 7;
                $options[$RFC_5545_days[$i_offset]] = day_name($i_offset);
            }
            $params = array('name' => 'month_relative_day', 'value' => $month_relative_day, 'disabled' => $disabled, 'options' => $options);
            generate_select($params);
            echo "</fieldset>\n";
            echo "</fieldset>\n";
        }
        // Repeat end date
        echo "<div id=\"rep_end_date\">\n";
        echo "<label>" . get_vocab("rep_end_date") . ":</label>\n";
        genDateSelector("rep_end_", $rep_end_day, $rep_end_month, $rep_end_year, '', $disabled);
        echo "</div>\n";
        // Checkbox for skipping past conflicts
        if (!$disabled) {
            echo "<div>\n";
            $params = array('label' => get_vocab("skip_conflicts") . ":", 'name' => 'skip', 'value' => !empty($skip_default));
            generate_checkbox($params);
            echo "</div>\n";
        }
    }
    echo "</fieldset>\n";
}
?>
    <input type="hidden" name="returl" value="<?php 
echo htmlspecialchars($returl);
?>
开发者ID:jberanek,项目名称:mrbs_clone,代码行数:31,代码来源:edit_entry.php


示例3: jQuery_DatePicker

function jQuery_DatePicker($typeDate)
{
    if (@file_exists('../include/connect.inc.php')) {
        $racine = "../";
    } else {
        $racine = "./";
    }
    if ($typeDate == 'rep_end' && isset($_GET['id'])) {
        $res = grr_sql_query("SELECT repeat_id FROM " . TABLE_PREFIX . "_entry WHERE id=" . $_GET['id'] . ";");
        if (!$res) {
            fatal_error(0, grr_sql_error());
        }
        $repeat_id = implode('', grr_sql_row($res, 0));
        $res = grr_sql_query("SELECT rep_type, end_date, rep_opt, rep_num_weeks, start_time, end_time FROM " . TABLE_PREFIX . "_repeat WHERE id={$repeat_id}");
        if (!$res) {
            fatal_error(0, grr_sql_error());
        }
        if (grr_sql_count($res) == 1) {
            $row6 = grr_sql_row($res, 0);
            $date = date_parse(date("Y-m-d H:i:s", $row6[1]));
            $day = $date['day'];
            $month = $date['month'];
            $year = $date['year'];
        } else {
            if (isset($_GET['day'])) {
                $day = $_GET['day'];
            } else {
                $day = date("d");
            }
            if (isset($_GET['month'])) {
                $month = $_GET['month'];
            } else {
                $month = date("m");
            }
            if (isset($_GET['year'])) {
                $year = $_GET['year'];
            } else {
                $year = date("Y");
            }
        }
    } else {
        global $start_day, $start_month, $start_year, $end_day, $end_month, $end_year;
        if (isset($_GET['day'])) {
            $day = $_GET['day'];
        } else {
            $day = date("d");
        }
        if (isset($start_day) && $typeDate == 'start') {
            $day = $start_day;
        } elseif (isset($end_day) && $typeDate == 'end') {
            $day = $end_day;
        }
        if (isset($_GET['month'])) {
            $month = $_GET['month'];
        } else {
            $month = date("m");
        }
        if (isset($start_month) && $typeDate == 'start') {
            $month = $start_month;
        } elseif (isset($end_month) && $typeDate == 'end') {
            $month = $end_month;
        }
        if (isset($_GET['year'])) {
            $year = $_GET['year'];
        } else {
            $year = date("Y");
        }
        if (isset($start_year) && $typeDate == 'start') {
            $year = $start_year;
        } elseif (isset($end_year) && $typeDate == 'end') {
            $year = $end_year;
        }
    }
    genDateSelector("" . $typeDate . "_", "{$day}", "{$month}", "{$year}", "");
    echo '<input type="hidden" disabled="disabled" id="mydate_' . $typeDate . '">' . PHP_EOL;
    echo '<script>' . PHP_EOL;
    echo '	$(function() {' . PHP_EOL;
    echo '$.datepicker.setDefaults( $.datepicker.regional[\'fr\'] );' . PHP_EOL;
    echo '	$(\'#mydate_' . $typeDate . '\').datepicker({' . PHP_EOL;
    echo '		beforeShow: readSelected, onSelect: updateSelected,' . PHP_EOL;
    echo '		showOn: \'both\', buttonImageOnly: true, buttonImage: \'images/calendar.png\',buttonText: "Choisir la date"});' . PHP_EOL;
    echo '		function readSelected()' . PHP_EOL;
    echo '		{' . PHP_EOL;
    echo '			$(\'#mydate_' . $typeDate . '\').val($(\'#' . $typeDate . '_day\').val() + \'/\' +' . PHP_EOL;
    echo '			$(\'#' . $typeDate . '_month\').val() + \'/\' + $(\'#' . $typeDate . '_year\').val());' . PHP_EOL;
    echo '			return {};' . PHP_EOL;
    echo '		}' . PHP_EOL;
    echo '		function updateSelected(date)' . PHP_EOL;
    echo '		{' . PHP_EOL;
    echo '			$(\'#' . $typeDate . '_day\').val(date.substring(0, 2));' . PHP_EOL;
    echo '			$(\'#' . $typeDate . '_month\').val(date.substring(3, 5));' . PHP_EOL;
    echo '			$(\'#' . $typeDate . '_year\').val(date.substring(6, 10));' . PHP_EOL;
    echo '		}' . PHP_EOL;
    echo '	});' . PHP_EOL;
    echo '</script>' . PHP_EOL;
}
开发者ID:JeromeDevome,项目名称:GRR,代码行数:96,代码来源:functions.inc.php


示例4: get_vocab

<table class="table_adm">
	<tr
	><td>
	<?php 
echo get_vocab('end_bookings');
?>
</td>
<td>
	<?php 
$typeDate = 'end_';
$eday = strftime('%d', Settings::get('end_bookings'));
$emonth = strftime('%m', Settings::get('end_bookings'));
$eyear = strftime('%Y', Settings::get('end_bookings'));
echo '<div class="col-xs-12">' . PHP_EOL;
echo '<div class="form-inline">' . PHP_EOL;
genDateSelector('end_', $eday, $emonth, $eyear, 'more_years');
echo '<input type="hidden" disabled="disabled" id="mydate_' . $typeDate . '">' . PHP_EOL;
echo '<script>' . PHP_EOL;
echo '$(function() {' . PHP_EOL;
echo '$.datepicker.setDefaults( $.datepicker.regional[\'fr\'] );' . PHP_EOL;
echo '$(\'#mydate_' . $typeDate . '\').datepicker({' . PHP_EOL;
echo 'beforeShow: readSelected, onSelect: updateSelected,' . PHP_EOL;
echo 'showOn: \'both\', buttonImageOnly: true, buttonImage: \'../images/calendar.png\',buttonText: "Choisir la date"});' . PHP_EOL;
echo 'function readSelected()' . PHP_EOL;
echo '{' . PHP_EOL;
echo '$(\'#mydate_' . $typeDate . '\').val($(\'#' . $typeDate . '_day\').val() + \'/\' +' . PHP_EOL;
echo '$(\'#' . $typeDate . '_month\').val() + \'/\' + $(\'#' . $typeDate . '_year\').val());' . PHP_EOL;
echo 'return {};' . PHP_EOL;
echo '}' . PHP_EOL;
echo 'function updateSelected(date)' . PHP_EOL;
echo '{' . PHP_EOL;
开发者ID:Birssan,项目名称:GRR,代码行数:31,代码来源:admin_config1.php


示例5: genDateSelector

{
	echo "<INPUT NAME=\"rep_type\" TYPE=\"RADIO\" VALUE=\"" . $i . "\"";
	
	if($i == $rep_type)
		echo " CHECKED";
	
	echo ">" . $lang["rep_type_$i"] . "\n";
}

?>
 </TD>
</TR>

<TR>
 <TD CLASS=CR><B><?echo $lang["rep_end_date"]?></B></TD>
 <TD CLASS=CL><? genDateSelector("rep_end_", $rep_end_day, $rep_end_month, $rep_end_year) ?></TD>
</TR>

<TR>
 <TD CLASS=CR><B><? echo $lang["rep_rep_day"]?></B> <? echo $lang["rep_for_weekly"]?></TD>
 <TD CLASS=CL>
<?php 
# Display day name checkboxes according to language and preferred weekday start.
for ($i = 0; $i < 7; $i++) {
    $wday = ($i + $weekstarts) % 7;
    echo "<INPUT NAME=\"rep_day[{$wday}]\" TYPE=CHECKBOX";
    if ($rep_day[$wday]) {
        echo " CHECKED";
    }
    echo ">" . day_name($wday) . "\n";
}
开发者ID:verdurin,项目名称:mrbs-mcr,代码行数:31,代码来源:edit_entry.php


示例6: get_string

echo get_string('search');
?>
</H2>

<div id="searchform">
<FORM NAME="main" >
<TABLE BORDER=0>

<!-- Date selectors -->
    <TR><TD CLASS=CR><B><?php 
echo get_string('date');
?>
</B></TD>
     <TD CLASS=CL>
      <?php 
genDateSelector("", $start_day, $start_month, $start_year, false, true);
?>
      <SCRIPT LANGUAGE="JavaScript">ChangeOptionDays(document.main, '');</SCRIPT>
     </TD>
    </TR>

<!-- Start time/period selectors -->
    <?php 
if (!$enable_periods) {
    ?>
    <TR><TD CLASS=CR><B><?php 
    echo get_string('time');
    ?>
</B></TD>
      <TD CLASS=CL><INPUT NAME="hour" SIZE=2 VALUE="<?php 
    if (!$twentyfourhour_format && $start_hour > 12) {
开发者ID:rtsfc,项目名称:moodle-block_mrbs,代码行数:31,代码来源:roomsearch.php


示例7: genDateSelector

								<div class="form-inline">
									<?php 
        genDateSelector("From_", $From_day, $From_month, $From_year, "");
        ?>
								</div>
							</div>
						</td></tr>
						<tr><td class="CR"><?php 
        echo get_vocab("report_end") . get_vocab("deux_points");
        ?>
</td>
							<td class="CL">
								<div class="col-xs-12">
									<div class="form-inline">
										<?php 
        genDateSelector("To_", $To_day, $To_month, $To_year, "");
        ?>
									</div>
								</div>
							</td></tr>
							<?php 
        if (!isset($_GET["condition_et_ou"]) || $_GET["condition_et_ou"] != "OR") {
            $_GET["condition_et_ou"] = "AND";
        }
        echo "<tr><td align=\"right\"><input type=\"radio\" name=\"condition_et_ou\" value=\"AND\" ";
        if ($_GET["condition_et_ou"] == "AND") {
            echo "checked=\"checked\"";
        }
        echo " /></td>\n";
        echo "<td>" . get_vocab("valide toutes les conditions suivantes") . "</td></tr>";
        echo "<tr><td align=\"right\"><input type=\"radio\" name=\"condition_et_ou\" value=\"OR\" ";
开发者ID:nicolas-san,项目名称:GRRV4,代码行数:31,代码来源:report.php


示例8: confirmlink

    ?>
<table class='boireaus' border="1"><tr valign='middle' align='center'>
<th><b><a href='visa_ct.php?order_by=jc.id_classe,jm.id_matiere'>Classe(s)</a></b></th>
<th><b><a href='visa_ct.php?order_by=jm.id_matiere,jc.id_classe'>Groupe</a></b></th>
<th><b><a href='visa_ct.php?order_by=ct.id_login,jc.id_classe,jm.id_matiere'>Propriétaire</a></b></th>
<th><b>Nombre<br />de notices</b></th>
<th><b>Nombre<br />de notices<br />"devoirs"</b></th>
<th>
<b>Action</b></th>
<th><b><input type="submit" name="visa_ct" value="Signer les cahiers" onclick="return confirmlink(this, 'La signature d\'un cahier de texte est définitive. Etes-vous sûr de vouloir continuer ?', 'Confirmation de la signature')" /></b>
<p><b>dont la date est inférieure au</b></p>
<?php 
    $bday = strftime("%d", getSettingValue("date_signature"));
    $bmonth = strftime("%m", getSettingValue("date_signature"));
    $byear = strftime("%Y", getSettingValue("date_signature"));
    genDateSelector("begin_", $bday, $bmonth, $byear, "more_years");
    ?>
</th>

<th><b>Nombre de visa</b></th>
<?php 
    if (isset($affichage_volume_docs_joints)) {
        $total_volumes_docs_joints = 0;
        ?>
<th title="Volume des documents joints"><b>Volume</b></th>
<?php 
    }
    ?>
</tr>

<?php 
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:visa_ct.php


示例9: genDateSelector

# $sumby: d=by brief description, c=by creator.
if (empty($sumby)) {
    $sumby = "d";
}
# Upper part: The form.
?>
<h1><? echo $lang["report_on"];?></h1>
<form method=post action=report.php>
<table>
<tr><td class="CR"><? echo $lang["report_start"];?></td>
    <td class="CL"> <font size="-1">
    <? genDateSelector("From_", $From_day, $From_month, $From_year); ?>
    </font></td></tr>
<tr><td class="CR"><? echo $lang["report_end"];?></td>
    <td class="CL"> <font size="-1">
    <? genDateSelector("To_", $To_day, $To_month, $To_year); ?>
    </font></td></tr>
<tr><td class="CR"><? echo $lang["match_area"];?></td>
    <td class="CL"><input type=text name=areamatch size=18
    value="<? echo $areamatch_default; ?>">
    </td></tr>
<tr><td class="CR"><? echo $lang["match_room"];?></td>
    <td class="CL"><input type=text name=roommatch size=18
    value="<? echo $roommatch_default; ?>">
    </td></tr>
<tr><td class="CR"><? echo $lang["match_entry"];?></td>
    <td class="CL"><input type=text name=namematch size=18
    value="<? echo $namematch_default; ?>">
    </td></tr>
<tr><td class="CR"><? echo $lang["match_descr"];?></td>
    <td class="CL"><input type=text name=descrmatch size=18
开发者ID:verdurin,项目名称:mrbs-mcr,代码行数:31,代码来源:report.php


示例10: print_header_mrbs


//.........这里部分代码省略.........
   <?php 
        # show a warning if this is using a low version of php
        if (substr(phpversion(), 0, 1) == 3) {
            echo get_string('not_php3', 'block_mrbs');
        }
        if (!empty($locale_warning)) {
            echo "[Warning: " . $locale_warning . "]";
        }
        ?>

    <TABLE WIDTH="100%">
      <TR>
        <TD BGCOLOR="#5B69A6">
          <TABLE WIDTH="100%" BORDER=0>
            <TR>
              <TD CLASS="banner" BGCOLOR="#C0E0FF">
          <FONT SIZE=4><B><a href='<?php 
        echo $mrbs_company_url;
        ?>
'><?php 
        echo $mrbs_company;
        ?>
</a></B><BR>
           <A HREF="index.php"><?php 
        echo get_string('mrbs', 'block_mrbs');
        ?>
</A>
                </FONT>
              </TD>
              <TD CLASS="banner" BGCOLOR="#C0E0FF">
                <FORM ACTION="day.php" METHOD=GET name="Form1">
                  <FONT SIZE=2>
<?php 
        genDateSelector("", $day, $month, $year);
        // Note: The 1st arg must match the last arg in the call to ChangeOptionDays below.
        if (!empty($area)) {
            echo "\n                    <INPUT TYPE=HIDDEN NAME=area VALUE={$area}>\n";
        }
        ?>
	            <SCRIPT LANGUAGE="JavaScript">
                    <!--
                    // fix number of days for the $month/$year that you start with
                    ChangeOptionDays(document.Form1, ''); // Note: The 2nd arg must match the first in the call to genDateSelector above.
                    // -->
                    </SCRIPT>
	    <INPUT TYPE=SUBMIT VALUE="<?php 
        echo get_string('goto', 'block_mrbs');
        ?>
">
                  </FONT>
                </FORM>
              </TD>
<?php 
        if (has_capability("block/mrbs:forcebook", get_context_instance(CONTEXT_SYSTEM))) {
            echo '<TD CLASS="banner" BGCOLOR="#C0E0FF" ALIGN=CENTER>
                  <a href="edit_entry.php?force=TRUE">Forcibly book a room</a>
              </TD>';
        }
        ?>
              <TD CLASS="banner" BGCOLOR="#C0E0FF" ALIGN=CENTER>
<a target="popup" title="<?php 
        print_string('roomsearch', 'block_mrbs');
        ?>
" href="roomsearch.php" onclick="this.target='popup'; return openpopup('/blocks/mrbs/web/roomsearch.php', 'popup', 'toolbar=1,location=0,scrollbars,resizable,width=500,height=400', 0);"><?php 
        print_string('roomsearch', 'block_mrbs');
        ?>
开发者ID:rtsfc,项目名称:moodle-block_mrbs,代码行数:67,代码来源:functions.php


示例11: print_header


//.........这里部分代码省略.........
                   echo "<br />&nbsp;<a href=\"./logout.php?auto=0&amp;redirect_page_accueil=yes\" >".get_vocab('disconnect')."</a>";
               }
            }
            if ((getSettingValue("Url_portail_sso")!='') and (isset($_SESSION['est_authentifie_sso']))) {
                if ($disconnect_link)
                   echo "&nbsp;-&nbsp;";
                else
                   echo "<br />&nbsp;";
                echo('<a href="'.getSettingValue("Url_portail_sso").'">'.get_vocab("Portail_accueil").'</a>');
             }
             // Cas d'une authentification LASSO
             if ((getSettingValue('sso_statut') == 'lasso_visiteur') or (getSettingValue('sso_statut') == 'lasso_utilisateur')) {
               echo "<br />&nbsp;";
               if ($_SESSION['lasso_nameid'] == NULL)
                 echo "<a href=\"lasso/federate.php\">".get_vocab('lasso_federate_this_account')."</a>";
               else
                 echo "<a href=\"lasso/defederate.php\">".get_vocab('lasso_defederate_this_account')."</a>";
               }
          }
      ?>
     </td>
     <?php
	   if (((isset($area)) and ($area > 0)) or ((isset($room)) and ($room > 0)))
	      // si aucune ressource ni domaine ne sont définis, on affiche pas la colonne de sélection du jour
        $affiche_col_date = TRUE;
	   else
	      $affiche_col_date = FALSE;

     if (($page=="no_admin") and ($affiche_col_date)) {
     ?>
         <td class="banner"  align="center">
           <form id="myform" action="" method="get" onsubmit="return onsubmitForm();"><div>
           <?php
           genDateSelector("", $day, $month, $year,"");
    		   if ((isset($area)) and ($area > 0))
             echo "<input type=\"hidden\" id=\"area_\" name=\"area\" value=\"$area\" />";
    		   if ((isset($room)) and ($room > 0))
             echo "<input type=\"hidden\" id=\"room_\" name=\"room\" value=\"$room\" />";
           ?>
		   <input type="submit" value="<?php echo get_vocab("gototoday") ?>" onclick="document.pressed='a'" />
           <br />
           <br />
           <input type="submit" value="<?php echo get_vocab("allday") ?>" onclick="document.pressed='d'" />
           <input type="submit" value="<?php echo get_vocab("week") ?>" onclick="document.pressed='w'" />
           <input type="submit" value="<?php echo get_vocab("month") ?>" onclick="document.pressed='m'" />
           </div></form>
         </td>
         <?php
     }
     if ($type_session == "with_session") {
          if ((authGetUserLevel(getUserName(),-1,'area') >= 4) or (authGetUserLevel(getUserName(),-1,'user') == 1))  {
           echo "<td class=\"banner\" align=\"center\">";
           echo "<a href='admin_accueil.php?day=$day&amp;month=$month&amp;year=$year'>".get_vocab("admin")."</a>\n";
           if(authGetUserLevel(getUserName(),-1,'area') >= 6)  {
              echo "<br />\n<form action=\"admin_save_mysql.php\" method=\"get\"><div>\n
              <input type=\"hidden\" name=\"flag_connect\" value=\"yes\" />\n
              <input type=\"submit\" value=\"".get_vocab("submit_backup")."\" /></div>\n
              </form>";
              how_many_connected();
           }
           echo "\n</td>";
      }
     }
      ?>
          <td class="banner" align="center">
      <?php
开发者ID:rhertzog,项目名称:lcs,代码行数:67,代码来源:functions.inc.php


示例12: print_header

function print_header($day, $month, $year, $area)
{
    global $lang, $mrbs_company, $search_str, $nrbs_pageheader, $instance, $language_available, $session_selected_language, $header_links;
    global $userinfo, $testSystem;
    global $selected_room;
    if (!isset($selected_room)) {
        $selected_room = 0;
    }
    # If we dont know the right date then make it up
    if (!$day) {
        $day = date("d");
    }
    if (!$month) {
        $month = date("m");
    }
    if (!$year) {
        $year = date("Y");
    }
    if (empty($search_str)) {
        $search_str = "";
    }
    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">' . chr(10);
    echo '<html>' . chr(10);
    echo '<head>' . chr(10);
    echo '	<title>JM-booking</title>' . chr(10);
    include "style.inc.php";
    echo '	<link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" ' . 'rel="stylesheet" />' . chr(10);
    echo '	<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>' . chr(10) . chr(10);
    echo '	<script src="js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>' . chr(10) . chr(10);
    echo '	<script type="text/javascript" src="js/bsn.AutoSuggest_2.1.3_comp.js">' . '</script>' . chr(10);
    echo '</head>' . chr(10) . chr(10);
    echo '<body' . $testSystem['bodyAttrib'] . '>' . chr(10);
    if (!isset($GLOBALS["pview"]) || $GLOBALS["pview"] != 1) {
        echo '<table width="100%" class="hiddenprint">' . chr(10);
        if (strlen($nrbs_pageheader) > 0) {
            echo '<tr><td style="text-align:center;">' . $nrbs_pageheader . '</td></tr>' . chr(10);
        }
        echo '	<tr>' . chr(10) . '	<td bgcolor="#5B69A6">' . chr(10) . '		<table width="100%" border=0>' . chr(10) . '			<tr>' . chr(10) . '				<td class="banner" ' . 'style="text-align:center; font-size: 18px; font-weight: bold;">' . $mrbs_company . '</td>' . chr(10) . '				<td class="banner">' . chr(10) . '					<table>' . chr(10) . '						<tr>' . chr(10) . '							<td align="right">' . '<form action="day.php" method="get" style="margin: 0px; padding: 0px;">';
        //formHiddenFields();
        genDateSelector("", $day, $month, $year);
        if (!empty($area)) {
            echo '<input type="hidden" name="area" value=' . $area . '>';
        }
        echo '<input type="submit" value="' . _('View day') . '">' . iconHTML('calendar_view_day') . '</form>';
        echo '</td>' . chr(10);
        // Week
        echo '							<td align="right">' . '<form action="week.php" method="get" style="margin: 0px; padding: 0px;">';
        if (!empty($area)) {
            echo '<input type="hidden" name="area" value="' . $area . '">';
        }
        $thistime = mktime(0, 0, 0, $month, $day, $year);
        $thisweek = date('W', $thistime);
        $thisyear = date('Y', $thistime);
        echo '<select name="week">';
        for ($i = 1; $i <= 52; $i++) {
            echo '<option value="' . $i . '"';
            if ($i == $thisweek) {
                echo ' selected="selected"';
            }
            echo '>' . $i . '</option>';
        }
        echo '</select>';
        echo '<select name="year">';
        for ($i = $thisyear - 1; $i <= $thisyear + 10; $i++) {
            echo '<option value="' . $i . '"';
            if ($i == $thisyear) {
                echo ' selected="selected"';
            }
            echo '>' . $i . '</option>';
        }
        echo '</select>';
        echo '<input type="submit" value="' . _('View week') . '">';
        echo iconHTML('calendar_view_week');
        echo '</form>' . '</td>' . chr(10) . '						</tr>' . chr(10);
        // Month
        echo '						<tr>' . chr(10) . '							<td align="right">' . '<form action="month.php" method="get" style="margin: 0px; padding: 0px;">';
        echo '<input type="hidden" name="area" value="' . $area . '">';
        echo '<input type="hidden" name="day" value="1">';
        $thistime = mktime(0, 0, 0, $month, $day, $year);
        $thismonth = date('n', $thistime);
        $thisyear = date('Y', $thistime);
        echo '<select name="month">';
        for ($i = 1; $i <= 12; $i++) {
            $thismonthtime = mktime(0, 0, 0, $i, 1, $year);
            echo '<option value="' . $i . '"';
            if ($i == $thismonth) {
                echo ' selected="selected"';
            }
            echo '>' . _(date("M", $thismonthtime)) . '</option>';
        }
        echo '</select>';
        echo '<select name="year">';
        for ($i = $thisyear - 1; $i <= $thisyear + 10; $i++) {
            echo '<option value="' . $i . '"';
            if ($i == $thisyear) {
                echo ' selected="selected"';
            }
            echo '>' . $i . '</option>';
        }
//.........这里部分代码省略.........
开发者ID:HNygard,项目名称:JM-booking,代码行数:101,代码来源:functions.inc.php


示例13: get_vocab

    echo get_vocab("search_criteria");
    ?>
</legend>
      
        <div id="div_report_start">
          <?php 
    echo "<label>" . get_vocab("report_start") . ":</label>\n";
    genDateSelector("from_", $from_day, $from_month, $from_year);
    ?>
        
        </div>
      
        <div id="div_report_end">
          <?php 
    echo "<label>" . get_vocab("report_end") . ":</label>\n";
    genDateSelector("to_", $to_day, $to_month, $to_year);
    ?>
        </div>
      
        <div id="div_areamatch">                  
          <label for="areamatch"><?php 
    echo get_vocab("match_area");
    ?>
:</label>
          <input type="text" id="areamatch" name="areamatch" value="<?php 
    echo htmlspecialchars($areamatch);
    ?>
">
        </div>   
      
        <div id="div_roommatch">
开发者ID:koroder,项目名称:Web-portal-for-academic-institution,代码行数:31,代码来源:report.php


示例14: print_header

function print_header($day, $month, $year, $area)
{
    global $search_str, $nrbs_pageheader, $testSystem, $login;
    debugAddToLog(__FILE__, __LINE__, 'Start of glob_inc.inc.php');
    # If we dont know the right date then make it up
    if (!$day) {
        $day = date('d');
    }
    if (!$month) {
        $month = date('m');
    }
    if (!$year) {
        $year = date('Y');
    }
    if (empty($search_str)) {
        $search_str = '';
    }
    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">' . chr(10);
    echo '<html>' . chr(10);
    echo '<head>' . chr(10);
    echo '	<title>JM-booking</title>' . chr(10);
    echo '	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">' . chr(10);
    echo '  <link rel="SHORTCUT ICON" HREF="./favicon.ico">' . chr(10);
    echo '	<link rel="stylesheet" type="text/css" href="css/jm-booking.css" />' . chr(10);
    echo '	<link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" />' . chr(10);
    echo '	<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>' . chr(10) . chr(10);
    echo '	<script src="js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>' . chr(10) . chr(10);
    echo '	<script type="text/javascript" src="js/bsn.AutoSuggest_2.1.3_comp.js">' . '</script>' . chr(10);
    echo '</head>' . chr(10) . chr(10);
    echo '<body' . $testSystem['bodyAttrib'] . '>' . chr(10);
    echo '<table width="100%" class="hiddenprint">' . chr(10);
    if (strlen($nrbs_pageheader) > 0) {
        echo '<tr><td style="text-align:center;">' . $nrbs_pageheader . '</td></tr>' . chr(10);
    }
    echo '	<tr>' . chr(10) . '	<td bgcolor="#5B69A6">' . chr(10) . '		<table width="100%" border=0>' . chr(10) . '			<tr>' . chr(10) . '				<td class="banner' . $testSystem['bannerExtraClass'] . '" ' . 'style="text-align:center; font-size: 18px; font-weight: bold;">' . '<a href="./" class="lightbluebg">Booking for<br>J&aelig;rmuseet</a>' . '</td>' . chr(10) . '				<td class="banner' . $testSystem['bannerExtraClass'] . '">' . chr(10) . '					<table>' . chr(10) . '						<tr>' . chr(10) . '							<td align="right">' . '<form action="day.php" method="get" style="margin: 0px; padding: 0px;">';
    genDateSelector("", $day, $month, $year);
    if (!empty($area)) {
        echo '<input type="hidden" name="area" value=' . $area . '>';
    }
    echo '<input type="submit" value="' . __('View day') . '">' . iconHTML('calendar_view_day') . '</form>';
    echo '</td>' . chr(10);
    // Week
    echo '							<td align="right">' . '<form action="week.php" method="get" style="margin: 0px; padding: 0px;">';
    if (!empty($area)) {
        echo '<input type="hidden" name="area" value="' . $area . '">';
    }
    $thistime = mktime(0, 0, 0, $month, $day, $year);
    $thisweek = date('W', $thistime);
    $thisyear = date('Y', $thistime);
    echo '<select name="week">';
    for ($i = 1; $i <= 52; $i++) {
        echo '<option value="' . $i . '"';
        if ($i == $thisweek) {
            echo ' selected="selected"';
        }
        echo '>' . $i . '</option>';
    }
    echo '</select>';
    echo '<select name="year">';
    for ($i = $thisyear - 1; $i <= $thisyear + 10; $i++) {
        echo '<option value="' . $i . '"';
        if ($i == $thisyear) {
            echo ' selected="selected"';
        }
        echo '>' . $i . '</option>';
    }
    echo '</select>';
    echo '<input type="submit" value="' . __('View week') . '">';
    echo iconHTML('calendar_view_week');
    echo '</form>' . '</td>' . chr(10) . '						</tr>' . chr(10);
    // Month
    echo '						<tr>' . chr(10) . '							<td align="right">' . '<form action="month.php" method="get" style="margin: 0px; padding: 0px;">';
    echo '<input type="hidden" name="area" value="' . $area . '">';
    echo '<input type="hidden" name="day" value="1">';
    $thistime = mktime(0, 0, 0, $month, $day, $year);
    $thismonth = date('n', $thistime);
    $thisyear = date('Y', $thistime);
    echo '<select name="month">';
    for ($i = 1; $i <= 12; $i++) {
        $thismonthtime = mktime(0, 0, 0, $i, 1, $year);
        echo '<option value="' . $i . '"';
        if ($i == $thismonth) {
            echo ' selected="selected"';
        }
        echo '>' . __(date("M", $thismonthtime)) . '</option>';
    }
    echo '</select>';
    echo '<select name="year">';
    for ($i = $thisyear - 1; $i <= $thisyear + 10; $i++) {
        echo '<option value="' . $i . '"';
        if ($i == $thisyear) {
            echo ' selected="selected"';
        }
        echo '>' . $i . '</option>';
    }
    echo '</select>';
    echo '<input type="submit" value="' . _h('View month') . '">' . iconHTML('calendar_view_month');
    echo '</form></td>' . chr(10);
    // Find using entry_id
//.........这里部分代码省略.........
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:101,代码来源:functions.inc.php


示例15: mysqli_query

$test = mysqli_query($GLOBALS["mysqli"], $sql);
if (mysqli_num_rows($test) > 0) {
    echo "<p style='margin-bottom:1em;'>Un ou des professeurs ont paramétré l'ordre d'affichage de leurs enseignements ou le non affichage de certains enseignements en page d'accueil simplifiée.<br />\n\tLes nouveaux enseignements créés avec l'année qui va commencer ne devraient pas avoir les mêmes identifiants (<em>id_groupe</em>), mais par précaution, ces préférences seront supprimées lors de la validation de ce formulaire.</p>";
}
echo "<input type='hidden' name='is_posted' value='1' />\n";
echo "<input type='submit' name='Valider' value='Valider' />\n";
echo "</fieldset>\n";
echo "</form>\n";
echo "<br />\n";
$lday = strftime("%d", getSettingValue("end_bookings"));
$lmonth = strftime("%m", getSettingValue("end_bookings"));
$lyear = date('Y') - 1;
echo "<form action='" . $_SERVER['PHP_SELF'] . "' method='post' name='form1' style='width: 100%;'>\n\t<fieldset style='border: 1px solid grey; background-image: url(\"../images/background/opacite50.png\"); '>\n\t\t" . add_token_field() . "\n\t\t<p>\n\t\t\t<em>Optionnel&nbsp;:</em> Nettoyer les tables 'log' et 'tentative_intrusion'.<br />\n\t\t\tCette table contient les dates de connexion/déconnexion des utilisateurs.<br />\n\t\t\tConserver ces informations au-delà d'une année n'a pas vraiment d'intérêt.<br >\n\t\t\tAu besoin, si vous avez pris soin d'effectuer une sauvegarde de la base, les informations y sont.\n\t\t</p>\n\t\t<p><input type='checkbox' id='clean_log' name='clean_log' value='y' checked /><label for='clean_log'>Nettoyer les logs de connexion antérieurs au</label>&nbsp;:&nbsp;";
genDateSelector("log_", $lday, $lmonth, $lyear, "more_years");
echo "<br />\n\t\t\t<input type='checkbox' id='clean_tentative_intrusion' name='clean_tentative_intrusion' value='y' checked /><label for='clean_tentative_intrusion'>Nettoyer les logs de tentatives d'intrusion antérieurs au</label>&nbsp;:&nbsp;";
genDateSelector("ti_", $lday, $lmonth, $lyear, "more_years");
echo "</p>\n\t\t<input type='hidden' name='is_posted' value='2' />\n\t\t<input type='submit' name='Valider' value='Valider' />\n\n\t\t<p><em>NOTE&nbsp;:</em> La CNIL recommande de ne pas conserver plus de 6 mois de journaux de connexion.</p>\n\t</fieldset>\n</form>\n";
echo "<p><br /></p>\n";
echo "<p style='text-indent:-11em; margin-left:11em;'><em>Optionnel également&nbsp;:</em> Vous pouvez vider les absences de l'année passée, l'emploi du temps, les incidents/sanctions du module discipline en consultant la page de <a href='../utilitaires/clean_tables.php#nettoyage_par_le_vide'>Nettoyage de la base</a>.</p>\n";
echo "<p><br /></p>\n";
echo "<a name='svg_ext'></a>";
echo "<p><em>NOTES&nbsp;:</em></p>\n";
echo "<ul>\n";
echo "<li>\n";
echo "<p>La sauvegarde sur périphérique externe permet de remettre en place un GEPI si jamais votre GEPI en ligne subit des dégats (<em>crash du disque dur hébergeant votre GEPI, incendie du local serveur,...</em>).<br />Vous n'aurez normalement jamais besoin de ces sauvegardes, mais mieux vaut prendre des précautions.</p>\n";
echo "</li>\n";
echo "<li>\n";
echo "<p>Lors de l'initialisation de l'année, la date à laquelle une période a été close pour telle classe sera réinitialisée.<br />Ce n'était pas le cas pour une initialisation faite avant le 17/09/2012.<br />Pour forcer cette réinitialisation, <a href='" . $_SERVER['PHP_SELF'] . "?reinit_dates_verrouillage_periode=y" . add_token_in_url() . "'>cliquer ici</a>.<br />Cette date de verrouillage présente un intérêt pour l'accès des responsables et élèves aux appréciations des bulletins dans le cas où vous avez choisi un accès automatique N jours après la clôture de la période.</p>\n";
if (getSettingValue("active_module_absence") == "2") {
    echo "<p>Ces dates de verrouillage, indiquant à quelle date la période de notes a été close, n'ont rien à voir avec les dates déclarées pour les fins de périodes d'absences dans la page de Verrouillage.<br />\n\tLes dates de fin de période affichées dans la page de Verrouillage concernent la liste des élèves qui seront présentés dans vos groupes/classes pour la saisie des absences (<em>tel élève arrivé au 2è trimestre ou ayant changé de classe,... doit ou ne doit pas apparaître sur telle période dans tel groupe/classe</em>).</p>\n";
}
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:changement_d_annee.php


示例16: print_user_header_mrbs

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP genRandomString函数代码示例发布时间:2022-05-15
下一篇:
PHP genAjaxyPopupJS函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap