mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
1090 lines
69 KiB
Twig
1090 lines
69 KiB
Twig
{% macro bas_list(module, search_datas) %}
|
||
{% set unique_id = module.getRandom() %}
|
||
{% for base in search_datas['bases'] %}
|
||
{% set sbas_id = base['sbas_id'] %}
|
||
<div class="sbas_list sbas_{{sbas_id}}" style="margin-bottom: 10px;">
|
||
<input type="hidden" name="reference" value="{{sbas_id}}"/>
|
||
<div class="clksbas" style="text-align: center;">
|
||
<label class="checkbox" for="sbasChkr_{{sbas_id}}_{{unique_id}}" onclick="clksbas({{sbas_id}}, $('#sbasChkr_{{sbas_id}}_{{unique_id}}')); return false;">
|
||
<span>{{sbas_id|sbas_labels(app)}}</span>
|
||
<span class="infos_sbas_{{sbas_id}}">
|
||
{{base["collections"]|length}}/{{base['collections']|length}}
|
||
</span>
|
||
<input type="checkbox" checked style="display: none;" id="sbasChkr_{{sbas_id}}_{{unique_id}}" class="sbasChkr_{{sbas_id}}" />
|
||
</label>
|
||
</div>
|
||
<div class="sbascont sbascont_{{sbas_id}}" style="-moz-column-width:150px; -webkit-column-width: 150px; -moz-column-gap: 20px; -webkit-column-gap: 20px;">
|
||
<ul style="list-style-type:none; padding:0; margin:0;" class="basChild_{{sbas_id}}">
|
||
{% for collection in base["collections"] %}
|
||
{% set base_id = collection["base_id"] %}
|
||
<li class="clkbas">
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<input class="ck_{{collection["base_id"]}} checkbas" style="*margin-top:-18px;"
|
||
onclick="cancelEvent(event);return false;"
|
||
onmousedown="infoSbas(this, {{sbas_id}}, false, event); return false;"
|
||
id="ck_{{collection["base_id"]}}_{{unique_id}}" type="checkbox"
|
||
name="bases[]" value="{{collection["base_id"]}}" {% if collection["selected"] %}checked="checked"{% endif %} />
|
||
</td>
|
||
<td>
|
||
<label style="line-height: 18px;" onclick="infoSbas($('#ck_{{base_id}}_{{unique_id}}'),{{sbas_id}}, false, event); return false;"
|
||
for="ck_{{base_id}}_{{unique_id}}" class="ck_{{base_id}} {% if collection["selected"] %}selected{% endif %} checkbox inline">
|
||
{{base_id|get_collection_logo(app)|raw}} {{base_id|bas_labels(app)}}
|
||
</label>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</li>
|
||
{% endfor %}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
{% endfor %}
|
||
{% endmacro %}
|
||
|
||
{% set jquery_theme = 'dark-hive' %}
|
||
|
||
{% extends "common/index_bootstrap.html.twig" %}
|
||
|
||
{% block icon %}
|
||
<link rel="shortcut icon" type="image/x-icon" href="/skins/prod/favicon.ico">
|
||
{% endblock %}
|
||
|
||
{% block rss %}
|
||
{% for feed in feeds %}
|
||
{% set link = feed.get_user_link(app['phraseanet.registry'], app['authentication'].getUser(), 'rss') %}
|
||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||
{% set link = feed.get_user_link(app['phraseanet.registry'], app['authentication'].getUser(), 'atom') %}
|
||
<link rel="alternate" type="{{ link.get_mimetype() }}" title="{{ link.get_title() }}" href="{{ link.get_href() }}" />
|
||
{% endfor %}
|
||
{% endblock %}
|
||
|
||
{% block stylesheet %}
|
||
<style type="text/css">
|
||
.noRepresent {
|
||
background-color: #A2F5F5;
|
||
}
|
||
|
||
.disable {
|
||
display: none;
|
||
}
|
||
</style>
|
||
<style type="text/css">
|
||
/* Vertical Tabs */
|
||
.ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }
|
||
.ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }
|
||
.ui-tabs-vertical .ui-tabs-nav li a { display:block; }
|
||
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
|
||
.ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right;}
|
||
</style>
|
||
|
||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.contextmenu.css,include/jslibs/colorpicker/css/colorpicker.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,include/jquery.image_enhancer.css,skins/geonames/geonames.css' }) }}" >
|
||
<link id="skinCss" type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/prod/' ~ cssfile ~ '/prodcolor.css' }) }}" >
|
||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'assets/humane-js/themes/libnotify.css,skins/prod/Prod.css,skins/prod/Basket.css,skins/prod/Push.css' }) }}" >
|
||
|
||
<!--[if IE 7]>
|
||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/prod/ie7.css' }) }}" >
|
||
<![endif]-->
|
||
<!--[if IE 8]>
|
||
<link type="text/css" rel="stylesheet" href="{{ path('minifier', { 'f' : 'skins/prod/ie8.css' }) }}" >
|
||
<![endif]-->
|
||
|
||
<style title="color_selection" type="text/css">
|
||
/* .diapo.ui-selecting,#reorder_box .diapo.selecting, #EDIT_ALL .diapo.selecting, .list.selecting, .list.selecting .diapo {
|
||
color: #{% if app['authentication'].getUser().getPrefs('fontcolor-selection') != '' %}{{app['authentication'].getUser().getPrefs('fontcolor-selection')}}{% else %}FFFFFF{% endif %};
|
||
background-color: #{% if app['authentication'].getUser().getPrefs('background-selection-disabled') != '' %}{{app['authentication'].getUser().getPrefs('background-selection-disabled')}}{% else %}333333{% endif %};
|
||
}*/
|
||
.diapo.selected,#reorder_box .diapo.selected, #EDIT_ALL .diapo.selected, .list.selected, .list.selected .diapo {
|
||
color: #{% if app['authentication'].getUser().getPrefs('fontcolor-selection') != '' %}{{app['authentication'].getUser().getPrefs('fontcolor-selection')}}{% else %}FFFFFF{% endif %};
|
||
background-color: #{% if app['authentication'].getUser().getPrefs('background-selection') != '' %}{{app['authentication'].getUser().getPrefs('background-selection')}}{% else %}404040{% endif %};
|
||
}
|
||
</style>
|
||
{% endblock %}
|
||
|
||
{% block javascript %}
|
||
{% include "common/templates.html.twig" %}
|
||
{% endblock %}
|
||
|
||
{% block content %}
|
||
{% set search_datas = module_prod.get_search_datas() %}
|
||
<div style="position:absolute; top:0; left:0; right:0; bottom:0; background-color:#1a1a1a; z-index:32766;">
|
||
<div id="loader" style="top:200px; margin:0 auto; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; background-color:#CCCCCC; position:relative; margin:0 auto; text-align:center; width:400px; height:100px; padding:20px; z-index:32767;">
|
||
<div style="margin:0 10px 10px; font-family:Helvetica,Arial,sans-serif; font-size:18px; color:#1A1A1A; text-align:left;">Phraseanet</div>
|
||
<div style="text-align:center;">{% trans 'Chargement' %}</div>
|
||
<div style="width:220px; height:19px; margin:20px auto;">
|
||
<div id="loader_bar" style="height:19px;width:10%;background-image:url(/skins/icons/main-loader.gif)"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="desktop" class="PNB" style="overflow:hidden;">
|
||
{% if app.flash('client_deprecated') %}
|
||
<div id="clientModal" class="modal hide fade" >
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h3>{{ 'Client application is deprecated'|trans }}</h3>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p>{{ 'You have been redirected to production application.'|trans }}</p>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
$('#clientModal').modal();
|
||
</script>
|
||
{% endif %}
|
||
{% set ratio = app['authentication'].getUser().getPrefs('search_window') %}
|
||
{% if ratio == 0 %}
|
||
{% set ratio = '0.333' %}
|
||
{% endif %}
|
||
{% set w1 = (100 * ratio)|round %}
|
||
{% set w2 = (100 - w1) %}
|
||
<div id="idFrameC" class="PNB" style="right:auto;width:{{ w1 ~ '%' }}">
|
||
<div class="PNB wrapper">
|
||
<div class="tabs ui-tabs">
|
||
<ul class="icon-menu ui-tabs-nav ui-helper-reset">
|
||
<li class="ui-tabs-selected ui-corner-top">
|
||
<a href="#baskets" class="WZbasketTab">
|
||
<div id="basket_menu_trigger">▼</div>
|
||
</a>
|
||
</li>
|
||
{% if GV_thesaurus %}
|
||
<li class="proposals_WZ">
|
||
<a href="#proposals" class="WZtabs">
|
||
<img class="proposals_off" src="/skins/icons/proposition_off32.png" title="{% trans 'phraseanet:: propositions' %}"/>
|
||
<img class="proposals_on" src="/skins/icons/proposition_on32.png" title="{% trans 'phraseanet:: propositions' %}"/>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="#thesaurus_tab" class="WZtabs">
|
||
<img src="/skins/icons/thesaurus_32.png" title="{% trans 'phraseanet:: thesaurus' %}"/>
|
||
</a>
|
||
</li>
|
||
{% endif %}
|
||
<li style="float:right;">
|
||
<a href="#" class="escamote" style="margin:8px 0;">
|
||
<img src="/skins/icons/workzoneEscamote.png" title="{% trans 'Close the WorkZone' %}"/>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
<div id="baskets" class="PNB" style="top:52px;">
|
||
{% import 'prod/WorkZone/Macros.html.twig' as WorkZoneMacros %}
|
||
{{WorkZoneMacros.make_bloc(app, WorkZone)}}
|
||
</div>
|
||
{% if GV_thesaurus %}
|
||
<div id="proposals" class="PNB" style="top:52px;"
|
||
ondblclick="return(thesau_dblclickThesaurus(event));" onclick="return(thesau_clickThesaurus(event));">
|
||
</div>
|
||
<div id="thesaurus_tab" class="PNB" style="top:52px;">
|
||
<div id="THPD_tabs">
|
||
<ul>
|
||
<li class="th_tab"><a href="#THPD_T"><span>{% trans 'prod::thesaurusTab:thesaurus' %}</span></a></li>
|
||
{% if app['authentication'].getUser().ACL().has_access_to_module('thesaurus') %}
|
||
<li class="th_tab"><a href="#THPD_C"><span>{% trans 'prod::thesaurusTab:candidats' %}</span></a></li>
|
||
{% endif %}
|
||
</ul>
|
||
<div class="ui-tabs-panels-container">
|
||
<div id="THPD_T">
|
||
<div id='THPD_WIZARDS' style="position:relative; top:0px; left:0px; height:auto; width:100%;">
|
||
<div class="wizard wiz_0">
|
||
<!-- empty wizard -->
|
||
</div>
|
||
<div class="wizard wiz_1" style="display:none">
|
||
<div class="txt">{% trans 'prod::thesaurusTab:wizard:accepter le terme candidat' %}</div>
|
||
</div>
|
||
<div class="wizard wiz_2" style="display:none">
|
||
<div class="txt">{% trans 'prod::thesaurusTab:wizard:remplacer par le terme' %}</div>
|
||
</div>
|
||
<form class="gform form-inline" onsubmit="T_Gfilter(this);return(false);">
|
||
<div class="input-append">
|
||
<input type="text" name="search_value" class="input-medium" onkeyup="T_Gfilter_delayed(this.value, 300);" />
|
||
<input type="submit" class="th_ok btn" value="{% trans 'boutton::rechercher' %}" />
|
||
<input type="button" class="th_cancel btn" value="{% trans 'boutton::annuler' %}" onclick="thesauCancelWizard();return(false);"/>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div id='THPD_T_treeBox' class="searchZone" style="position:absolute; top:45px; bottom:0px; left:0px; width:100%; overflow:auto">
|
||
<div onclick="Xclick(event);return(false);" ondblclick="TXdblClick(event);">
|
||
<ul class="treeview" id="THPD_T_tree">
|
||
{% for base in search_datas['bases'] %}
|
||
{% if base['thesaurus'] %}
|
||
<li id="TX_P.{{base['sbas_id']}}.T" class="expandable{% if loop.last %} last{% endif %}">
|
||
<div class="hitarea expandable-hitarea"></div>
|
||
<span>{{base['sbas_id']|sbas_labels(app)}}</span>
|
||
<ul style="display:none">{% trans 'chargement' %}</ul>
|
||
</li>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% if app['authentication'].getUser().ACL().has_access_to_module('thesaurus') %}
|
||
<div id="THPD_C">
|
||
<div id='THPD_C_treeBox' class="searchZone">
|
||
<div onclick="Xclick(event);return(false);" ondblclick="CXdblClick(event);">
|
||
<ul class="treeview" id="THPD_C_tree">
|
||
{% for base in search_datas['bases'] %}
|
||
{% if base['cterms'] %}
|
||
<li id="CX_P.{{base['sbas_id']}}.C" class="expandable{% if loop.last %} last{% endif %}">
|
||
<div class="hitarea expandable-hitarea"></div>
|
||
<span>{{base['sbas_id']|sbas_labels(app)}}</span>
|
||
<ul style="display:none">{% trans 'chargement' %}</ul>
|
||
</li>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
<div id="basket_menu" class="context-menu context-menu-theme-vista" style="display:none;">
|
||
<ul style="list-style-type:none;margin:0;padding:0">
|
||
<li class="context-menu-item">
|
||
<div class="context-menu-item-inner">
|
||
<a title="{% trans 'action:: nouveau panier' %}" class="dialog small-dialog" href="{{ path('prod_baskets_create') }}">
|
||
<img style="cursor:pointer;" src="/skins/icons/mtadd_0.gif" title="{% trans 'action:: nouveau panier' %}" />
|
||
{% trans 'action:: nouveau panier' %}
|
||
</a>
|
||
</div>
|
||
<div class="context-menu-item-inner">
|
||
<a title="{% trans 'Browse Baskets' %}" class="dialog" href="{{ path('prod_workzone_browse') }}">
|
||
{% trans 'Browse Baskets' %}
|
||
</a>
|
||
</div>
|
||
{% if app['phraseanet.registry'].get('GV_multiAndReport') and app['authentication'].getUser().ACL().has_right('addrecord') %}
|
||
<div class="context-menu-item-inner">
|
||
<a title="{% trans 'action:: nouveau reportage' %}" class="dialog small-dialog" href="{{ path('prod_stories_create') }}">
|
||
<img style="cursor:pointer;" src="/skins/icons/mtadd_0.gif" title="{% trans 'action:: nouveau reportage' %}" />
|
||
{% trans 'action:: nouveau reportage' %}
|
||
</a>
|
||
</div>
|
||
{% endif %}
|
||
</li>
|
||
<li class="context-menu-item">
|
||
<div class="context-menu-item-inner" onclick="return p4.WorkZone.refresh('current','date');">
|
||
<img style="cursor:pointer;" src="/skins/icons/cal.png" title="{% trans 'phraseanet:: tri par date' %}" />
|
||
{% trans 'phraseanet:: tri par date' %}
|
||
</div>
|
||
</li>
|
||
<li class="context-menu-item">
|
||
<div class="context-menu-item-inner" onclick="return p4.WorkZone.refresh('current','name');">
|
||
<img style="cursor:pointer;" src="/skins/icons/alpha.png" title="{% trans 'phraseanet:: tri par nom' %}" />
|
||
{% trans 'phraseanet:: tri par nom' %}
|
||
</div>
|
||
</li>
|
||
<li class="context-menu-item">
|
||
<div class="context-menu-item-inner" onclick="basketPrefs();">
|
||
{% trans 'Preferences' %}
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="PNB" id="rightFrame" style="left:auto; width:{{ w2 ~ '%' }}">
|
||
<div id="headBlock" class="PNB" style="height: 90px; bottom: auto;">
|
||
<div style="margin: 15px auto; line-height: 30px; width: 580px;">
|
||
<form id="searchForm" method="POST" action="{{ path('prod_query') }}" name="phrasea_query" class="phrasea_query">
|
||
<div class="input-append">
|
||
<input autocomplete="off" class="search query" id="EDIT_query" name="qry" type="text" name="qry" value="{{app['authentication'].getUser().getPrefs('start_page_query')}}">
|
||
<a href="#" class="btn btn-inverse adv_trigger adv_search_button">
|
||
<img src="/skins/icons/settings.png" title="{% trans 'Advanced Search' %}"/>
|
||
</a>
|
||
<button type="submit" class="btn btn-inverse" style="font-size:14px">{% trans 'boutton::rechercher' %}</button>
|
||
</div>
|
||
<div class="control-group" style="margin:5px;">
|
||
<div class="controls">
|
||
{% if GV_multiAndReport %}
|
||
<label for="mode_type_doc" class="radio inline">
|
||
<input type="radio" value="0" class="mode_type_doc" name="search_type" {% if GV_defaultQuery_type == 0 %}checked="checked"{% endif %} id="mode_type_doc"/>
|
||
{% trans 'phraseanet::type:: documents' %}
|
||
</label>
|
||
<label for="mode_type_reg" class="radio inline">
|
||
<input type="radio" value="1" class="mode_type_reg" name="search_type" {% if GV_defaultQuery_type != 0 %}checked="checked"{% endif %} id="mode_type_reg"/>
|
||
{% trans 'phraseanet::type:: reportages' %}
|
||
</label>
|
||
{% else %}
|
||
<input type="hidden" value="0" name="search_type" />
|
||
{% endif %}
|
||
<select name="record_type" id="recordtype_sel" class="input-small">
|
||
<option value="">{% trans 'Tout type' %}</option>
|
||
<option value="image">{% trans 'Image' %}</option>
|
||
<option value="video">{% trans 'Video' %}</option>
|
||
<option value="audio">{% trans 'Audio' %}</option>
|
||
<option value="document">{% trans 'Document' %}</option>
|
||
<option value="flash">{% trans 'Flash' %}</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<input type="hidden" name="pag" id="formAnswerPage" value="">
|
||
<input type="hidden" name="sel" value="">
|
||
|
||
<div class="adv_options" style="display:none;">
|
||
<table style="width:100%; table-layout:fixed;">
|
||
<tr>
|
||
<td style="width:50%; vertical-align:top;">
|
||
<div class="sbasglob">
|
||
<div class="btn-toolbar">
|
||
<input class="btn btn-inverse" type="button"
|
||
value="{% trans 'boutton:: selectionner toutes les bases' %}" onclick="checkBases(true);" />
|
||
<input class="btn btn-inverse" type="button"
|
||
value="{% trans 'boutton:: selectionner aucune base' %}" onclick="checkBases(false);" />
|
||
</div>
|
||
{{_self.bas_list(module_prod, search_datas)}}
|
||
</div>
|
||
</td>
|
||
<td style="width:50%; vertical-align:top;">
|
||
<div id="sbasfiltercont">
|
||
<div class="btn-toolbar">
|
||
<input class="btn btn-inverse" type="button" value="{% trans 'Re-initialiser' %}" onclick="reset_adv_search();" />
|
||
</div>
|
||
|
||
<span>{% trans 'Trier par ' %}</span>
|
||
<select name="sort" class="input-small">
|
||
<option value="" {% if app['phraseanet.SE'].getDefaultSort() is empty %}selected="selected" class="default-selection"{% endif %}>{{ "No sort"|trans }}</option>
|
||
{% for sort in search_datas['sort'] %}
|
||
<option value="{{ sort.fieldname }}" {% if sort.fieldname == app['phraseanet.SE'].getDefaultSort() %}selected="selected" class="default-selection"{% endif %}>{{ sort.fieldname }}</option>
|
||
{% endfor %}
|
||
</select>
|
||
<select name="ord" class="input-medium">
|
||
{% for ord, ord_name in app['phraseanet.SE'].getAvailableOrder() %}
|
||
<option value="{{ ord }}">{{ ord_name }}</option>
|
||
{% endfor %}
|
||
</select>
|
||
{% if app['phraseanet.SE'].hasStemming() and app['phraseanet.SE'].isStemmingEnabled() %}
|
||
<div>
|
||
<label class="checkbox">
|
||
<input type="checkbox" checked="checked" name="stemme" /> {% trans 'rechercher par stemme' %}
|
||
</label>
|
||
</div>
|
||
{% endif %}
|
||
<div class="field_filter">
|
||
<span>{% trans 'Les termes apparaissent dans le(s) champs' %}</span>
|
||
<select size="8" multiple onchange="checkFilters(true);" name="fields[]" style="vertical-align:middle; width:99%;">
|
||
<option value="phraseanet--all--fields">{% trans 'rechercher dans tous les champs' %}</option>
|
||
{% for field_id, field in search_datas['fields'] %}
|
||
{% if field['type'] != 'date' %}
|
||
<option class="field_switch field_{{field['sbas']|join(' field_')}}" value="{{field_id}}">{{field['fieldname']}}</option>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</select>
|
||
</div>
|
||
|
||
{% set status_length = search_status|length %}
|
||
{% if status_length > 0 %}
|
||
<hr />
|
||
<div class="status_filter">
|
||
<span>{% trans 'Status des documents a rechercher' %}</span>
|
||
<table style="width: 100%;">
|
||
{% for n, stat in search_status %}
|
||
{% for s in stat %}
|
||
<tr>
|
||
<td>
|
||
{% if s['imgoff'] %}
|
||
<img src="{{s['imgoff']}}" title="{{s['labels_off_i18n'][app['locale.I18n']]}}" />
|
||
{% endif %}
|
||
<label class="checkbox inline">
|
||
<input onchange="checkFilters(true);" class="field_switch field_{{s['sbas']|join(' field_')}}"
|
||
type="checkbox" value="{{s['sbas']|join(' field_')}}"
|
||
n="{{n}}" name="status[{{n}}][off][]" />
|
||
{{s['labels_off_i18n'][app['locale.I18n']]}}
|
||
</label>
|
||
</td>
|
||
<td>
|
||
{% if s['imgoff'] %}
|
||
<img src="{{s['imgon']}}" title="{{s['labels_on_i18n'][app['locale.I18n']]}}" />
|
||
{% endif %}
|
||
<label class="checkbox inline">
|
||
<input onchange="checkFilters(true);" class="field_switch field_{{s['sbas']|join(' field_')}}"
|
||
type="checkbox" value="{{s['sbas']|join(' field_')}}"
|
||
n="{{n}}" name="status[{{n}}][on][]"/>
|
||
{{s['labels_on_i18n'][app['locale.I18n']]}}
|
||
</label>
|
||
</td>
|
||
</tr>
|
||
{% endfor %}
|
||
{% endfor %}
|
||
</table>
|
||
</div>
|
||
{% endif %}
|
||
|
||
{% if app['phraseanet.SE'].getAvailableDateFields() | length > 0 %}
|
||
<hr />
|
||
<div class="date_filter">
|
||
<table>
|
||
<tr>
|
||
<td colspan="2">{% trans 'Rechercher dans un champ date' %}</td>
|
||
<td colspan="2">
|
||
<select name="date_field" class="input-medium">
|
||
{% for date in search_datas['dates'] %}
|
||
<option onchange="checkFilters(true);"
|
||
class="" value="{{ date.fieldname }}">{{ date.fieldname }}</option>
|
||
{% endfor %}
|
||
|
||
{% set date_field_names = [] %}
|
||
{% for field in search_datas['dates'] %}
|
||
{% set date_field_names = date_field_names|merge([field.fieldname]) %}
|
||
{% endfor %}
|
||
<option value="{{ date_field_names|join('|') }}" selected="selected">
|
||
{% trans 'rechercher dans tous les champs' %}
|
||
</option>
|
||
</select>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>{% trans 'phraseanet::time:: de' %}</td>
|
||
<td style="padding-right: 5px;">
|
||
<div class="input-prepend">
|
||
<span class="add-on"><i class="icon-calendar"></i></span>
|
||
<input onchange="checkFilters(true);" class="datepicker input-small" type="text" name="date_min" placeholder="{% trans %}YYYY/MM/DD{% endtrans %}" style="margin: 0;position: relative; z-index: 10001;" />
|
||
</div>
|
||
</td>
|
||
<td>{% trans 'phraseanet::time:: a' %}</td>
|
||
<td>
|
||
<div class="input-prepend">
|
||
<span class="add-on"><i class="icon-calendar"></i></span>
|
||
<input onchange="checkFilters(true);" class="datepicker input-small" type="text" name="date_max" placeholder="{% trans %}YYYY/MM/DD{% endtrans %}" style="margin: 0;position: relative; z-index: 10001;" />
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<!--
|
||
<div id="history-queries" class="PNB" style="top:30px;overflow:hidden;">
|
||
<div class="PNB10" style="overflow-y:auto;overflow-x:auto;">
|
||
{{queries_history|raw}}
|
||
</div>
|
||
</div>
|
||
{% if queries_topics %}
|
||
<div id="choosen-topics" class="PNB" style="top:30px;overflow:hidden;">
|
||
<div class="PNB10" style="overflow-y:auto;overflow-x:auto;">
|
||
{{queries_topics|raw}}
|
||
</div>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
</div>-->
|
||
</div>
|
||
|
||
<div id="idFrameT" class="PNB ui-corner-top" style="top:110px;">
|
||
<div class="tools PNB10 btn-toolbar" style="font-size:10px; z-index:100; height:28px;">
|
||
|
||
<span class="dropdownButton">
|
||
<div class="btn-group">
|
||
<button id="selectCase" class="default_action btn btn-inverse"> </button>
|
||
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||
<ul class="dropdown-menu">
|
||
<li>
|
||
<a class="answer_selector all_selector">
|
||
{% trans 'reponses:: selectionner tout' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="answer_selector none_selector">
|
||
{% trans 'reponses:: selectionner rien' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="answer_selector image_selector">
|
||
{% trans 'phraseanet::type:: images' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="answer_selector document_selector">
|
||
{% trans 'phraseanet::type:: documents' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="answer_selector video_selector">
|
||
{% trans 'phraseanet::type:: videos' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="answer_selector audio_selector">
|
||
{% trans 'phraseanet::type:: audios' %}
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</span>
|
||
|
||
<span class="dropdownButton">
|
||
<div class="btn-group">
|
||
<button class="default_action TOOL_disktt_btn results_window btn btn-inverse">
|
||
<img src="/skins/prod/000000/images/disktt_history.gif" height="16" width="16" /> {% trans 'action : exporter' %}
|
||
</button>
|
||
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||
<ul class="dropdown-menu">
|
||
<li>
|
||
<a class="TOOL_print_btn results_window">
|
||
<img src="/skins/prod/000000/images/print_history.gif" height="16" width="16" />
|
||
{% trans 'action : print' %}
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</span>
|
||
|
||
{% set actions = {} %}
|
||
{% if app['authentication'].getUser().ACL().has_right('modifyrecord') %}
|
||
{% set label %}
|
||
{% trans 'action : editer' %}
|
||
{% endset %}
|
||
{% set actions = actions|merge( { 'edit' : {'icon': "/skins/prod/000000/images/ppen_history.gif", 'class':'TOOL_ppen_btn', 'label' : label} }) %}
|
||
{% endif %}
|
||
{% if app['authentication'].getUser().ACL().has_right('changestatus') %}
|
||
{% set label %}
|
||
{% trans 'action : status' %}
|
||
{% endset %}
|
||
{% set actions = actions|merge( { 'status' : {'icon': "/skins/prod/000000/images/chgstatus_history.gif", 'class':'TOOL_chgstatus_btn', 'label' : label} }) %}
|
||
{% endif %}
|
||
{% if app['authentication'].getUser().ACL().has_right('deleterecord') and app['authentication'].getUser().ACL().has_right('addrecord') %}
|
||
{% set label %}
|
||
{% trans 'action : collection' %}
|
||
{% endset %}
|
||
{% set actions = actions|merge( { 'move' : {'icon': "/skins/prod/000000/images/chgcoll_history.gif", 'class':'TOOL_chgcoll_btn', 'label' : label} }) %}
|
||
{% endif %}
|
||
|
||
{% set n_actions = actions|length %}
|
||
{% if n_actions > 1 %}
|
||
<span class="dropdownButton">
|
||
<div class="btn-group">
|
||
{% for action in actions %}
|
||
{% if loop.first %}
|
||
<button class="default_action {{ action.class }} results_window btn btn-inverse">
|
||
<img src="{{ action.icon }}" height="16" width="16" /> {{ action.label }}
|
||
</button>
|
||
{% endif %}
|
||
{% endfor %}
|
||
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||
<ul class="dropdown-menu">
|
||
{% for action in actions %}
|
||
{% if not loop.first %}
|
||
<li>
|
||
<a class="{{ action.class }} results_window">
|
||
<img src="{{ action.icon }}" height="16" width="16" />
|
||
{{ action.label }}
|
||
</a>
|
||
</li>
|
||
{% if not loop.last %}
|
||
<li class="divider"></li>
|
||
{% endif %}
|
||
{% endif %}
|
||
{% endfor %}
|
||
</ul>
|
||
</div>
|
||
</span>
|
||
{% elseif n_actions == 1 %}
|
||
<span class="classicButton">
|
||
<div class="btn-group">
|
||
{% for action in actions %}
|
||
<button class="{{ action.class }} results_window btn btn-inverse">
|
||
<img src="{{ action.icon }}"/> {{ action.label }}
|
||
</button>
|
||
{% endfor %}
|
||
</div>
|
||
</span>
|
||
{% endif %}
|
||
|
||
{% if app['authentication'].getUser().ACL().has_right('push') and app['authentication'].getUser().ACL().has_right('bas_chupub') %}
|
||
<span class="dropdownButton">
|
||
<div class="btn-group">
|
||
<button class="TOOL_pushdoc_btn default_action results_window btn btn-inverse">
|
||
<img src="/skins/icons/push16.png" height="16" width="16" /> {% trans 'action : push' %}
|
||
</button>
|
||
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||
<ul class="dropdown-menu">
|
||
<li>
|
||
<a class="TOOL_feedback_btn results_window">
|
||
<img src="/skins/icons/feedback16.png" height="16" width="16" />
|
||
{% trans 'Feedback' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="TOOL_bridge_btn results_window" href="{{ path("prod_bridge_manager") }}">
|
||
<img src="/skins/icons/door.png" height="16" width="16" />
|
||
{% trans 'action : bridge' %}
|
||
</a>
|
||
</li>
|
||
<li class="divider"></li>
|
||
<li>
|
||
<a class="TOOL_publish_btn results_window">
|
||
<img src="/skins/icons/rss16.png" height="16" width="16" />
|
||
{% trans 'action : publier' %}
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</span>
|
||
{% elseif app['authentication'].getUser().ACL().has_right('push') %}
|
||
<span class="dropdownButton">
|
||
<div class="btn-group">
|
||
<button class="TOOL_pushdoc_btn default_action results_window btn btn-inverse" >
|
||
<img src="/skins/icons/push16.png" height="16" width="16" /> {% trans 'action : push' %}
|
||
</button>
|
||
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||
<ul class="submenu dropdown-menu">
|
||
<li>
|
||
<a class="TOOL_feedback_btn results_window">
|
||
<img src="/skins/icons/feedback16.png" height="16" width="16" />
|
||
{% trans 'Feedback' %}
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</span>
|
||
{% elseif app['authentication'].getUser().ACL().has_right('bas_chupub') %}
|
||
<span class="dropdownButton">
|
||
<div class="btn-group">
|
||
<button class="TOOL_pushdoc_btn default_action results_window btn btn-inverse" >
|
||
<img src="/skins/icons/door.png" height="16" width="16" /> {% trans 'action : bridge' %}
|
||
</button>
|
||
<button class="trigger btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||
<ul class="submenu dropdown-menu">
|
||
<li>
|
||
<a class="TOOL_publish_btn results_window">
|
||
<img src="/skins/icons/rss16.png" height="16" width="16" />
|
||
{% trans 'action : publier' %}
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</span>
|
||
{% endif %}
|
||
|
||
{% if app['authentication'].getUser().ACL().has_right('doctools') %}
|
||
<span class="classicButton">
|
||
<div class="btn-group">
|
||
<button class="TOOL_imgtools_btn results_window btn btn-inverse" >
|
||
<img src="/skins/prod/000000/images/imgtools_history.gif" height="16" width="16" /> {% trans 'action : outils' %}
|
||
</button>
|
||
</div>
|
||
</span>
|
||
{% endif %}
|
||
{% if app['authentication'].getUser().ACL().has_right('deleterecord') %}
|
||
<span class="classicButton">
|
||
<div class="btn-group">
|
||
<button class="TOOL_trash_btn results_window btn btn-inverse" >
|
||
<img src="/skins/icons/delete.png" height="16" width="16" /> {% trans 'action : supprimer' %}
|
||
</button>
|
||
</div>
|
||
</span>
|
||
{% endif %}
|
||
</div>
|
||
<div id="answers" class=" PNB10" style="top:48px; bottom:30px;">
|
||
<script>
|
||
$(document).ready(function(){
|
||
{% if app['authentication'].getUser().getPrefs('start_page') == 'QUERY' %}
|
||
$('form[name="phrasea_query"]').addClass('triggerAfterInit');
|
||
{% elseif app['authentication'].getUser().getPrefs('start_page') == 'LAST_QUERY' %}
|
||
$('form[name="phrasea_query"]').addClass('triggerAfterInit');
|
||
{% elseif app['authentication'].getUser().getPrefs('start_page') == 'PUBLI' %}
|
||
getHome('PUBLI');
|
||
{% endif %}
|
||
});
|
||
</script>
|
||
</div>
|
||
<div id="answers_status" class="PNB">
|
||
<table>
|
||
<tr>
|
||
<td class="infos">
|
||
<a href="#" onclick="lookBox(this,event);return false;">{% trans 'Preferences' %} </a>
|
||
|
|
||
<span id="tool_results">
|
||
|
||
</span>
|
||
</td>
|
||
<td class="navigation">
|
||
<div id="tool_navigate"></div>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div>
|
||
<form style="visibility:hidden;display:none;" name="formDownload" action="{{ path('check_download') }}" method="post" target="HFrameZ" >
|
||
<input type="hidden" name="act" value="DOWNLOAD" />
|
||
<input type="hidden" name="lst" value="" />
|
||
<input type="hidden" name="fromchu" value="" />
|
||
<input type="hidden" name="type" value="" />
|
||
<input type="checkbox" name="obj[]" value="document" />
|
||
<input type="checkbox" name="obj[]" value="preview" />
|
||
<input type="checkbox" name="obj[]" value="caption" />
|
||
<input type="hidden" name="SSTTID" value="" />
|
||
</form>
|
||
<form style="visibility:hidden;display:none;" name="formZ" action="???" method="post">
|
||
<input type="hidden" name="act" value="???" />
|
||
<input type="hidden" name="p0" value="?" />
|
||
<input type="hidden" name="p1" value="?" />
|
||
</form>
|
||
<div id="idFrameW0">
|
||
<div class="pbarBck">
|
||
<div id="idProgressBar0" class="pbarFrt" style="width:0%;"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
{% endblock %}
|
||
|
||
{% block extra_content %}
|
||
|
||
<div id="MESSAGE"></div>
|
||
<div id="MESSAGE-push"></div>
|
||
<div id="MESSAGE-publi"></div>
|
||
<div id="DIALOG"></div>
|
||
<div id="keyboard-dialog" class="{% if app['authentication'].getUser().getPrefs('keyboard_infos') != '0' %}auto{% endif %}" style="display:none;" title="{% trans 'raccourci :: a propos des raccourcis claviers' %}">
|
||
<div>
|
||
<h1>{% trans 'Raccourcis claviers en cours de recherche : ' %}</h1>
|
||
<ul>
|
||
<li>{% trans 'Raccourcis:: ctrl-a : tout selectionner ' %}</li>
|
||
<li>{% trans 'Raccourcis:: ctrl-p : imprimer la selection ' %}</li>
|
||
<li>{% trans 'Raccourcis:: ctrl-e : editer la selection ' %}</li>
|
||
<li>{% trans 'Raccourcis::fleche gauche : page precedente ' %}</li>
|
||
<li>{% trans 'Raccourcis::fleche droite : page suivante ' %}</li>
|
||
<li>{% trans 'Raccourcis::fleche haut : scroll vertical ' %}</li>
|
||
<li>{% trans 'Raccourcis::fleche bas : scroll vertical ' %}</li>
|
||
</ul>
|
||
</div>
|
||
<div>
|
||
<h1>{% trans 'Raccourcis claviers de la zone des paniers : ' %}</h1>
|
||
<ul>
|
||
<li>{% trans 'Raccourcis:: ctrl-a : tout selectionner ' %}</li>
|
||
<li>{% trans 'Raccourcis:: ctrl-p : imprimer la selection ' %}</li>
|
||
<li>{% trans 'Raccourcis:: ctrl-e : editer la selection ' %}</li>
|
||
</ul>
|
||
</div>
|
||
<div>
|
||
<h1>{% trans 'Raccourcis claviers en cours de editing : ' %}</h1>
|
||
<ul>
|
||
<li>{% trans 'Raccourcis::tab/shift-tab se ballade dans les champs ' %}</li>
|
||
</ul>
|
||
</div>
|
||
<div>
|
||
<h1>{% trans 'Raccourcis claviers en cours de preview : ' %}</h1>
|
||
<ul>
|
||
<li>{% trans 'Raccourcis::fleche gauche : en avant ' %}</li>
|
||
<li>{% trans 'Raccourcis::fleche gauche : en arriere ' %}</li>
|
||
<li>{% trans 'Raccourcis::espace : arreter/demarrer le diaporama ' %}</li>
|
||
</ul>
|
||
</div>
|
||
<div>
|
||
<ul>
|
||
<li>{% trans 'Vous pouvez quitter la plupart des fenetres survolantes via la touche echap ' %}</li>
|
||
</ul>
|
||
</div>
|
||
<div>
|
||
<ul>
|
||
<li>
|
||
<label class="checkbox" for="keyboard-stop">
|
||
<input id="keyboard-stop" type="checkbox"/>
|
||
{% trans 'raccourcis :: ne plus montrer cette aide' %}
|
||
</label>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
{{cgus_agreement|raw}}
|
||
|
||
<div style="display:none;position:relative;" id="look_box" title="{% trans 'Preferences' %}" >
|
||
<div class="tabs">
|
||
<ul>
|
||
<li><a href="#look_box_screen">{% trans 'Affichage' %}</a></li>
|
||
<li><a href="#look_box_settings">{% trans 'Configuration' %}</a></li>
|
||
</ul>
|
||
<div id="look_box_screen">
|
||
<div class="box">
|
||
<div class="" style="float:left; width:100%;margin-top:20px;">
|
||
{% set mod = app['authentication'].getUser().getPrefs('advanced_search_reload') %}
|
||
<label class="checkbox inline" for="user_settings_advanced_search_reload">
|
||
<input onchange="setPref('advanced_search_reload',$(this).attr('checked')?'1' : '0');" name="advanced_search_reload" type="checkbox" style="margin: 3px 0 0 -18px;" class="checkbox" value="1" id="user_settings_advanced_search_reload" {% if mod == '1' %}checked="checked"{% endif %}/>
|
||
{% trans 'Use latest search settings on Production loading' %}
|
||
</label>
|
||
</div>
|
||
</div>
|
||
<div class="box">
|
||
<div class="" style="float:left; width:49%;">
|
||
<h1>{% trans 'Mode de presentation' %}</h1>
|
||
{% set mod = app['authentication'].getUser().getPrefs('view') %}
|
||
<label class="radio inline" for="thumbs_view">
|
||
<input onchange="setPref('view',$(this).val());" name="view_type" type="radio" style="margin: 3px 0 0 -18px;" class="radio" value="thumbs" id="thumbs_view" {% if mod == 'thumbs' %}checked="checked"{% endif %}/>
|
||
{% trans 'reponses:: mode vignettes' %}
|
||
</label>
|
||
<label class="radio inline" for="list_view">
|
||
<input onchange="setPref('view',$(this).val());" name="view_type" type="radio" style="margin: 3px 0 0 -18px;" class="radio" value="list" id="list_view" {% if mod == 'list' %}checked="checked"{% endif %}/>
|
||
{% trans 'reponses:: mode liste' %}
|
||
</label>
|
||
</div>
|
||
<div style="float:right; width:49%;">
|
||
<h1>{% trans 'Theme' %}</h1>
|
||
{% for color, file in css %}
|
||
<div title="{% trans 'Selecteur de theme' %}" class="colorpicker_box"
|
||
onclick="setCss('{{color}}');" style="width:16px;height:16px;background-color:{{ '#' ~ color ~ ';' }}"> </div>
|
||
{% endfor %}
|
||
</div>
|
||
</div>
|
||
<div class="box">
|
||
{% set rollover_thumbnail = app['authentication'].getUser().getPrefs('rollover_thumbnail') %}
|
||
<h1>{% trans 'Presentation de vignettes' %}</h1>
|
||
<label class="radio" for="rollover_caption">
|
||
<input onchange="setPref('rollover_thumbnail',$(this).val());" name="rollover_thumbnail" type="radio" class="radio" value="caption" id="rollover_caption" {% if rollover_thumbnail == 'caption' %}checked="checked" {% endif %}/>
|
||
{% trans 'Iconographe (description au rollover)' %}
|
||
</label>
|
||
<label class="radio" for="rollover_preview">
|
||
<input onchange="setPref('rollover_thumbnail',$(this).val());" name="rollover_thumbnail" type="radio" class="radio" value="preview" id="rollover_preview" {% if rollover_thumbnail == 'preview' %}checked="checked" {% endif %}/>
|
||
{% trans 'Graphiste (preview au rollover)' %}
|
||
</label>
|
||
</div>
|
||
<div class="box">
|
||
{% set technical_display = app['authentication'].getUser().getPrefs('technical_display') %}
|
||
<h1>{% trans 'Display technical data' %}</h1>
|
||
<label class="radio" for="technical_show">
|
||
<input onchange="setPref('technical_display',$(this).val());" name="technical_display" type="radio" class="radio" value="1" id="technical_show" {% if technical_display == '1' %}checked="checked"{% endif %}/>
|
||
{% trans 'In the answer grid' %}
|
||
</label>
|
||
<label class="radio" for="technical_group">
|
||
<input onchange="setPref('technical_display',$(this).val());" name="technical_display" type="radio" class="radio" value="group" id="technical_group" {% if technical_display == 'group' %}checked="checked"{% endif %}/>
|
||
{% trans 'After metadata' %}
|
||
</label>
|
||
<label class="radio" for="technical_hide">
|
||
<input onchange="setPref('technical_display',$(this).val());" name="technical_display" type="radio" class="radio" value="0" id="technical_hide" {% if technical_display == '0' %}checked="checked"{% endif %}/>
|
||
{% trans 'Do not display' %}
|
||
</label>
|
||
</div>
|
||
<div class="box">
|
||
{% set doctype_display = app['authentication'].getUser().getPrefs('doctype_display') %}
|
||
<h1>{% trans 'Type de documents' %}</h1>
|
||
<label class="checkbox" for="doctype_display_show">
|
||
<input onchange="setPref('doctype_display',($(this).attr('checked') ? '1' :'0'));" name="doctype_display" type="checkbox" class="checkbox" value="1" id="doctype_display_show" {% if doctype_display != '0' %}checked="checked"{% endif %}/>
|
||
{% trans 'Afficher une icone' %}
|
||
</label>
|
||
|
||
</div>
|
||
<div class="box">
|
||
<div class="" style="float:left; width:49%;">
|
||
<h1>{% trans 'reponses:: images par pages : ' %}</h1>
|
||
<div class="box">
|
||
<div id="nperpage_slider" class="ui-corner-all" style="width:100px; display:inline-block;"></div>
|
||
<input type="text" readonly style="width:35px;" value="{{app['authentication'].getUser().getPrefs('images_per_page')}}" id="nperpage_value"/>
|
||
</div>
|
||
</div>
|
||
<div style="float:right; width:49%;">
|
||
<h1>{% trans 'reponses:: taille des images : ' %}</h1>
|
||
<div class="box">
|
||
<div id="sizeAns_slider" class="ui-corner-all" style="width:100px;display:inline-block;"></div>
|
||
<input type="hidden" value="{{app['authentication'].getUser().getPrefs('images_size')}}" id="sizeAns_value"/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="box">
|
||
<h1>{% trans 'Couleur de selection' %}</h1>
|
||
<div id="backcolorpickerHolder" class="colorpickerbox">
|
||
<div class="submiter">{% trans 'choisir' %}</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="look_box_settings">
|
||
<div class="row-fluid">
|
||
<div class="box">
|
||
<h1>{% trans 'Affichage au demarrage' %}</h1>
|
||
<form class="form-inline">
|
||
{% set start_page_pref = app['authentication'].getUser().getPrefs('start_page') %}
|
||
<select class="span4" name="start_page" onchange="start_page_selector();">
|
||
<option value="LAST_QUERY" {% if start_page_pref == 'LAST_QUERY' %}selected="selected"{% endif %} >
|
||
{% trans 'Ma derniere question' %}
|
||
</option>
|
||
<option value="QUERY" {% if start_page_pref == 'QUERY' %}selected="selected"{% endif %} >
|
||
{% trans 'Une question personnelle' %}
|
||
</option>
|
||
<option value="PUBLI" {% if start_page_pref == 'PUBLI' %}selected="selected"{% endif %} >
|
||
{% trans 'Publications' %}
|
||
</option>
|
||
<option value="HELP" {% if start_page_pref == 'HELP' %}selected="selected"{% endif %} >
|
||
{% trans 'Aide' %}
|
||
</option>
|
||
</select>
|
||
<input type="text" class="span4" name="start_page_value" value="{{app['authentication'].getUser().getPrefs('start_page_query')}}" style="display:{% if start_page_pref == 'QUERY' %}inline{% else %}none{% endif %}" />
|
||
<input type="button" class="btn btn-inverse" value="{% trans 'boutton::valider' %}" onclick="set_start_page();" />
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="PREVIEWBOX" class="PNB10" style="overflow:hidden;">
|
||
<div class="PNB" style="right:180px;">
|
||
<div id="PREVIEWTITLE" style="height:55px;bottom:auto;" class="PNB">
|
||
<div class="PNB10 ui-corner-top" id='PREVIEWTITLEWRAPPER'>
|
||
<span id="SPANTITLE" class="PNB10"> </span>
|
||
</div>
|
||
</div>
|
||
<div class="PNB" style="top:55px;">
|
||
<div id="PREVIEWLEFT" class="preview_col PNB" style="width:60%;right:auto;overflow:hidden;">
|
||
<div id="PREVIEWCURRENT" class="ui-corner-bottom PNB10" style="top:0;height:116px;bottom:auto;">
|
||
<div id="PREVIEWCURRENTGLOB" style=""></div>
|
||
</div>
|
||
<div id="PREVIEWIMGCONT" class="dblclick preview_col_cont PNB10" style="overflow:hidden;top:146px;"></div>
|
||
</div>
|
||
<div class="gui_vsplitter gui_vsplitter2" style="left:60%;">
|
||
|
||
</div>
|
||
<div id="PREVIEWRIGHT" class="preview_col PNB" style="top:7px;left:60%;overflow:hidden;">
|
||
<div id="PREVIEWIMGDESC" class="PNB10">
|
||
<ul class="PNB" style="height:30px;bottom:auto;">
|
||
<li><a href="#PREVIEWIMGDESCINNER-BOX">{% trans 'preview:: Description' %}</a></li>
|
||
<li><a href="#HISTORICOPS-BOX">{% trans 'preview:: Historique' %}</a></li>
|
||
{% if GV_google_api is not empty %}
|
||
<li><a href="#popularity-BOX">{% trans 'preview:: Popularite' %}</a></li>
|
||
{% endif %}
|
||
</ul>
|
||
<div id="PREVIEWIMGDESCINNER-BOX" class="descBoxes PNB">
|
||
<div id="PREVIEWIMGDESCINNER" class="PNB10"></div>
|
||
</div>
|
||
<div id="HISTORICOPS-BOX" class="descBoxes PNB">
|
||
<div id="HISTORICOPS" class="PNB10"></div>
|
||
</div>
|
||
{% if GV_google_api is not empty %}
|
||
<div id="popularity-BOX" class="descBoxes PNB">
|
||
<div id="popularity" class="PNB10"></div>
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="PNB" style="width:180px;left:auto;">
|
||
<div class="PNB10 ui-corner-all" style="height:20px;">
|
||
<div onclick="closePreview();" style="cursor:pointer;color:#CCCCCC;font-size:14px;font-weight:bold;text-align:center;text-decoration:underline;">
|
||
{% trans 'boutton::fermer' %}
|
||
</div>
|
||
</div>
|
||
<div id="PREVIEWOTHERS" style="top:40px;" class="PNB10 ui-corner-all">
|
||
<div id="PREVIEWOTHERSINNER" style=""></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="EDITWINDOW" style="display:none;" class="PNB10">
|
||
<div id="idFrameE" class="PNB"></div>
|
||
</div>
|
||
|
||
<div id="basket_preferences" style="display:none;">
|
||
<div class="box">
|
||
<h1>{% trans 'Presentation de vignettes de panier' %}</h1>
|
||
<div>
|
||
{% set basket_status_display = app['authentication'].getUser().getPrefs('basket_status_display') %}
|
||
<label for="basket_status_display" class="checkbox">
|
||
<input onchange="setPref('basket_status_display',($(this).attr('checked') ? '1' :'0'));"
|
||
name="basket_status_display" type="checkbox" class="checkbox" value="1"
|
||
id="basket_status_display" {% if basket_status_display == '1' %}checked="checked"{% endif %} />
|
||
{% trans 'Afficher les status' %}
|
||
</label>
|
||
</div>
|
||
<div>
|
||
{% set basket_caption_display = app['authentication'].getUser().getPrefs('basket_caption_display') %}
|
||
<label for="basket_caption_display" class="checkbox">
|
||
<input onchange="setPref('basket_caption_display',($(this).attr('checked') ? '1' :'0'));"
|
||
name="basket_caption_display" type="checkbox" class="checkbox" value="1"
|
||
id="basket_caption_display" {% if basket_caption_display == '1' %}checked="checked"{% endif %} />
|
||
{% trans 'Afficher la fiche descriptive' %}
|
||
</label>
|
||
</div>
|
||
<div>
|
||
{% set basket_title_display = app['authentication'].getUser().getPrefs('basket_title_display') %}
|
||
<label for="basket_title_display" class="checkbox">
|
||
<input onchange="setPref('basket_title_display',($(this).attr('checked') ? '1' :'0'));"
|
||
name="basket_title_display" type="checkbox" class="checkbox" value="1"
|
||
id="basket_title_display" {% if basket_title_display == '1' %}checked="checked"{% endif %} />
|
||
{% trans 'Afficher le titre' %}
|
||
</label>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="dialog_publicator" title="{% trans 'action : bridge' %}" style="display:none;"></div>
|
||
|
||
<div id="modal_feed" title="{% trans 'action : publier' %}" style="display:none;"></div>
|
||
<div id="dialog_dwnl" title="{% trans 'action : exporter' %}" style="display:none;"></div>
|
||
|
||
<script type="text/javascript">
|
||
{% include "prod/thesaurus.js" %}
|
||
</script>
|
||
<script type="text/javascript" src="{{ path('minifier', { 'g' : 'prod' }) }}"></script>
|
||
<script type="text/javascript">
|
||
|
||
$(document).ready(function() {
|
||
p4.reg_delete="{% if app['authentication'].getUser().getPrefs("warning_on_delete_story") %}true{% else %}false{% endif %}";
|
||
});
|
||
|
||
function pollNotifications(){
|
||
$.ajax({
|
||
type: "POST",
|
||
url: "{{ path('list_notifications') }}",
|
||
dataType: "json",
|
||
data: {
|
||
module : 1,
|
||
usr : {{app['authentication'].getUser().get_id()}}
|
||
},
|
||
error: function(){
|
||
window.setTimeout("pollNotifications();", 10000);
|
||
},
|
||
timeout: function(){
|
||
window.setTimeout("pollNotifications();", 10000);
|
||
},
|
||
success: function(data){
|
||
if(data)
|
||
manageSession(data, true);
|
||
var t = 120000;
|
||
if(data.apps && parseInt(data.apps)>1)
|
||
t = Math.round((Math.sqrt(parseInt(data.apps)-1) * 1.3 * 60000));
|
||
window.setTimeout("pollNotifications();", t);
|
||
|
||
return;
|
||
}
|
||
});
|
||
};
|
||
|
||
function setCss(color) {
|
||
$("#skinCss").attr("href","/include/minify/?f=skins/prod/"+color+"/prodcolor.css");
|
||
$.post("{{ path('save_pref') }}", {
|
||
prop: "css",
|
||
value: color,
|
||
t: Math.random()
|
||
}, function(data){
|
||
return;
|
||
});
|
||
if ($.browser.msie && $.browser.version === "6.0")
|
||
$("select").hide().show();
|
||
}
|
||
|
||
</script>
|
||
<script type="text/javascript" id="bitly_loader"></script>
|
||
|
||
{% endblock %}
|