mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
add twig service
This commit is contained in:
@@ -148,54 +148,54 @@ $page = $result->get_current_page();
|
|||||||
|
|
||||||
$ACL = $user->ACL();
|
$ACL = $user->ACL();
|
||||||
|
|
||||||
if ($registry->get('GV_thesaurus'))
|
if ($registry->get('GV_thesaurus'))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<script language="javascr<?php ?>ipt">
|
<script language="javascr<?php ?>ipt">
|
||||||
document.getElementById('proposals').innerHTML = "<div style='height:0px; overflow:hidden'>\n<?php echo p4string::MakeString($qp['main']->proposals["QRY"], "JS") ?>\n</div>\n<?php echo p4string::MakeString(proposalsToHTML($qp['main']->proposals), "JS") ?>";
|
document.getElementById('proposals').innerHTML = "<div style='height:0px; overflow:hidden'>\n<?php echo p4string::MakeString($qp['main']->proposals["QRY"], "JS") ?>\n</div>\n<?php echo p4string::MakeString(proposalsToHTML($qp['main']->proposals), "JS") ?>";
|
||||||
<?php
|
<?php
|
||||||
if ($registry->get('GV_clientAutoShowProposals'))
|
if ($registry->get('GV_clientAutoShowProposals'))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
if("<?php echo p4string::MakeString(proposalsToHTML($qp['main']->proposals), "JS") ?>" != "<div class=\"proposals\"></div>")
|
if("<?php echo p4string::MakeString(proposalsToHTML($qp['main']->proposals), "JS") ?>" != "<div class=\"proposals\"></div>")
|
||||||
chgOng(4);
|
chgOng(4);
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$history = queries::history();
|
$history = queries::history();
|
||||||
|
|
||||||
echo '<script language="javascript" type="text/javascript">$("#history").empty().append("' . str_replace('"', '\"', $history) . '")</script>';
|
echo '<script language="javascript" type="text/javascript">$("#history").empty().append("' . str_replace('"', '\"', $history) . '")</script>';
|
||||||
|
|
||||||
$nbanswers = $result->get_count_available_results();
|
$nbanswers = $result->get_count_available_results();
|
||||||
$longueur = strlen($parm['qry']);
|
$longueur = strlen($parm['qry']);
|
||||||
|
|
||||||
$qrys = '<div>' . _('client::answers: rapport de questions par bases') . '</div>';
|
$qrys = '<div>' . _('client::answers: rapport de questions par bases') . '</div>';
|
||||||
|
|
||||||
foreach ($qrySbas as $sbas => $qryBas)
|
foreach ($qrySbas as $sbas => $qryBas)
|
||||||
$qrys .= '<div style="font-weight:bold;">' . phrasea::sbas_names($sbas) . '</div><div>' . $qryBas . '</div>';
|
$qrys .= '<div style="font-weight:bold;">' . phrasea::sbas_names($sbas) . '</div><div>' . $qryBas . '</div>';
|
||||||
|
|
||||||
$txt = "<b>" . substr($parm['qry'], 0, 36) . ($longueur > 36 ? "..." : "") . "</b>" . sprintf(_('client::answers: %d reponses'), (int) $nbanswers) . " <a style=\"float:none;display:inline-block;padding:2px 3px\" class=\"infoTips\" title=\"" . str_replace('"', "'", $qrys) . "\"> </a>";
|
$txt = "<b>" . substr($parm['qry'], 0, 36) . ($longueur > 36 ? "..." : "") . "</b>" . sprintf(_('client::answers: %d reponses'), (int) $nbanswers) . " <a style=\"float:none;display:inline-block;padding:2px 3px\" class=\"infoTips\" title=\"" . str_replace('"', "'", $qrys) . "\"> </a>";
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
p4.tot = <?php echo ($nbanswers > 0) ? $nbanswers : '0' ?>;
|
p4.tot = <?php echo ($nbanswers > 0) ? $nbanswers : '0' ?>;
|
||||||
document.getElementById("nb_answers").innerHTML = "<?php echo p4string::JSstring($txt) ?>";
|
document.getElementById("nb_answers").innerHTML = "<?php echo p4string::JSstring($txt) ?>";
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
$npages = $result->get_total_pages();
|
$npages = $result->get_total_pages();
|
||||||
$pages = '';
|
$pages = '';
|
||||||
$ecart = 3;
|
$ecart = 3;
|
||||||
$max = (2 * $ecart) + 3;
|
$max = (2 * $ecart) + 3;
|
||||||
|
|
||||||
if ($npages > $max)
|
if ($npages > $max)
|
||||||
{
|
{
|
||||||
for ($p = 0; $p < $npages; $p++)
|
for ($p = 0; $p < $npages; $p++)
|
||||||
{
|
{
|
||||||
if ($p == $page)
|
if ($p == $page)
|
||||||
@@ -219,9 +219,9 @@ $npages = $result->get_total_pages();
|
|||||||
)
|
)
|
||||||
$pages .= '<span class="naviButton" style="cursor:default;"> - </span>';
|
$pages .= '<span class="naviButton" style="cursor:default;"> - </span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for ($p = 0; $p < $npages; $p++)
|
for ($p = 0; $p < $npages; $p++)
|
||||||
{
|
{
|
||||||
if ($p == $page)
|
if ($p == $page)
|
||||||
@@ -231,74 +231,74 @@ $npages = $result->get_total_pages();
|
|||||||
if ($p + 1 < $npages)
|
if ($p + 1 < $npages)
|
||||||
$pages .= '<span class="naviButton" style="cursor:default;"> - </span>';
|
$pages .= '<span class="naviButton" style="cursor:default;"> - </span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$string2 = $pages . '<div class="navigButtons">';
|
$string2 = $pages . '<div class="navigButtons">';
|
||||||
$string2.= '<div id="PREV_PAGE" class="PREV_PAGE"></div>';
|
$string2.= '<div id="PREV_PAGE" class="PREV_PAGE"></div>';
|
||||||
$string2.= '<div id="NEXT_PAGE" class="NEXT_PAGE"></div>';
|
$string2.= '<div id="NEXT_PAGE" class="NEXT_PAGE"></div>';
|
||||||
$string2.= '</div>';
|
$string2.= '</div>';
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#navigation").empty().append("<?php echo p4string::JSstring($string2) ?>");
|
$("#navigation").empty().append("<?php echo p4string::JSstring($string2) ?>");
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($page != 0 && $nbanswers)
|
if ($page != 0 && $nbanswers)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
$("#PREV_PAGE").bind('click',function(){gotopage(<?php echo ($page - 1) ?>)});
|
$("#PREV_PAGE").bind('click',function(){gotopage(<?php echo ($page - 1) ?>)});
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
$("#PREV_PAGE").unbind('click');
|
$("#PREV_PAGE").unbind('click');
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($page != $npages - 1 && $nbanswers)
|
if ($page != $npages - 1 && $nbanswers)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
$("#NEXT_PAGE").bind('click',function(){gotopage(<?php echo ($page + 1) ?>)});
|
$("#NEXT_PAGE").bind('click',function(){gotopage(<?php echo ($page + 1) ?>)});
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
$("#NEXT_PAGE").unbind('click');
|
$("#NEXT_PAGE").unbind('click');
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$layoutmode = "grid";
|
$layoutmode = "grid";
|
||||||
if ($mod_col == 1)
|
if ($mod_col == 1)
|
||||||
$layoutmode = "list";
|
$layoutmode = "list";
|
||||||
else
|
else
|
||||||
$layoutmode = "grid";
|
$layoutmode = "grid";
|
||||||
|
|
||||||
$count = $result->get_datas();
|
$count = $result->get_datas();
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
if (count($result->get_datas()) > 0)
|
if (count($result->get_datas()) > 0)
|
||||||
{
|
{
|
||||||
?><div><table id="grid" cellpadding="0" cellspacing="0" border="0" style="xwidth:95%;"><?php
|
?><div><table id="grid" cellpadding="0" cellspacing="0" border="0" style="xwidth:95%;"><?php
|
||||||
if ($mod_col == 1) // MODE LISTE
|
if ($mod_col == 1) // MODE LISTE
|
||||||
{
|
{
|
||||||
?><tr style="visibility:hidden"><td class="w160px" /><td /></tr><?php
|
?><tr style="visibility:hidden"><td class="w160px" /><td /></tr><?php
|
||||||
}
|
}
|
||||||
else // MODE GRILLE
|
else // MODE GRILLE
|
||||||
{
|
{
|
||||||
?><tr style="visibility:hidden"><?php
|
?><tr style="visibility:hidden"><?php
|
||||||
for ($ii = 0; $ii < $mod_col; $ii++)
|
for ($ii = 0; $ii < $mod_col; $ii++)
|
||||||
{
|
{
|
||||||
?><td class="w160px"></td><?php
|
?><td class="w160px"></td><?php
|
||||||
}
|
}
|
||||||
?></tr><?php
|
?></tr><?php
|
||||||
}
|
}
|
||||||
|
|
||||||
$twig = new supertwig();
|
$core = \bootstrap::getCore();
|
||||||
$twig->addFilter(array('formatoctet'=>'p4string::format_octets'));
|
$twig = $core->getTwig();
|
||||||
|
|
||||||
foreach ($result->get_datas() as $record)
|
foreach ($result->get_datas() as $record)
|
||||||
{
|
{
|
||||||
@@ -317,28 +317,28 @@ $npages = $result->get_total_pages();
|
|||||||
|
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
{
|
{
|
||||||
?><tr><?php
|
?><tr><?php
|
||||||
}
|
}
|
||||||
if (($i % $mod_col == 0 && $i != 0))
|
if (($i % $mod_col == 0 && $i != 0))
|
||||||
{
|
{
|
||||||
?></tr><tr><?php
|
?></tr><tr><?php
|
||||||
}
|
}
|
||||||
if ($mod_col == 1 && $i != 0)
|
if ($mod_col == 1 && $i != 0)
|
||||||
{
|
{
|
||||||
?></tr><tr style="height:20px;">
|
?></tr><tr style="height:20px;">
|
||||||
<td colspan="2" class="td_mod_lst_img"><hr></td>
|
<td colspan="2" class="td_mod_lst_img"><hr></td>
|
||||||
</tr><tr><?php
|
</tr><tr><?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mod_col == 1)
|
if ($mod_col == 1)
|
||||||
{
|
{
|
||||||
?><td valign="top" class="td_mod_lst_desc"><?php
|
?><td valign="top" class="td_mod_lst_desc"><?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
?><td class="w160px"><?php
|
?><td class="w160px"><?php
|
||||||
}
|
}
|
||||||
?><div class="diapo w160px" style="margin-bottom:0;border-bottom:none;">
|
?><div class="diapo w160px" style="margin-bottom:0;border-bottom:none;">
|
||||||
<div class="title"><?php echo $title ?></div><?php
|
<div class="title"><?php echo $title ?></div><?php
|
||||||
|
|
||||||
|
|
||||||
@@ -364,9 +364,9 @@ $npages = $result->get_total_pages();
|
|||||||
$isImage = true;
|
$isImage = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
?><table cellpadding="0" cellspacing="0" style="margin: 0pt auto;"><?php
|
?><table cellpadding="0" cellspacing="0" style="margin: 0pt auto;"><?php
|
||||||
?><tr class="h160px"><?php
|
?><tr class="h160px"><?php
|
||||||
?><td class="image w160px h160px"><?php
|
?><td class="image w160px h160px"><?php
|
||||||
if ($isVideo)
|
if ($isVideo)
|
||||||
{
|
{
|
||||||
$duration = $record->get_formated_duration();
|
$duration = $record->get_formated_duration();
|
||||||
@@ -392,18 +392,20 @@ $npages = $result->get_total_pages();
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($mod_col == '1')
|
if ($mod_col == '1')
|
||||||
$pic_roll = '/prod/tooltip/preview/'.$record->get_sbas_id().'/'.$record->get_record_id().'/';
|
$pic_roll = '/prod/tooltip/preview/' . $record->get_sbas_id() . '/' . $record->get_record_id() . '/';
|
||||||
else
|
else
|
||||||
$pic_roll = '/prod/tooltip/caption/'.$record->get_sbas_id().'/'.$record->get_record_id().'/answer/';
|
$pic_roll = '/prod/tooltip/caption/' . $record->get_sbas_id() . '/' . $record->get_record_id() . '/answer/';
|
||||||
|
|
||||||
$pic_roll = str_replace(array('&', '"'), array('&', '"'), $pic_roll);
|
$pic_roll = str_replace(array('&', '"'), array('&', '"'), $pic_roll);
|
||||||
?><img style="<?php if($thumbnail->get_width() > $thumbnail->get_height()){?>width:128px;<?php }else{?>height:128px;<?php } ?>" onclick="<?php echo $onclick ?>" class=" captionTips" id="IMG<?php echo $record->get_base_id() ?>_<?php echo $record->get_record_id() ?>" src="<?php echo $thumbnail->get_url() ?>" tooltipsrc="<?php echo ($pic_roll) ?>" />
|
?><img style="<?php if ($thumbnail->get_width() > $thumbnail->get_height())
|
||||||
</td>
|
{ ?>width:128px;<?php }
|
||||||
</tr>
|
else
|
||||||
</table>
|
{ ?>height:128px;<?php } ?>" onclick="<?php echo $onclick ?>" class=" captionTips" id="IMG<?php echo $record->get_base_id() ?>_<?php echo $record->get_record_id() ?>" src="<?php echo $thumbnail->get_url() ?>" tooltipsrc="<?php echo ($pic_roll) ?>" />
|
||||||
</div>
|
</td>
|
||||||
<div class="diapo w160px" style="border-top:none;"><?php
|
</tr>
|
||||||
?><div class="buttons"><?php
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="diapo w160px" style="border-top:none;"><?php ?><div class="buttons"><?php
|
||||||
$minilogos = "";
|
$minilogos = "";
|
||||||
|
|
||||||
$minilogos .= '<div class="minilogos">' . collection::getLogo($record->get_base_id());
|
$minilogos .= '<div class="minilogos">' . collection::getLogo($record->get_base_id());
|
||||||
@@ -417,9 +419,9 @@ $npages = $result->get_total_pages();
|
|||||||
$ACL->has_right_on_base($record->get_base_id(), 'cancmd')
|
$ACL->has_right_on_base($record->get_base_id(), 'cancmd')
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
?><div class="downloader" title="<?php echo _('action : exporter') ?>" onclick="evt_dwnl('<?php echo $sbas_id ?>_<?php echo $record->get_record_id() ?>');"></div><?php
|
?><div class="downloader" title="<?php echo _('action : exporter') ?>" onclick="evt_dwnl('<?php echo $sbas_id ?>_<?php echo $record->get_record_id() ?>');"></div><?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="printer" title="<?php echo _('action : print') ?>" onClick="evt_print('<?php echo $sbas_id ?>_<?php echo $record->get_record_id() ?>');"></div>
|
<div class="printer" title="<?php echo _('action : print') ?>" onClick="evt_print('<?php echo $sbas_id ?>_<?php echo $record->get_record_id() ?>');"></div>
|
||||||
<?php
|
<?php
|
||||||
if ($ACL->has_right_on_base($record->get_base_id(), "canputinalbum"))
|
if ($ACL->has_right_on_base($record->get_base_id(), "canputinalbum"))
|
||||||
@@ -433,14 +435,14 @@ $npages = $result->get_total_pages();
|
|||||||
<?php
|
<?php
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if($record->get_preview()->is_physically_present())
|
if ($record->get_preview()->is_physically_present())
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div class="previewTips" tooltipsrc="/prod/tooltip/preview/<?php echo $record->get_sbas_id(); ?>/<?php echo $record->get_record_id(); ?>/" id="ZOOM<?php echo $record->get_base_id() ?>_<?php echo $record->get_record_id() ?>"> </div>
|
<div class="previewTips" tooltipsrc="/prod/tooltip/preview/<?php echo $record->get_sbas_id(); ?>/<?php echo $record->get_record_id(); ?>/" id="ZOOM<?php echo $record->get_base_id() ?>_<?php echo $record->get_record_id() ?>"> </div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -461,7 +463,7 @@ $npages = $result->get_total_pages();
|
|||||||
}
|
}
|
||||||
?></tr>
|
?></tr>
|
||||||
</table>
|
</table>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
p4.tot = <?php echo $result->get_count_available_results(); ?>;
|
p4.tot = <?php echo $result->get_count_available_results(); ?>;
|
||||||
@@ -470,17 +472,17 @@ $npages = $result->get_total_pages();
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</div><?php
|
</div><?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
?><div><?php echo _('reponses:: Votre recherche ne retourne aucun resultat'); ?></div><?php
|
?><div><?php echo _('reponses:: Votre recherche ne retourne aucun resultat'); ?></div><?php
|
||||||
phrasea::getHome('HELP', 'client');
|
phrasea::getHome('HELP', 'client');
|
||||||
}
|
}
|
||||||
|
|
||||||
function proposalsToHTML(&$proposals)
|
function proposalsToHTML(&$proposals)
|
||||||
{
|
{
|
||||||
|
|
||||||
$html = '<div class="proposals">';
|
$html = '<div class="proposals">';
|
||||||
$b = true;
|
$b = true;
|
||||||
@@ -504,5 +506,5 @@ $npages = $result->get_total_pages();
|
|||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
|
||||||
return($html);
|
return($html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -39,7 +39,9 @@ switch ($parm['action'])
|
|||||||
$output = module_client::getLanguage($lng);
|
$output = module_client::getLanguage($lng);
|
||||||
break;
|
break;
|
||||||
case 'PREVIEW':
|
case 'PREVIEW':
|
||||||
$twig = new supertwig();
|
|
||||||
|
$core = \bootstrap::getCore();
|
||||||
|
$twig = $core->getTwig();
|
||||||
|
|
||||||
$search_engine = null;
|
$search_engine = null;
|
||||||
if (($options = unserialize($parm['options_serial'])) !== false)
|
if (($options = unserialize($parm['options_serial'])) !== false)
|
||||||
@@ -50,8 +52,6 @@ switch ($parm['action'])
|
|||||||
|
|
||||||
$record = new record_preview($parm['env'], $parm['pos'], $parm['cont'], $parm['roll'], $search_engine, $parm['query']);
|
$record = new record_preview($parm['env'], $parm['pos'], $parm['cont'], $parm['roll'], $search_engine, $parm['query']);
|
||||||
|
|
||||||
$twig->addFilter(array('implode' => 'implode', 'formatoctet'=>'p4string::format_octets'));
|
|
||||||
|
|
||||||
$train = '';
|
$train = '';
|
||||||
|
|
||||||
if ($record->is_from_reg())
|
if ($record->is_from_reg())
|
||||||
|
@@ -62,8 +62,8 @@ if ($rawMe)
|
|||||||
$info_usr = $rawMe;
|
$info_usr = $rawMe;
|
||||||
}
|
}
|
||||||
|
|
||||||
$twig = new supertwig();
|
$core = \bootstrap::getCore();
|
||||||
$twig->addFilter(array('formatoctet'=>'p4string::format_octets'));
|
$twig = $core->getTwig();
|
||||||
|
|
||||||
$stmt = $conn->prepare($sql);
|
$stmt = $conn->prepare($sql);
|
||||||
$usr_id = $session->get_usr_id();
|
$usr_id = $session->get_usr_id();
|
||||||
@@ -202,7 +202,7 @@ foreach ($rs as $row)
|
|||||||
|
|
||||||
|
|
||||||
if (trim($preview) != '')
|
if (trim($preview) != '')
|
||||||
$preview = "<div tooltipsrc='/prod/tooltip/preview/" . phrasea::sbasFromBas ($row["base_id"]) . "/" . $row["record_id"] . "/' class=\"previewTips\"></div> ";
|
$preview = "<div tooltipsrc='/prod/tooltip/preview/" . phrasea::sbasFromBas($row["base_id"]) . "/" . $row["record_id"] . "/' class=\"previewTips\"></div> ";
|
||||||
|
|
||||||
$docType = $record->get_type();
|
$docType = $record->get_type();
|
||||||
$isVideo = ($docType == 'video');
|
$isVideo = ($docType == 'video');
|
||||||
|
@@ -57,13 +57,13 @@ $user = User_Adapter::getInstance($usr_id, $appbox);
|
|||||||
<script type="text/javascript" src="/include/minify/f=include/jslibs/jquery-1.5.2.js"></script>
|
<script type="text/javascript" src="/include/minify/f=include/jslibs/jquery-1.5.2.js"></script>
|
||||||
<script type="text/javascript" src="/include/minify/f=include/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
<script type="text/javascript" src="/include/minify/f=include/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
|
||||||
<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/jquery.contextmenu.css,skins/common/main.css" />
|
<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/jquery.contextmenu.css,skins/common/main.css" />
|
||||||
<?php
|
<?php
|
||||||
//listage des css
|
//listage des css
|
||||||
$css = array();
|
$css = array();
|
||||||
$cssPath = $registry->get('GV_RootPath') . 'www/skins/client/';
|
$cssPath = $registry->get('GV_RootPath') . 'www/skins/client/';
|
||||||
|
|
||||||
if ($hdir = opendir($cssPath))
|
if ($hdir = opendir($cssPath))
|
||||||
{
|
{
|
||||||
while (false !== ($file = readdir($hdir)))
|
while (false !== ($file = readdir($hdir)))
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -75,46 +75,47 @@ if ($hdir = opendir($cssPath))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($hdir);
|
closedir($hdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
$cssfile = false;
|
$cssfile = false;
|
||||||
$baskStatus = '1';
|
$baskStatus = '1';
|
||||||
$mode_pres = '';
|
$mode_pres = '';
|
||||||
|
|
||||||
$cssfile = $user->getPrefs('client_css');
|
$cssfile = $user->getPrefs('client_css');
|
||||||
$baskStatus = $user->getPrefs('client_basket_status');
|
$baskStatus = $user->getPrefs('client_basket_status');
|
||||||
$mode_pres = $user->getPrefs('client_view');
|
$mode_pres = $user->getPrefs('client_view');
|
||||||
$start_page = $user->getPrefs('start_page');
|
$start_page = $user->getPrefs('start_page');
|
||||||
$start_page_query = $user->getPrefs('start_page_query');
|
$start_page_query = $user->getPrefs('start_page_query');
|
||||||
|
|
||||||
if (!$cssfile && isset($css['000000']))
|
if (!$cssfile && isset($css['000000']))
|
||||||
$cssfile = '000000';
|
$cssfile = '000000';
|
||||||
|
|
||||||
$cssfile = 'skins/client/000000/clientcolor.css';
|
$cssfile = 'skins/client/000000/clientcolor.css';
|
||||||
?>
|
?>
|
||||||
<link type="text/css" rel="stylesheet" href="/include/minify/f=skins/client/clientcolor.css" />
|
<link type="text/css" rel="stylesheet" href="/include/minify/f=skins/client/clientcolor.css" />
|
||||||
<?php
|
<?php
|
||||||
if ($cssfile)
|
if ($cssfile)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<link id="skinCss" type="text/css" rel="stylesheet" href="/include/minify/f=<?php echo $cssfile ?>" />
|
<link id="skinCss" type="text/css" rel="stylesheet" href="/include/minify/f=<?php echo $cssfile ?>" />
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<body style="overflow:hidden;">
|
<body style="overflow:hidden;">
|
||||||
<div id="container" style="position:absolute;top:0;left:0;overflow:hidden;width:100%;height:100%;">
|
<div id="container" style="position:absolute;top:0;left:0;overflow:hidden;width:100%;height:100%;">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$events_mngr = eventsmanager_broker::getInstance($appbox, $Core);
|
$events_mngr = eventsmanager_broker::getInstance($appbox, $Core);
|
||||||
|
|
||||||
$twig = new supertwig();
|
$core = \bootstrap::getCore();
|
||||||
$twig->display('common/menubar.twig', array('module' => 'client', 'events' => $events_mngr));
|
$twig = $core->getTwig();
|
||||||
?>
|
echo $twig->render('common/menubar.twig', array('module' => 'client', 'events' => $events_mngr));
|
||||||
|
?>
|
||||||
<div style="top:30px;position:relative;float:left;">
|
<div style="top:30px;position:relative;float:left;">
|
||||||
<div id="left" style="height:100%;width:265px;position:relative;float:left;">
|
<div id="left" style="height:100%;width:265px;position:relative;float:left;">
|
||||||
<div style="overflow:hidden;border:none;padding:0;margin:0;position:relative;top:0px;height:0px;width:265px;" id="search">
|
<div style="overflow:hidden;border:none;padding:0;margin:0;position:relative;top:0px;height:0px;width:265px;" id="search">
|
||||||
<?php
|
<?php
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
|
||||||
|
|
||||||
@@ -128,14 +129,14 @@ if ($cssfile)
|
|||||||
$tong = array(1 => 1);
|
$tong = array(1 => 1);
|
||||||
|
|
||||||
ksort($tong);
|
ksort($tong);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<div class="bodyLeft" style="top:3px;">
|
<div class="bodyLeft" style="top:3px;">
|
||||||
<div id="bigTabsBckg">
|
<div id="bigTabsBckg">
|
||||||
<table align="center" border="0" style="table-layout:fixed; top:1px; left:2px;height:22px; width:253px;" cellpadding="0" cellspacing="0">
|
<table align="center" border="0" style="table-layout:fixed; top:1px; left:2px;height:22px; width:253px;" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<?php
|
<?php
|
||||||
$activeTab = '';
|
$activeTab = '';
|
||||||
foreach ($tong as $kong => $ong)
|
foreach ($tong as $kong => $ong)
|
||||||
{
|
{
|
||||||
@@ -147,27 +148,27 @@ if ($cssfile)
|
|||||||
case 1:
|
case 1:
|
||||||
if ($k == 'actif')
|
if ($k == 'actif')
|
||||||
$activeTab = 'ongSearch';
|
$activeTab = 'ongSearch';
|
||||||
?>
|
?>
|
||||||
<td class="bigTabs <?php echo $k ?>" id="ongSearch" onclick="chgOngSearch('ongSearch');"><?php echo _('client:: recherche') ?></td>
|
<td class="bigTabs <?php echo $k ?>" id="ongSearch" onclick="chgOngSearch('ongSearch');"><?php echo _('client:: recherche') ?></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if ($k == 'actif')
|
if ($k == 'actif')
|
||||||
$activeTab = 'ongAdvSearch';
|
$activeTab = 'ongAdvSearch';
|
||||||
?>
|
?>
|
||||||
<td class="bigTabs <?php echo $k ?>" id="ongAdvSearch" onclick="chgOngSearch('ongAdvSearch');return(false);"><?php echo _('client:: recherche avancee') ?></td>
|
<td class="bigTabs <?php echo $k ?>" id="ongAdvSearch" onclick="chgOngSearch('ongAdvSearch');return(false);"><?php echo _('client:: recherche avancee') ?></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if ($k == 'actif')
|
if ($k == 'actif')
|
||||||
$activeTab = 'ongTopic';
|
$activeTab = 'ongTopic';
|
||||||
?>
|
?>
|
||||||
<td class="bigTabs <?php echo $k ?>" id="ongTopic" onclick="chgOngSearch('ongTopic');return(false);"><?php echo _('client:: topics') ?></td>
|
<td class="bigTabs <?php echo $k ?>" id="ongTopic" onclick="chgOngSearch('ongTopic');return(false);"><?php echo _('client:: topics') ?></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -200,16 +201,16 @@ if ($cssfile)
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
if ($registry->get('GV_client_coll_ckbox') === 'popup')
|
if ($registry->get('GV_client_coll_ckbox') === 'popup')
|
||||||
{
|
{
|
||||||
// liste des collections : popup
|
// liste des collections : popup
|
||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<?php echo _('client::recherche: rechercher dans les bases :') ?>
|
<?php echo _('client::recherche: rechercher dans les bases :') ?>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$allbases = array();
|
$allbases = array();
|
||||||
$showbases = (count($appbox->get_databoxes()) > 0);
|
$showbases = (count($appbox->get_databoxes()) > 0);
|
||||||
$options = '';
|
$options = '';
|
||||||
@@ -249,14 +250,14 @@ if ($cssfile)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<select id="basSelector" onchange="beforeAnswer();" style="width:245px;"><option value="' . implode(';', $allbases) . '">' . _('client::recherche: rechercher dans toutes les bases') . '</option>' . $options . '</select>';
|
echo '<select id="basSelector" onchange="beforeAnswer();" style="width:245px;"><option value="' . implode(';', $allbases) . '">' . _('client::recherche: rechercher dans toutes les bases') . '</option>' . $options . '</select>';
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<select title="<?php echo _('phraseanet:: presentation des resultats') ?>" name="mod" id="mod" onChange="changeModCol();" >
|
<select title="<?php echo _('phraseanet:: presentation des resultats') ?>" name="mod" id="mod" onChange="changeModCol();" >
|
||||||
<?php
|
<?php
|
||||||
$vmf = array(
|
$vmf = array(
|
||||||
array('w' => '3', 'h' => '2', 'name' => '3*2', 'selected' => '0'),
|
array('w' => '3', 'h' => '2', 'name' => '3*2', 'selected' => '0'),
|
||||||
array('w' => '5', 'h' => '4', 'name' => '5*4', 'selected' => '0'),
|
array('w' => '5', 'h' => '4', 'name' => '5*4', 'selected' => '0'),
|
||||||
@@ -283,13 +284,13 @@ if ($cssfile)
|
|||||||
|
|
||||||
echo '<option ' . $sel . ' value="' . $h . 'X' . $w . '">' . (string) $vm['name'] . '</option>';
|
echo '<option ' . $sel . ' value="' . $h . 'X' . $w . '">' . (string) $vm['name'] . '</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
$sel1 = "";
|
$sel1 = "";
|
||||||
$sel2 = "";
|
$sel2 = "";
|
||||||
($registry->get('GV_defaultQuery_type') == 0 ? $sel1 = " checked='checked'" : $sel2 = " checked='checked'")
|
($registry->get('GV_defaultQuery_type') == 0 ? $sel1 = " checked='checked'" : $sel2 = " checked='checked'")
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<input type="radio" value="0" class="checkbox" <?php echo $sel1 ?> id="search_type_docs" name="search_type" /><label for="search_type_docs"><?php echo _('phraseanet::type:: documents') ?></label>
|
<input type="radio" value="0" class="checkbox" <?php echo $sel1 ?> id="search_type_docs" name="search_type" /><label for="search_type_docs"><?php echo _('phraseanet::type:: documents') ?></label>
|
||||||
<input type="radio" value="1" class="checkbox" <?php echo $sel2 ?> id="search_type_group" name="search_type" /><label for="search_type_group"><?php echo _('phraseanet::type:: reportages') ?></label>
|
<input type="radio" value="1" class="checkbox" <?php echo $sel2 ?> id="search_type_group" name="search_type" /><label for="search_type_group"><?php echo _('phraseanet::type:: reportages') ?></label>
|
||||||
@@ -306,34 +307,34 @@ if ($cssfile)
|
|||||||
|
|
||||||
|
|
||||||
<div class="onglets" style="white-space: nowrap; margin-left: 5px; width: 227px;">
|
<div class="onglets" style="white-space: nowrap; margin-left: 5px; width: 227px;">
|
||||||
<?php
|
<?php
|
||||||
if ($registry->get('GV_client_coll_ckbox') == 'checkbox')
|
if ($registry->get('GV_client_coll_ckbox') == 'checkbox')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<span id="idOnglet1" class="actif actives" onclick="chgOng(1);">
|
<span id="idOnglet1" class="actif actives" onclick="chgOng(1);">
|
||||||
<?php echo _('phraseanet:: collections') ?> <img onclick="removeFilters();" id="filter_danger" src="/skins/icons/alert.png" title="<?php echo _('client::recherche: cliquez ici pour desactiver tous les filtres de toutes base') ?>" style="vertical-align:bottom;width:12px;height:12px;display:none;"/>
|
<?php echo _('phraseanet:: collections') ?> <img onclick="removeFilters();" id="filter_danger" src="/skins/icons/alert.png" title="<?php echo _('client::recherche: cliquez ici pour desactiver tous les filtres de toutes base') ?>" style="vertical-align:bottom;width:12px;height:12px;display:none;"/>
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($registry->get('GV_thesaurus'))
|
if ($registry->get('GV_thesaurus'))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<span id="idOnglet4" class="<?php echo ($registry->get('GV_client_coll_ckbox') == 'checkbox') ? "inactif" : "actif" ?> actives" onclick="chgOng(4);">
|
<span id="idOnglet4" class="<?php echo ($registry->get('GV_client_coll_ckbox') == 'checkbox') ? "inactif" : "actif" ?> actives" onclick="chgOng(4);">
|
||||||
<?php echo _('phraseanet:: propositions') ?>
|
<?php echo _('phraseanet:: propositions') ?>
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<span id="idOnglet5" class="<?php echo (!($registry->get('GV_client_coll_ckbox') == 'checkbox') && !$registry->get('GV_thesaurus')) ? 'actif' : 'inactif' ?> actives" onclick="chgOng(5);">
|
<span id="idOnglet5" class="<?php echo (!($registry->get('GV_client_coll_ckbox') == 'checkbox') && !$registry->get('GV_thesaurus')) ? 'actif' : 'inactif' ?> actives" onclick="chgOng(5);">
|
||||||
<?php echo _('phraseanet:: historique') ?>
|
<?php echo _('phraseanet:: historique') ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="searchMiddle" style="">
|
<div id="searchMiddle" style="">
|
||||||
<?php
|
<?php
|
||||||
if ($registry->get('GV_client_coll_ckbox') == 'checkbox')
|
if ($registry->get('GV_client_coll_ckbox') == 'checkbox')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div id="onglet1" style="display:block;height:100%;overflow-x: hidden; overflow-y: auto;" class="searchZone" >
|
<div id="onglet1" style="display:block;height:100%;overflow-x: hidden; overflow-y: auto;" class="searchZone" >
|
||||||
<div>
|
<div>
|
||||||
<div style="text-align:center;margin:5px;">
|
<div style="text-align:center;margin:5px;">
|
||||||
@@ -344,12 +345,12 @@ if ($cssfile)
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="basesContainer">
|
<div class="basesContainer">
|
||||||
<?php
|
<?php
|
||||||
foreach ($appbox->get_databoxes() as $databox)
|
foreach ($appbox->get_databoxes() as $databox)
|
||||||
{
|
{
|
||||||
if ($registry->get('GV_view_bas_and_coll'))
|
if ($registry->get('GV_view_bas_and_coll'))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<div class="basContainer">
|
<div class="basContainer">
|
||||||
<div class="basContTitle">
|
<div class="basContTitle">
|
||||||
<div class="basTitle">
|
<div class="basTitle">
|
||||||
@@ -357,7 +358,7 @@ if ($cssfile)
|
|||||||
<label for="basChecker<?php echo $databox->get_sbas_id() ?>"><?php echo $databox->get_viewname() ?></label>
|
<label for="basChecker<?php echo $databox->get_sbas_id() ?>"><?php echo $databox->get_viewname() ?></label>
|
||||||
<img onclick="removeFilters(<?php echo $databox->get_sbas_id() ?>);" id="filter_danger<?php echo $databox->get_sbas_id() ?>" class="filter_danger" src="/skins/icons/alert.png" title="<?php echo _('client::recherche: cliquez ici pour desactiver tous les filtres de cette base') ?>" style="vertical-align:bottom;width:12px;height:12px;display:none;"/>
|
<img onclick="removeFilters(<?php echo $databox->get_sbas_id() ?>);" id="filter_danger<?php echo $databox->get_sbas_id() ?>" class="filter_danger" src="/skins/icons/alert.png" title="<?php echo _('client::recherche: cliquez ici pour desactiver tous les filtres de cette base') ?>" style="vertical-align:bottom;width:12px;height:12px;display:none;"/>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$status = databox_status::getSearchStatus($databox->get_sbas_id());
|
$status = databox_status::getSearchStatus($databox->get_sbas_id());
|
||||||
|
|
||||||
$sbFilters = '';
|
$sbFilters = '';
|
||||||
@@ -477,31 +478,31 @@ if ($cssfile)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?><div class="basGrp"><?php
|
?><div class="basGrp"><?php
|
||||||
foreach ($databox->get_collections() as $coll)
|
foreach ($databox->get_collections() as $coll)
|
||||||
{
|
{
|
||||||
$s = "checked";
|
$s = "checked";
|
||||||
echo '<div><input type="checkbox" class="checkbox basItem basItem' . $databox->get_sbas_id() . '" ' . $s . ' name="bas[]" id="basChk' . $coll->get_base_id() . '" value="' . $coll->get_base_id() . '"><label for="basChk' . $coll->get_base_id() . '">' . $coll->get_name() . '</label></div>';
|
echo '<div><input type="checkbox" class="checkbox basItem basItem' . $databox->get_sbas_id() . '" ' . $s . ' name="bas[]" id="basChk' . $coll->get_base_id() . '" value="' . $coll->get_base_id() . '"><label for="basChk' . $coll->get_base_id() . '">' . $coll->get_name() . '</label></div>';
|
||||||
}
|
}
|
||||||
?></div><?php
|
?></div><?php
|
||||||
if ($registry->get('GV_view_bas_and_coll'))
|
if ($registry->get('GV_view_bas_and_coll'))
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($registry->get('GV_thesaurus'))
|
if ($registry->get('GV_thesaurus'))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="onglet4" style="display:<?php echo ($registry->get('GV_client_coll_ckbox') == 'checkbox') ? 'none' : 'block' ?>;height:100%;overflow-x: hidden; overflow-y: auto;" class="searchZone" >
|
<div id="onglet4" style="display:<?php echo ($registry->get('GV_client_coll_ckbox') == 'checkbox') ? 'none' : 'block' ?>;height:100%;overflow-x: hidden; overflow-y: auto;" class="searchZone" >
|
||||||
<div>
|
<div>
|
||||||
@@ -510,9 +511,9 @@ if ($cssfile)
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="onglet5" style="display:<?php echo (!($registry->get('GV_client_coll_ckbox') == 'checkbox') && !$registry->get('GV_thesaurus')) ? 'block' : 'none' ?>;height:100%;overflow-x: hidden; overflow-y: auto;" class="searchZone" >
|
<div id="onglet5" style="display:<?php echo (!($registry->get('GV_client_coll_ckbox') == 'checkbox') && !$registry->get('GV_thesaurus')) ? 'block' : 'none' ?>;height:100%;overflow-x: hidden; overflow-y: auto;" class="searchZone" >
|
||||||
<div id="history">
|
<div id="history">
|
||||||
</div>
|
</div>
|
||||||
@@ -527,12 +528,12 @@ if ($cssfile)
|
|||||||
|
|
||||||
<div id="idongTopic" style="overflow-x:hidden;overflow-y:auto;">
|
<div id="idongTopic" style="overflow-x:hidden;overflow-y:auto;">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($registry->get('GV_client_render_topics') == 'popups')
|
if ($registry->get('GV_client_render_topics') == 'popups')
|
||||||
echo queries::dropdown_topics();
|
echo queries::dropdown_topics();
|
||||||
elseif ($registry->get('GV_client_render_topics') == 'tree')
|
elseif ($registry->get('GV_client_render_topics') == 'tree')
|
||||||
echo queries::tree_topics();
|
echo queries::tree_topics();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="bodySearchBottom">
|
<div class="bodySearchBottom">
|
||||||
@@ -550,9 +551,9 @@ if ($cssfile)
|
|||||||
<div id="nb_answers"></div>
|
<div id="nb_answers"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="answers" style="overflow-x:auto;overflow-y:auto;border:none;padding:0;margin:0;position:relative;left:0;top:0;margin:10px 0;">
|
<div id="answers" style="overflow-x:auto;overflow-y:auto;border:none;padding:0;margin:0;position:relative;left:0;top:0;margin:10px 0;">
|
||||||
<?php
|
<?php
|
||||||
echo phrasea::getHome($start_page, 'client');
|
echo phrasea::getHome($start_page, 'client');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="divNavig" id="navigation"></div>
|
<div class="divNavig" id="navigation"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -607,9 +608,9 @@ if ($cssfile)
|
|||||||
<!-- BOITE MODALE DIALOG -->
|
<!-- BOITE MODALE DIALOG -->
|
||||||
<div id="MESSAGE"></div>
|
<div id="MESSAGE"></div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo databox_cgu::askAgreement();
|
echo databox_cgu::askAgreement();
|
||||||
?>
|
?>
|
||||||
<div id="OVERLAY2" style="display:none;">
|
<div id="OVERLAY2" style="display:none;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -710,39 +711,39 @@ if ($cssfile)
|
|||||||
checkBases(true)
|
checkBases(true)
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!$user->is_guest() && Session_Handler::isset_cookie('last_act'))
|
if (!$user->is_guest() && Session_Handler::isset_cookie('last_act'))
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
lastAct = $.parseJSON('<?php echo Session_Handler::get_cookie('last_act') ?>');
|
lastAct = $.parseJSON('<?php echo Session_Handler::get_cookie('last_act') ?>');
|
||||||
execLastAct(lastAct);
|
execLastAct(lastAct);
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($baskStatus == '0')
|
if ($baskStatus == '0')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
baskDisplay = false;
|
baskDisplay = false;
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
baskDisplay = true;
|
baskDisplay = true;
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
setBaskStatus();
|
setBaskStatus();
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
if (trim($registry->get('GV_bitly_user')) !== '' && trim($registry->get('GV_bitly_key')) !== '')
|
if (trim($registry->get('GV_bitly_user')) !== '' && trim($registry->get('GV_bitly_key')) !== '')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" src="http://bit.ly/javascript-api.js?version=latest&login=<?php echo $registry->get('GV_bitly_user') ?>&apiKey=<?php echo $registry->get('GV_bitly_key') ?>"></script>
|
<script type="text/javascript" src="http://bit.ly/javascript-api.js?version=latest&login=<?php echo $registry->get('GV_bitly_user') ?>&apiKey=<?php echo $registry->get('GV_bitly_key') ?>"></script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
if (trim($registry->get('GV_googleAnalytics')) != '')
|
if (trim($registry->get('GV_googleAnalytics')) != '')
|
||||||
{
|
{
|
||||||
@@ -759,8 +760,8 @@ if ($cssfile)
|
|||||||
pageTracker._trackPageview();
|
pageTracker._trackPageview();
|
||||||
} catch(err) {}
|
} catch(err) {}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user