Source for file det.php
Documentation is available at det.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");
//////////// Check Droits utilisateur ////////////
if (isset ($_GET['id'])) $id = $_GET['id'];
if (isset ($_POST['id'])) $id = $_POST['id'];
$result = $sql_object->DBSelect($req_det);
if ($result == 0 || count($result) != 1) exit;
$data = $sql_object->DBSelect($query);
if($data != 0 || count($data)!= 1) {
$sdi_list= '<ul style="padding:0">';
foreach ($data as &$value) {
$sdi_list.= '<li><a href="index.php?rub=sdi&todo=det&id='. $value['sdii_id']. '">'. formatText($value['sdii_name'], '2HTML'). '</a></li>'. END_LINE;
} else $sdi_list= _t('divers','none');
$display_name = formatText($result[0]['project_name'], '2HTML');
$display_priority = formatText($result[0]['project_priority'], '2HTML');
if(!is_numeric($result[0]['project_parent_id']) || $result[0]['project_parent_id']== 0) {
$display_parent = _t('divers','none');
$display_parent = '<a href="'. $rub_link . '&todo=det&id='. $result[0]['project_parent_id']. '" title="'. _t('project','det'). ' '. formatText($result[0]['parent_name'], '2ALT'). '">'. formatText($result[0]['parent_name'], '2HTML'). '</a>';
$display_theme = formatText($result[0]['theme_name'], '2HTML');
$display_workshop = formatText($result[0]['workshop_denomination'], '2HTML');
$display_scale = formatText($result[0]['scale_denomination'], '2HTML');
$display_user = formatText($result[0]['user_login'], '2HTML');
$display_begin_date = empty_nc($result[0]['project_begin_date_display']);
$display_estimated_date = empty_nc($result[0]['project_estimated_date_display']);
$display_end_date = empty_nc($result[0]['project_end_date_display']);
$display_progression = $result[0]['project_completed'];
$display_date_crea = $result[0]['project_date_crea_display'];
$display_last_modify = $result[0]['project_last_modify_display'];
$project_posted_by = $result[0]['project_posted_by'];
$project_scale_id = $result[0]['project_scale_id'];
$project_theme_id = $result[0]['project_theme_id'];
$project_workshop_id = $result[0]['project_workshop_id'];
if ($result[0]['project_published_date_display'] == '01-01-0001') $display_published_date = _t('statut','draft');
else $display_published_date = $result[0]['project_published_date_display'];
$link_sup = $rub_link . "&todo=sup&id=";
$link_mod = $rub_link . "&todo=mod&id=";
<li><a href="index.php" class="chemin_home"> <?php echo _t('way','home'); ?>
<li><a href=" <?php echo $rub_link; ?>" id="chemin_ <?php echo $rub; ?>"
class="chemin_rub"> <?php echo _t('menu','project'); ?> </a></li>
<li><span> <?php echo formatNavTitle(_t('project','det') . " : " . $display_name); ?></span>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer"> <?php
include_once($dir . "/menurub.php");
echo "\t<a href=\"" . $link_sup . $id . "\" class=\"ico_sup2\" title=\"" . _t('project','sup') . "\"></a>\n";
echo "\t<a href=\"" . $link_mod . $id . "\" class=\"ico_mod2\" title=\"" . _t('project','mod') . "\"></a>\n";
echo "<dl class=\"dl3\">\n";
echo "<dt>" . _t('project','name') . "</dt>\n";
echo "<dd>" . $display_name . "</dd>\n";
echo "<dt>" . _t('project','parent') . "</dt>\n";
echo "<dd>" . $display_parent . "</dd>\n";
echo "<dt>" . _t('project','description') . "</dt>\n";
echo "<dd>" . $display_description . "</dd>\n";
echo "<dt>" . _t('project','body') . " :</dt>\n";
echo "<dd>" . $display_body . "</dd>\n";
echo "<dt>" . _t('project','begin_date') . " :</dt>\n";
echo "<dd>" . $display_begin_date . "</dd>\n";
echo "<dt>" . _t('project','estimated_date') . " :</dt>\n";
echo "<dd>" . $display_estimated_date . "</dd>\n";
echo "<dt>" . _t('project','end_date') . " :</dt>\n";
echo "<dd>" . $display_end_date . "</dd>\n";
echo "<dt>". _t('project','progression'). " :</dt>\n";
echo "<dd>" . getProgressbar($display_progression, 100, '%') . "</dd>\n";
echo "<dt>" . _t('project','priority') . "</dt>\n";
echo "<dd>" . $display_priority . "</dd>\n";
echo "<dt>" . _t('project','theme') . "</dt>\n";
if($project_theme_id != 0) {
echo '<dd><a href="?rub=theme&todo=det&id='. $project_theme_id. '">' . $display_theme . '</a></dd>'. END_LINE;
echo "<dd>" . empty_none($display_theme) . "</dd>\n";
echo "<dt>" . _t('project','workshop') . "</dt>\n";
if($project_workshop_id != 0) {
echo '<dd><a href="?rub=workshop&todo=det&id='. $project_workshop_id. '">' . $display_workshop . '</a></dd>'. END_LINE;
echo "<dd>" . empty_none($display_workshop) . "</dd>\n";
echo "<dt>" . _t('project','scale') . " :</dt>\n";
echo '<dd><a href="?rub=scale&todo=det&id='. $project_scale_id. '">' . $display_scale . '</a></dd>'. END_LINE;
echo "<dt>". _t('project','sdi'). " :</dt>\n";
echo "<dd>". $sdi_list. "</dd>\n";
echo "<dt>" . _t('project','author') . " :</dt>\n";
echo '<dd><a href="?rub=user&todo=det&id='. $project_posted_by. '">' . $display_user . '</a></dd>'. END_LINE;
echo "<dt>" . _t('statut','published_on') . "</dt>\n";
echo "<dd>" . $display_published_date . "</dd>\n";
echo "<dt>" . _t('divers','date_crea') . "</dt>\n";
echo "<dd>" . $display_date_crea . "</dd>\n";
echo "<dt>" . _t('divers','last_modify') . "</dt>\n";
echo "<dd>" . $display_last_modify . "</dd>\n";
echo "<dt>" . _t('divers','statut') . "</dt>\n";
echo "<dd>" . $display_statut . "</dd>\n";
<?php include_once($dir . "/help.php");
|