Source for file display.php
Documentation is available at display.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
* 'Content' module is used by 'Publication' and 'Workshop' modules
include_once(themePath('../contents/'. SQL. '.inc.php'));
if(count($data)!= 1) exit;
$workrepcon_title= formatText($data[0]['workrepcon_title'], '2HTML');
$workrepcon_date_crea_display= formatText($data[0]['workrepcon_date_crea_display'], '2HTML');
$link_self = array('rub' => $GLOBALS['links'][U_L]['report-part']['linkvalue'], 'id' => $work_id, 'parentid' => $_REQUEST['parentid']);
$content.= '<h1>'. $workrepcon_title. '</h1>'. END_LINE;
$content.= '<p class="permalink">'. END_LINE;
$content.= '<div class="body">'. $workrepcon_body. '</div>';
$link_self = array('rub' => $GLOBALS['links'][U_L]['publication-part']['linkvalue'], 'id' => $publi_id, 'parentid' => $_REQUEST['parentid']);
if(count($data)!= 1) exit;
$title= formatText($data[0]['publicon_title'], '2HTML');
$publicon_date_crea_display= formatText($data[0]['publicon_date_crea_display'], '2HTML');
$content.= '<h1>'. $title. '</h1>'. END_LINE;
$content.= '<p class="permalink">'. END_LINE;
$content.= '<div class="body">'. $body. '</div>';
if(count($data)!= 1) exit;
$link_workshop= array('rub'=> $GLOBALS['links'][U_L]['workgroup']['linkvalue'],'id'=> $data[0]['workshop_id'], 'name' => $data[0]['workshop_denomination']);
$link_workshoprep= array('rub'=> $GLOBALS['links'][U_L]['report']['linkvalue'],'id'=> $data[0]['workrep_id'], 'name' => $data[0]['workrep_title']);
$workrep_title= formatText($data[0]['workrep_title'], '2HTML');
$workshop_denomination= formatText($data[0]['workshop_denomination'], '2HTML');
$content.= '<p id="parentHeader">'. END_LINE;
$content.= _t('workshoprep','name'). ' : ';
$content.= '<a href="'. HrefMaker($link_workshoprep). '" title="'. $GLOBALS['links'][U_L]['report']['desc']. ' ('. $workrep_title. ')">'. $workrep_title. '</a>';
$content.= '<span class="workshopname">';
$content.= '<a href="'. HrefMaker($link_workshop). '" title="'. _t('workshoprep','workshop_product'). ' : '. formatText($workshop_denomination, '2ATT'). '">'. $workshop_denomination. '</a>';
if(count($data)!= 1) exit;
$link_publi= array('rub'=> $GLOBALS['links'][U_L]['publication']['linkvalue'],'id'=> $data[0]['publi_id'], 'name'=> $data[0]['publi_title']);
$publi_title= formatText($data[0]['publi_title'], '2HTML');
$content.= '<p id="parentHeader">'. END_LINE;
$content.= ''. _t('publication','name'). ' : ';
$content.= '<a href="'. HrefMaker($link_publi). '" title="'. $GLOBALS['links'][U_L]['publication']['desc']. ' ('. formatText($publi_title, '2ATT'). ')">'. $publi_title. '</a>';
* $parentid -> id du dossier
* $format 'NUM' || 'TEXT'
$content.= '<div id="linkinparts">';
//$content.=_t('publication','goto').' : '.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'=> $parentid, 'name'=> $data[$i]['workrepcon_title']);
$workrepcon_title= formatText($data[$i]['workrepcon_title'], '2HTML');
//$content.='<span class="num">'.($i +1).' - </span>'.END_LINE;
if($id!= $data[$i]['workrepcon_id']) {
$content.= '<a href="'. HrefMaker($link_parts). '" title="'. formatText($workrepcon_title, '2ATT'). '">';
$content.= $workrepcon_title;
$content.= $workrepcon_title;
for($i= 0; $i< count($data); $i++ )
$link_parts= array('rub'=> $GLOBALS['links'][U_L]['report-part']['linkvalue'],'id'=> $data[$i]['workrepcon_id'],'parentid'=> $parentid, 'name'=> $data[$i]['workrepcon_title']);
$workrepcon_title= formatText($data[$i]['workrepcon_title'], '2HTML');
if($id!= $data[$i]['workrepcon_id']) {
$content.= '<a href="'. HrefMaker($link_parts). '" title="'. formatText($workrepcon_title, '2ATT'). '">';
* $parentid -> id du dossier
* $format 'NUM' || 'TEXT'
$content.= '<div id="linkinparts">'. END_LINE;
for($i= 0; $i< count($data); $i++ )
$link_parts= array('rub'=> $GLOBALS['links'][U_L]['publication-part']['linkvalue'],'id'=> $data[$i]['publicon_id'],'parentid'=> $parentid, 'name'=> $data[$i]['publicon_title']);
$publicon_title= formatText($data[$i]['publicon_title'], '2HTML');
//$content.='<span class="num">'.($i +1).' - </span>'.END_LINE;
if($id!= $data[$i]['publicon_id']) {
$content.= '<a href="'. HrefMaker($link_parts). '" title="'. formatText($publicon_title, '2ATT'). '">';
$content.= $publicon_title;
$content.= $publicon_title;
$content.= ''. _t('publication','part_number2'). ' : '. END_LINE;
for($i= 0; $i< count($data); $i++ )
$link_parts= array('rub'=> $GLOBALS['links'][U_L]['publication-part']['linkvalue'],'id'=> $data[$i]['$publicon_id'],'parentid'=> $parentid, 'name'=> $data[$i]['publicon_title']);
$publicon_title= formatText($data[$i]['$publicon_title'], '2HTML');
if($id!= $data[$i]['workrepcon_id']) {
$content.= '<a href="'. HrefMaker($link_parts). '" title="'. formatText($publicon_title, '2ATT'). '">';
$link_rub= $GLOBALS['links'][U_L]['report-part']['linkvalue'];
$r = $GLOBALS['sql_object']->DBSelect($q);
$range = $r[0]['item_range'];
$published_date = $r[0]['item_date_crea'];
$link_rub= $GLOBALS['links'][U_L]['publication-part']['linkvalue'];
$r = $GLOBALS['sql_object']->DBSelect($q);
$range = $r[0]['item_range'];
$published_date = $r[0]['item_date_crea'];
$title= _t('publication','next_part');
if($direction== 'PREVIOUS') {
$title= _t('publication','prev_part');
$data= $GLOBALS['sql_object'] -> DBSelect($q);
if($data== false || count($data)!= 1) $content = '';
$link_part= array('rub'=> $link_rub,'id'=> $data[0]['part_id'], 'parentid' => $parentid, 'name'=> $data[0]['part_title']);
$part_complete_title= formatText($data[0]['part_title'], '2HTML');
$content = '<div class="'. $class. '">'. END_LINE;
$content.= '<a href="'. HrefMaker($link_part). '" title="'. formatText($title. ' : '. $part_complete_title, '2ATT'). '">'. $part_title. '</a>';
|