Source for file list_cal.php
Documentation is available at list_cal.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
if (isset ($_POST['id'])) $id = $_POST['id'];
if (isset ($_GET['id'])) $id = $_GET['id'];
$result = $sql_object -> DBSelect($req_det);
if (count($result) > 1) exit();
$link_det = $rub_link . "&todo=det&id=";
$link_sup = $rub_link . "&todo=sup&id=";
$link_mod = $rub_link . "&todo=mod&id=";
$link_det_u = "index.php?rub=user&todo=det&id=";
$link_sup_u = $rub_link . "&todo=sup_u&id=";
$link_add_cal = $rub_link . "&todo=add_cal&id=";
$link_mod_cal = $rub_link . "&todo=mod_cal&id=";
$link_sup_cal = $rub_link . "&todo=sup_cal&id=";
$link_list_cal = $rub_link . "&todo=list_cal&id=";
$workshop_denomination = formatText($result[0]['workshop_denomination'], '2HTML');
$workshop_resume = formatText($result[0]['workshop_resume'], '2HTML');
if (empty($result[0]['workshop_comment'])) $workshop_comment = _t('divers','none');
else $workshop_comment = formatText($result[0]['workshop_comment'], '2HTML');
$theme_denomination = formatText($result[0]['theme_name'], '2HTML');
$level_denomination = formatText($result[0]['level_name'], '2HTML');
$display_date_crea = $result[0]['workshop_date_crea_display'];
$display_last_modify = $result[0]['workshop_last_modify_display'];
$result_cal = $sql_object -> DBSelect($req_list_cal);
for($i = 0; $i < count($result_cal); $i++ ) {
$datetask= $result_cal[$i]['workcal_task_date_display'];
$datetask2 = mktime (0, 0, 0, $mois, $jour, $annee);
if($result_cal[$i]['workcal_workshop_id'] == 999999999) {
$common_task = '<span class="task_common">' . _t('workshop', 'task_common') . '</span>';
if (($datetask2+ $inter) > $datenow){
$reca_task .= "\n<div class=\"task\">\n";
$reca_task .= "<div class=\"task_user_profile\">\n";
$reca_task .= '<img src="'. THEME_ADMIN_PATH. '/images/task_calendar.png" alt="'. formatText($result_cal[$i]['workcal_task_date_display'], '2HTML'). '" class="user_profile"/>';
$reca_task .= "\n<span class=\"auth_task\">" . $result_cal[$i]['workcal_task_date_display'] . "</span>\n";
$reca_task .= "<a href=\"" . $link_det_u. $result_cal[$i]['workcal_posted_by']. "\" title=\"" . _t('workshop','com_author') . "\" class=\"task_date\">". formatText($result_cal[$i]['user_login'], '2HTML') . "</a>\n";
else $reca_task .= "<span class=\"task_date\">". formatText($result_cal[$i]['user_login'], '2HTML') . "</span>\n";
$reca_task .= "<div class=\"task_content\">\n";
$reca_task .= "<a href=\"" . $link_sup_cal . $id . "&task_id=". $result_cal[$i]['workcal_id']. "\" title=\"" . _t('workshop','sup_cal') . "\" class=\"ico_sup2\"></a>";
$reca_task .= "<a href=\"" . $link_mod_cal . $id . "&task_id=". $result_cal[$i]['workcal_id']. "\" title=\"" . _t('workshop','mod_cal') . "\" class=\"ico_mod2\"></a>";
$reca_task .= $common_task;
$reca_task .= "<h3 class=\"task_title\">" . formatText($result_cal[$i]['workcal_task'], '2HTML') . "</h3>\n";
$reca_task .= "</div></div>\n";
if(!$out_first) $reca_task .= "<hr class=\"task_separator\" />\n";
$reca_task .= "\n<div class=\"task_out\">\n";
$reca_task .= "<div class=\"task_user_profile\">\n";
$reca_task .= '<img src="'. THEME_ADMIN_PATH. '/images/task_calendar_out.png" alt="'. formatText($result_cal[$i]['workcal_task_date_display'], '2HTML'). '" class="user_profile"/>';
$reca_task .= "\n<span class=\"auth_task\">" . $result_cal[$i]['workcal_task_date_display'] . "</span>\n";
$reca_task .= "<a href=\"" . $link_det_u. $result_cal[$i]['workcal_posted_by']. "\" title=\"" . _t('workshop','com_author') . "\" class=\"task_date\">". formatText($result_cal[$i]['user_login'], '2HTML') . "</a>\n";
else $reca_task .= "<span class=\"task_date\">". formatText($result_cal[$i]['user_login'], '2HTML') . "</span>\n";
$reca_task .= "<div class=\"task_content\">\n";
$reca_task .= "<a href=\"" . $link_sup_cal . $id . "&task_id=". $result_cal[$i]['workcal_id']. "\" title=\"" . _t('workshop','sup_cal') . "\" class=\"ico_sup2\"></a>";
$reca_task .= "<a href=\"" . $link_mod_cal . $id . "&task_id=". $result_cal[$i]['workcal_id']. "\" title=\"" . _t('workshop','mod_cal') . "\" class=\"ico_mod2\"></a>";
$reca_task .= $common_task;
$reca_task .= "<h3 class=\"task_title\">" . formatText($result_cal[$i]['workcal_task'], '2HTML') . "</h3>\n";
$reca_task .= "</div></div>\n";
$reca_task= "<div class=\"info\">". _t('workshop','no_cal'). "</div>";
<li><a href="index.php" class="chemin_home"> <?php echo _t('way','home'); ?></a></li>
<li><a href=" <?php echo $rub_link; ?>" id="chemin_ <?php echo $rub; ?>"
class="chemin_rub"> <?php echo _t('menu','workshop'); ?></a></li>
<li><span> <?php echo formatnavTitle(_t('workshop','list_cal') . " : " . $workshop_denomination); ?></span></li>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer"> <?php
include_once($dir . "/menurub.php");
<div id="content"> <?php afflinkbar($todo,$id, $lang); ?> <?php echo "<h2>" . _t('workshop','list_cal') . " : " . $workshop_denomination . "</h2>\n";
echo "<a href=\"". $link_add_cal. $id. "\" title=\"". _t('workshop','add_cal'). "\" class=\"ico_add2\"></a><br class=\"brendstep\" />";?>
<?php echo $reca_task; ?> <br class="brendstep" />
<?php include_once($dir . "/help.php");?></div>
|