mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
add twig service
This commit is contained in:
@@ -148,54 +148,54 @@ $page = $result->get_current_page();
|
||||
|
||||
$ACL = $user->ACL();
|
||||
|
||||
if ($registry->get('GV_thesaurus'))
|
||||
{
|
||||
?>
|
||||
if ($registry->get('GV_thesaurus'))
|
||||
{
|
||||
?>
|
||||
<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") ?>";
|
||||
<?php
|
||||
<?php
|
||||
if ($registry->get('GV_clientAutoShowProposals'))
|
||||
{
|
||||
?>
|
||||
?>
|
||||
if("<?php echo p4string::MakeString(proposalsToHTML($qp['main']->proposals), "JS") ?>" != "<div class=\"proposals\"></div>")
|
||||
chgOng(4);
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</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();
|
||||
$longueur = strlen($parm['qry']);
|
||||
$nbanswers = $result->get_count_available_results();
|
||||
$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>';
|
||||
|
||||
$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(){
|
||||
p4.tot = <?php echo ($nbanswers > 0) ? $nbanswers : '0' ?>;
|
||||
document.getElementById("nb_answers").innerHTML = "<?php echo p4string::JSstring($txt) ?>";
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
<?php
|
||||
$npages = $result->get_total_pages();
|
||||
$pages = '';
|
||||
$ecart = 3;
|
||||
$max = (2 * $ecart) + 3;
|
||||
$pages = '';
|
||||
$ecart = 3;
|
||||
$max = (2 * $ecart) + 3;
|
||||
|
||||
if ($npages > $max)
|
||||
{
|
||||
if ($npages > $max)
|
||||
{
|
||||
for ($p = 0; $p < $npages; $p++)
|
||||
{
|
||||
if ($p == $page)
|
||||
@@ -219,9 +219,9 @@ $npages = $result->get_total_pages();
|
||||
)
|
||||
$pages .= '<span class="naviButton" style="cursor:default;"> - </span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($p = 0; $p < $npages; $p++)
|
||||
{
|
||||
if ($p == $page)
|
||||
@@ -231,74 +231,74 @@ $npages = $result->get_total_pages();
|
||||
if ($p + 1 < $npages)
|
||||
$pages .= '<span class="naviButton" style="cursor:default;"> - </span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$string2 = $pages . '<div class="navigButtons">';
|
||||
$string2.= '<div id="PREV_PAGE" class="PREV_PAGE"></div>';
|
||||
$string2.= '<div id="NEXT_PAGE" class="NEXT_PAGE"></div>';
|
||||
$string2.= '</div>';
|
||||
$string2 = $pages . '<div class="navigButtons">';
|
||||
$string2.= '<div id="PREV_PAGE" class="PREV_PAGE"></div>';
|
||||
$string2.= '<div id="NEXT_PAGE" class="NEXT_PAGE"></div>';
|
||||
$string2.= '</div>';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#navigation").empty().append("<?php echo p4string::JSstring($string2) ?>");
|
||||
|
||||
<?php
|
||||
if ($page != 0 && $nbanswers)
|
||||
{
|
||||
?>
|
||||
if ($page != 0 && $nbanswers)
|
||||
{
|
||||
?>
|
||||
$("#PREV_PAGE").bind('click',function(){gotopage(<?php echo ($page - 1) ?>)});
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
$("#PREV_PAGE").unbind('click');
|
||||
<?php
|
||||
}
|
||||
if ($page != $npages - 1 && $nbanswers)
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
if ($page != $npages - 1 && $nbanswers)
|
||||
{
|
||||
?>
|
||||
$("#NEXT_PAGE").bind('click',function(){gotopage(<?php echo ($page + 1) ?>)});
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
$("#NEXT_PAGE").unbind('click');
|
||||
<?php } ?>
|
||||
});
|
||||
</script>
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
$layoutmode = "grid";
|
||||
if ($mod_col == 1)
|
||||
$layoutmode = "grid";
|
||||
if ($mod_col == 1)
|
||||
$layoutmode = "list";
|
||||
else
|
||||
else
|
||||
$layoutmode = "grid";
|
||||
|
||||
$count = $result->get_datas();
|
||||
$count = $result->get_datas();
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (count($result->get_datas()) > 0)
|
||||
{
|
||||
?><div><table id="grid" cellpadding="0" cellspacing="0" border="0" style="xwidth:95%;"><?php
|
||||
if (count($result->get_datas()) > 0)
|
||||
{
|
||||
?><div><table id="grid" cellpadding="0" cellspacing="0" border="0" style="xwidth:95%;"><?php
|
||||
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
|
||||
{
|
||||
?><tr style="visibility:hidden"><?php
|
||||
?><tr style="visibility:hidden"><?php
|
||||
for ($ii = 0; $ii < $mod_col; $ii++)
|
||||
{
|
||||
?><td class="w160px"></td><?php
|
||||
?><td class="w160px"></td><?php
|
||||
}
|
||||
?></tr><?php
|
||||
?></tr><?php
|
||||
}
|
||||
|
||||
$twig = new supertwig();
|
||||
$twig->addFilter(array('formatoctet'=>'p4string::format_octets'));
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
foreach ($result->get_datas() as $record)
|
||||
{
|
||||
@@ -317,28 +317,28 @@ $npages = $result->get_total_pages();
|
||||
|
||||
if ($i == 0)
|
||||
{
|
||||
?><tr><?php
|
||||
?><tr><?php
|
||||
}
|
||||
if (($i % $mod_col == 0 && $i != 0))
|
||||
{
|
||||
?></tr><tr><?php
|
||||
?></tr><tr><?php
|
||||
}
|
||||
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>
|
||||
</tr><tr><?php
|
||||
}
|
||||
|
||||
if ($mod_col == 1)
|
||||
{
|
||||
?><td valign="top" class="td_mod_lst_desc"><?php
|
||||
?><td valign="top" class="td_mod_lst_desc"><?php
|
||||
}
|
||||
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
|
||||
|
||||
|
||||
@@ -364,9 +364,9 @@ $npages = $result->get_total_pages();
|
||||
$isImage = true;
|
||||
}
|
||||
|
||||
?><table cellpadding="0" cellspacing="0" style="margin: 0pt auto;"><?php
|
||||
?><tr class="h160px"><?php
|
||||
?><td class="image w160px h160px"><?php
|
||||
?><table cellpadding="0" cellspacing="0" style="margin: 0pt auto;"><?php
|
||||
?><tr class="h160px"><?php
|
||||
?><td class="image w160px h160px"><?php
|
||||
if ($isVideo)
|
||||
{
|
||||
$duration = $record->get_formated_duration();
|
||||
@@ -392,18 +392,20 @@ $npages = $result->get_total_pages();
|
||||
}
|
||||
|
||||
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
|
||||
$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);
|
||||
?><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) ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="diapo w160px" style="border-top:none;"><?php
|
||||
?><div class="buttons"><?php
|
||||
?><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) ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="diapo w160px" style="border-top:none;"><?php ?><div class="buttons"><?php
|
||||
$minilogos = "";
|
||||
|
||||
$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')
|
||||
)
|
||||
{
|
||||
?><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>
|
||||
<?php
|
||||
if ($ACL->has_right_on_base($record->get_base_id(), "canputinalbum"))
|
||||
@@ -433,14 +435,14 @@ $npages = $result->get_total_pages();
|
||||
<?php
|
||||
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>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
catch(Exception $e)
|
||||
catch (Exception $e)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -461,7 +463,7 @@ $npages = $result->get_total_pages();
|
||||
}
|
||||
?></tr>
|
||||
</table>
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
p4.tot = <?php echo $result->get_count_available_results(); ?>;
|
||||
@@ -470,17 +472,17 @@ $npages = $result->get_total_pages();
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
</div><?php
|
||||
</script>
|
||||
</div><?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?><div><?php echo _('reponses:: Votre recherche ne retourne aucun resultat'); ?></div><?php
|
||||
phrasea::getHome('HELP', 'client');
|
||||
}
|
||||
}
|
||||
|
||||
function proposalsToHTML(&$proposals)
|
||||
{
|
||||
function proposalsToHTML(&$proposals)
|
||||
{
|
||||
|
||||
$html = '<div class="proposals">';
|
||||
$b = true;
|
||||
@@ -504,5 +506,5 @@ $npages = $result->get_total_pages();
|
||||
$html .= '</div>';
|
||||
|
||||
return($html);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -39,7 +39,9 @@ switch ($parm['action'])
|
||||
$output = module_client::getLanguage($lng);
|
||||
break;
|
||||
case 'PREVIEW':
|
||||
$twig = new supertwig();
|
||||
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
$search_engine = null;
|
||||
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']);
|
||||
|
||||
$twig->addFilter(array('implode' => 'implode', 'formatoctet'=>'p4string::format_octets'));
|
||||
|
||||
$train = '';
|
||||
|
||||
if ($record->is_from_reg())
|
||||
|
@@ -62,8 +62,8 @@ if ($rawMe)
|
||||
$info_usr = $rawMe;
|
||||
}
|
||||
|
||||
$twig = new supertwig();
|
||||
$twig->addFilter(array('formatoctet'=>'p4string::format_octets'));
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
|
||||
$stmt = $conn->prepare($sql);
|
||||
$usr_id = $session->get_usr_id();
|
||||
@@ -202,7 +202,7 @@ foreach ($rs as $row)
|
||||
|
||||
|
||||
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();
|
||||
$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/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" />
|
||||
<?php
|
||||
<?php
|
||||
//listage des css
|
||||
$css = array();
|
||||
$cssPath = $registry->get('GV_RootPath') . 'www/skins/client/';
|
||||
$css = array();
|
||||
$cssPath = $registry->get('GV_RootPath') . 'www/skins/client/';
|
||||
|
||||
if ($hdir = opendir($cssPath))
|
||||
{
|
||||
if ($hdir = opendir($cssPath))
|
||||
{
|
||||
while (false !== ($file = readdir($hdir)))
|
||||
{
|
||||
|
||||
@@ -75,46 +75,47 @@ if ($hdir = opendir($cssPath))
|
||||
}
|
||||
}
|
||||
closedir($hdir);
|
||||
}
|
||||
}
|
||||
|
||||
$cssfile = false;
|
||||
$baskStatus = '1';
|
||||
$mode_pres = '';
|
||||
$cssfile = false;
|
||||
$baskStatus = '1';
|
||||
$mode_pres = '';
|
||||
|
||||
$cssfile = $user->getPrefs('client_css');
|
||||
$baskStatus = $user->getPrefs('client_basket_status');
|
||||
$mode_pres = $user->getPrefs('client_view');
|
||||
$start_page = $user->getPrefs('start_page');
|
||||
$start_page_query = $user->getPrefs('start_page_query');
|
||||
$cssfile = $user->getPrefs('client_css');
|
||||
$baskStatus = $user->getPrefs('client_basket_status');
|
||||
$mode_pres = $user->getPrefs('client_view');
|
||||
$start_page = $user->getPrefs('start_page');
|
||||
$start_page_query = $user->getPrefs('start_page_query');
|
||||
|
||||
if (!$cssfile && isset($css['000000']))
|
||||
if (!$cssfile && isset($css['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" />
|
||||
<?php
|
||||
if ($cssfile)
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
if ($cssfile)
|
||||
{
|
||||
?>
|
||||
<link id="skinCss" type="text/css" rel="stylesheet" href="/include/minify/f=<?php echo $cssfile ?>" />
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</head>
|
||||
<body style="overflow:hidden;">
|
||||
<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);
|
||||
|
||||
$twig = new supertwig();
|
||||
$twig->display('common/menubar.twig', array('module' => 'client', 'events' => $events_mngr));
|
||||
?>
|
||||
$core = \bootstrap::getCore();
|
||||
$twig = $core->getTwig();
|
||||
echo $twig->render('common/menubar.twig', array('module' => 'client', 'events' => $events_mngr));
|
||||
?>
|
||||
<div style="top:30px;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">
|
||||
<?php
|
||||
<?php
|
||||
$i = 1;
|
||||
|
||||
|
||||
@@ -128,14 +129,14 @@ if ($cssfile)
|
||||
$tong = array(1 => 1);
|
||||
|
||||
ksort($tong);
|
||||
?>
|
||||
?>
|
||||
|
||||
|
||||
<div class="bodyLeft" style="top:3px;">
|
||||
<div id="bigTabsBckg">
|
||||
<table align="center" border="0" style="table-layout:fixed; top:1px; left:2px;height:22px; width:253px;" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<?php
|
||||
<?php
|
||||
$activeTab = '';
|
||||
foreach ($tong as $kong => $ong)
|
||||
{
|
||||
@@ -147,27 +148,27 @@ if ($cssfile)
|
||||
case 1:
|
||||
if ($k == 'actif')
|
||||
$activeTab = 'ongSearch';
|
||||
?>
|
||||
?>
|
||||
<td class="bigTabs <?php echo $k ?>" id="ongSearch" onclick="chgOngSearch('ongSearch');"><?php echo _('client:: recherche') ?></td>
|
||||
<?php
|
||||
<?php
|
||||
break;
|
||||
case 2:
|
||||
if ($k == 'actif')
|
||||
$activeTab = 'ongAdvSearch';
|
||||
?>
|
||||
?>
|
||||
<td class="bigTabs <?php echo $k ?>" id="ongAdvSearch" onclick="chgOngSearch('ongAdvSearch');return(false);"><?php echo _('client:: recherche avancee') ?></td>
|
||||
<?php
|
||||
<?php
|
||||
break;
|
||||
case 3:
|
||||
if ($k == 'actif')
|
||||
$activeTab = 'ongTopic';
|
||||
?>
|
||||
?>
|
||||
<td class="bigTabs <?php echo $k ?>" id="ongTopic" onclick="chgOngSearch('ongTopic');return(false);"><?php echo _('client:: topics') ?></td>
|
||||
<?php
|
||||
<?php
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -200,16 +201,16 @@ if ($cssfile)
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
if ($registry->get('GV_client_coll_ckbox') === 'popup')
|
||||
{
|
||||
// liste des collections : popup
|
||||
?>
|
||||
?>
|
||||
<div>
|
||||
<?php echo _('client::recherche: rechercher dans les bases :') ?>
|
||||
<?php echo _('client::recherche: rechercher dans les bases :') ?>
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
$allbases = array();
|
||||
$showbases = (count($appbox->get_databoxes()) > 0);
|
||||
$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>';
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<div>
|
||||
<select title="<?php echo _('phraseanet:: presentation des resultats') ?>" name="mod" id="mod" onChange="changeModCol();" >
|
||||
<?php
|
||||
<?php
|
||||
$vmf = array(
|
||||
array('w' => '3', 'h' => '2', 'name' => '3*2', '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>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</select>
|
||||
<?php
|
||||
<?php
|
||||
$sel1 = "";
|
||||
$sel2 = "";
|
||||
($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="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;">
|
||||
<?php
|
||||
<?php
|
||||
if ($registry->get('GV_client_coll_ckbox') == 'checkbox')
|
||||
{
|
||||
?>
|
||||
?>
|
||||
<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>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
if ($registry->get('GV_thesaurus'))
|
||||
{
|
||||
?>
|
||||
?>
|
||||
<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>
|
||||
<?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);">
|
||||
<?php echo _('phraseanet:: historique') ?>
|
||||
<?php echo _('phraseanet:: historique') ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="searchMiddle" style="">
|
||||
<?php
|
||||
<?php
|
||||
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>
|
||||
<div style="text-align:center;margin:5px;">
|
||||
@@ -344,12 +345,12 @@ if ($cssfile)
|
||||
</div>
|
||||
<div>
|
||||
<div class="basesContainer">
|
||||
<?php
|
||||
<?php
|
||||
foreach ($appbox->get_databoxes() as $databox)
|
||||
{
|
||||
if ($registry->get('GV_view_bas_and_coll'))
|
||||
{
|
||||
?>
|
||||
?>
|
||||
<div class="basContainer">
|
||||
<div class="basContTitle">
|
||||
<div class="basTitle">
|
||||
@@ -357,7 +358,7 @@ if ($cssfile)
|
||||
<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;"/>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
$status = databox_status::getSearchStatus($databox->get_sbas_id());
|
||||
|
||||
$sbFilters = '';
|
||||
@@ -477,31 +478,31 @@ if ($cssfile)
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?><div class="basGrp"><?php
|
||||
?><div class="basGrp"><?php
|
||||
foreach ($databox->get_collections() as $coll)
|
||||
{
|
||||
$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>';
|
||||
}
|
||||
?></div><?php
|
||||
?></div><?php
|
||||
if ($registry->get('GV_view_bas_and_coll'))
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
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>
|
||||
@@ -510,9 +511,9 @@ if ($cssfile)
|
||||
</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="history">
|
||||
</div>
|
||||
@@ -527,12 +528,12 @@ if ($cssfile)
|
||||
|
||||
<div id="idongTopic" style="overflow-x:hidden;overflow-y:auto;">
|
||||
|
||||
<?php
|
||||
<?php
|
||||
if ($registry->get('GV_client_render_topics') == 'popups')
|
||||
echo queries::dropdown_topics();
|
||||
elseif ($registry->get('GV_client_render_topics') == 'tree')
|
||||
echo queries::tree_topics();
|
||||
?>
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="bodySearchBottom">
|
||||
@@ -550,9 +551,9 @@ if ($cssfile)
|
||||
<div id="nb_answers"></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;">
|
||||
<?php
|
||||
<?php
|
||||
echo phrasea::getHome($start_page, 'client');
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
<div class="divNavig" id="navigation"></div>
|
||||
</div>
|
||||
@@ -607,9 +608,9 @@ if ($cssfile)
|
||||
<!-- BOITE MODALE DIALOG -->
|
||||
<div id="MESSAGE"></div>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
echo databox_cgu::askAgreement();
|
||||
?>
|
||||
?>
|
||||
<div id="OVERLAY2" style="display:none;">
|
||||
|
||||
</div>
|
||||
@@ -710,39 +711,39 @@ if ($cssfile)
|
||||
checkBases(true)
|
||||
|
||||
<?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') ?>');
|
||||
execLastAct(lastAct);
|
||||
<?php
|
||||
}
|
||||
if ($baskStatus == '0')
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
if ($baskStatus == '0')
|
||||
{
|
||||
?>
|
||||
baskDisplay = false;
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
baskDisplay = true;
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
setBaskStatus();
|
||||
setBaskStatus();
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
<?php
|
||||
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>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
if (trim($registry->get('GV_googleAnalytics')) != '')
|
||||
{
|
||||
@@ -759,8 +760,8 @@ if ($cssfile)
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}
|
||||
</script>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user