Source for file display.php
Documentation is available at display.php
* @package linea21.modules
* @subpackage workshoprep
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
* 'Workshoprep' (as Workshop Report) module is used by 'Workshop' modules
include_once(themePath('../workshoprep/'. SQL. '.inc.php'));
if(count($data)!= 1) exit;
$link_workshop= array('rub'=> $GLOBALS['links'][U_L]['workgroup']['linkvalue'],'id'=> $data[0]['workrep_workshop_id'], 'name' => $data[0]['workshop_denomination']);
$link_self= array('rub'=> $GLOBALS['links'][U_L]['report']['linkvalue'],'id' => $work_id);
$workrep_title= formatText($data[0]['workrep_title'], '2HTML');
$workrep_resume= formatText($data[0]['workrep_resume'], '2HTML');
$workshop_denomination= formatText($data[0]['workshop_denomination'], '2HTML');
$workrep_posted_on= formatText($data[0]['workrep_published_date_display'], '2HTML');
$workrep_modify_on= formatText($data[0]['workrep_last_modify_display'], '2HTML');
$workrep_statut= $data[0]['workrep_statut'];
$content .= '<div id="anchor-comments">'. END_LINE;
if($workrep_statut == 'P') $content .= getPostCommentAnchor(array('module'=> 'report', 'module_id'=> $work_id));
$content.= '<h1>'. $workrep_title. '</h1>'. END_LINE;
$content.= '<p class="published_by">'. END_LINE;
$content.= _t('statut','published_on'). ' '. $workrep_posted_on. ' - ';
$content.= _t('workshoprep','workshop_product'). ' : <a href="'. HrefMaker($link_workshop). '" title="'. formatText($GLOBALS['links'][U_L]['workgroup']['desc']. ' ('. $workshop_denomination, '2ATT'). ')">'. $workshop_denomination. '</a>';
if($workrep_statut== 'PA') {
$content.= ' ('. _t('statut','archived_on'). ' '. $workrep_modify_on. ')';
$content.= '<div class="chapo">'. $workrep_resume. '</div>';
$content = '<div class="parts">'. END_LINE;
$content.= '<h2>'. _t('workshoprep','name2'). '</h2>'. END_LINE;
for($i= 0; $i< count($data); $i++ ) {
$link_parts= array('rub'=> $GLOBALS['links'][U_L]['report-part']['linkvalue'],'id'=> $data[$i]['workrepcon_id'],'parentid'=> $work_id, 'name' => $data[$i]['workrepcon_title']);
$workrepcon_title= formatText($data[$i]['workrepcon_title'], '2HTML');
//$content.='<span class="num">'.($i+1).' - </span>'.END_LINE;
$content.= '<a href="'. HrefMaker($link_parts). '">';
$content.= $workrepcon_title;
$content.= '<p class="info">'. _t('workshoprep','no_part'). '</p>';
$content = '<div class="links">'. END_LINE;
$content.= '<h2>'. _t('workshoprep','link_res'). '</h2>'. END_LINE;
for($i= 0; $i< count($data); $i++ ) {
$linkres_mask= formatText($data[$i]['linkres_mask'], '2HTML');
$linkres_text= $data[$i]['linkres_text'];
$content.= '<a href="'. $linkres_text. '" class="out">';
$content.= '<p class="info">'. _t('workshoprep','no_link'). '</p>';
$content = '<div class="biblio">'. END_LINE;
$content.= '<h2>'. _t('workshoprep','biblio_res'). '</h2>'. END_LINE;
for($i= 0; $i< count($data); $i++ ) {
$bibliores_author= formatText($data[$i]['bibliores_author'], '2HTML');
$bibliores_title= formatText($data[$i]['bibliores_title'], '2HTML');
$bibliores_sub_title= empty($data[$i]['bibliores_sub_title']) ? '' : ', '. formatText($data[$i]['bibliores_sub_title'], '2HTML');
$bibliores_editor= empty($data[$i]['bibliores_editor']) ? '' : ' - '. formatText($data[$i]['bibliores_editor'], '2HTML');
$bibliores_date= empty($data[$i]['bibliores_date']) ? '' : ', '. formatText($data[$i]['bibliores_date'], '2HTML');
$content.= $bibliores_author. ' - <span class="biblio_title">'. $bibliores_title;
$content.= $bibliores_sub_title. '</span>'. $bibliores_editor. $bibliores_date;
$content.= '<p class="info">'. _t('workshoprep','no_biblio'). '</p>';
|