Вход Регистрация
Файл: base-sys/admin/views/controllers/questions_pages.html
Строк: 432
<?php
{script}
{
literal}
window.editLangValue = function editLangValue(_prefix_key_callback){

    if ( !
window.question_langs_floatbox_display )
    {
        
window.question_langs_floatbox_display true;
        $.
post'{/literal}{url_for for="ADMIN_CTRL_Languages:ajaxEditLanguageValuesForm"}{literal}?prefix='+_prefix+'&key='+_key, {}, function(json){
            if(
document['ajaxLangValueEditForms'] == undefined)
                    {
                        
document['ajaxLangValueEditForms'] = [];
                    }

            
document['ajaxLangValueEditForms'][_prefix+'-'+_key] = new PEEP_FloatBox({$title'{/literal}{text key="admin+questions_edit_section_name_title"}{literal}'$contentsjson['markup'], width556});
                    
document['ajaxLangValueEditForms'][_prefix+'-'+_key+'callback'] = _callback;

            
document['ajaxLangValueEditForms'][_prefix+'-'+_key].bind("close", function() {
                
window.question_langs_floatbox_display false;
            });

            
PEEP.addScriptFiles(json['include_js'], function(){ PEEP.addScript(json['js']); });

        }, 
'json');
    }
}
{/
literal}
{/
script}




<
div class="peep_admin_profile_questions_list_div">

    <
table class="peep_table_2 peep_smallmargin peep_lables_table">
        <
tr class="peep_tr_first">
           
            <
th colspan="5" class="peep_tr_top">
                <
div class="peep_tr_top_buttons">
                    <
div class="peep_tr_top_button" onclick=' window.location.href="{$accountTypesUrl}"; '><div>{text key='admin+question_menu_account_types'}</div></div>
                    <
div class="peep_tr_top_button peep_tr_top_button_selected"><div>{text key='admin+question_menu_properties'}</div></div>
                </
div>
            </
th>
        </
tr>
        <
tr class="peep_tr_last peep_tr_titles">
            <
th class="question_label_th"   ><div class="question_label_div">{text key='admin+question_column_question'}</div></th>
            <
th class="question_account_type_th"><div class="question_account_type_div">{text key='admin+question_column_type'}</div></th>
            <
th class="question_values_th"><div class="question_values_div">{text key='admin+question_column_values'}</div></th>
            <
th class="question_buttons_th" ><div class="question_buttons_div"></div></th>
            <
th class="question_require_th peep_small peep_lightweigh" ><div class="question_require_div">{text key='admin+question_column_require'}</div></th>
            <
th class="question_sign_up_th peep_small peep_lightweight"> <div class="question_sign_up_div">{text key='admin+question_column_sign_up'}</div></th>
            <
th class="question_edit_th peep_small peep_lightweight" ><div class="question_edit_div">{text key='admin+question_column_profile_edit'}</div></th>
            <
th class="question_view_th peep_small peep_lightweight" ><div class="question_view_div">{text key='admin+question_column_view'}</div></th>
            <
th class="question_search_th peep_small peep_lightweight" ><div class="question_search_div">{text key='admin+question_column_search'}</div></th>
        </
tr>
    </
table>

    {foreach 
from=$questionsBySections key='section' item='questions' }
    <
table class="peep_table_2 peep_smallmargin peep_admin_profile_questions_list {if !$section }no_section{else}{$section}{/if} " sectionName={if $section }"{$section}"{else}"no_section"{/if}>
        <
tr class="question_section_tr peep_tr_first">
            <
th class="section_value {if $section}peep_admin_profile_question_dnd_cursor{/if}" colspan="9">
               <
div class="peep_section_label" >{if $section}{text key="base+questions_section_`$section`_label"}{else}{text key="base+questions_no_section_label"}{/if}</div>

                   <
div class="delete_edit_buttons quest_buttons peep_right">
                        {if 
$section}
                            <
a href="javascript://" class="peep_lbutton edit_sectionNameLang" style="visibility:hidden;" >{text key='admin+btn_label_edit'}</a>
                            {if 
$sectionList[$section]->isDeletable }
                                <
a href="javascript://" class="peep_lbutton peep_red section_delete_button"style="visibility:hidden;" >{text key='admin+btn_label_delete'}</a>
                            {/if}
                        {/if}
                    </
div>

            </
th>
        </
tr>
       {if isset(
$questions)}
           {foreach 
from=$questions item='question' name='question' }
                  {
capture name="evenstyle"}{cycle name="acc_`$section`" values="peep_alt1,peep_alt2"}{/capture}
                  <
tr class="question_tr peep_admin_profile_question_dnd_cursor {if $smarty.foreach.question.last}peep_tr_last{/if}" question_name="{$question.name}">
                    <
td class="question_label_td {$smarty.capture.evenstyle} peep_txtleft" >
                        <
div class="question_label_div peep_overflow_hidden"  >{text key="base+questions_question_`$question.name`_label"}</div>
                    </
td>

                    <
td class="question_account_type_td {$smarty.capture.evenstyle} peep_small" >
                        <
div class="question_account_type_div peep_overflow_hidden" >{text key="base+questions_question_presentation_`$question.presentation`_label"}</div>
                    </
td>

                    <
td class="question_values_td question_values_type_td {$smarty.capture.evenstyle} peep_small">
                        {if !empty(
$previewValues[$question.name])}
                            <
div class="question_values_div">{$previewValues[$question.name]}</div>                            
                        {else}
                            {if isset(
$questionValues[$question.name].values)}
                                {if !empty(
$question.parentUrl)}
                                    <
div class="question_values_div peep_overflow_hidden">{text key='admin+questions_matched_question_values' label=$question.parentLabel parentId=$question.parentId url=$question.parentUrl}</div>
                                {else}
                                <
div class="question_values_div">
                                    <
center><class="question_values" href="javascript://">{text key="admin+questions_values_count" count=$questionValues[$question.name].count}</a></center>

                                    <
div style="padding:0 0 0 15px;text-align:left;display:none;width:100px;overflow:hidden;" >
                                        <
ul style="list-style-type:disc;">
                                            {foreach 
from=$questionValues[$question.name].values item='value'}
                                                   <
li>{$valueLabels[$question.name][$value->value]}</li>
                                            {/foreach}
                                        </
ul>
                                    </
div>
                                </
div>
                                {/if}
                            {else}
                                <
div class="question_values_div"></div>
                            {/if}
                        {/if}
                    </
td>

                    <
td class="question_buttons_td {$smarty.capture.evenstyle} peep_nowrap quest_buttons">
                        
                            {if !empty(
$deleteEditButtons[$question.name])}
                                <
div class="question_buttons_div peep_overflow_hidden">
                                    {
$deleteEditButtons[$question.name]}
                                </
div>
                            {else}
                                <
div class="question_buttons_div delete_edit_buttons peep_overflow_hidden">
                                    <
input type="hidden" value="{$question.id}">
                                    <
a href="javascript://" class="peep_lbutton question_edit_button" style="visibility:hidden;">{text key='admin+btn_label_edit'}</a>
                                    {if 
$question.base!=&& $question.removable==&& empty($question.parentUrl)}
                                        <
a href="javascript://" class="peep_lbutton peep_red question_delete_button" style="visibility:hidden;">{text key='admin+btn_label_delete'}</a>
                                    {/if}
                                </
div>
                            {/if}
                    </
td>

                    <
td class="question_require_td {$smarty.capture.evenstyle}>
                        <
div class="question_require_div table_content_block" >
                            {if !empty(
$pagesCheckboxContent[$question.name]['required'])}
                                    {
$pagesCheckboxContent[$question.name]['required']}
                            {else}
                                <
div class="required peep_checkbox
                                     {if 
$questionList[$question.name].disable_required==1}
                                        {if 
$question.required==1}peep_checkbox_cell_marked_lock{else}peep_checkbox_cell_lock{/if}
                                     {else}
                                        {if 
$question.required==1}peep_checkbox_cell_marked{else}peep_checkbox_cell{/if}
                                     {/if}"
></div>
                            {/if}
                        </
div>
                    </
td>

                    <
td class="question_sign_up_td {$smarty.capture.evenstyle}>
                        <
div class="question_sign_up_div table_content_block ">
                            {if !empty(
$pagesCheckboxContent[$question.name]['join'])}
                                    {
$pagesCheckboxContent[$question.name]['join']}
                            {else}
                                <
div class="on_join peep_checkbox
                                     {if 
$questionList[$question.name].disable_on_join==1}
                                        {if 
$question.onJoin==1}peep_checkbox_cell_marked_lock{else}peep_checkbox_cell_lock{/if}
                                     {else}
                                        {if 
$question.onJoin==1}peep_checkbox_cell_marked{else}peep_checkbox_cell{/if}
                                     {/if}"
></div>
                            {/if}

                        </
div>
                    </
td>
                    <
td class="question_edit_td {$smarty.capture.evenstyle}>
                        <
div class="question_edit_div table_content_block ">
                            {if !empty(
$pagesCheckboxContent[$question.name]['edit'])}
                                    {
$pagesCheckboxContent[$question.name]['edit']}
                            {else}
                                    <
div class="on_edit peep_checkbox
                                                 {if 
$questionList[$question.name].disable_on_edit==1}
                                                    {if 
$question.onEdit==1}peep_checkbox_cell_marked_lock{else}peep_checkbox_cell_lock{/if}
                                                 {else}
                                                    {if 
$question.onEdit==1}peep_checkbox_cell_marked{else}peep_checkbox_cell{/if}
                                                 {/if}"
></div>
                            {/if}
                        </
div>
                    </
td>

                    <
td class="question_view_td {$smarty.capture.evenstyle}>
                        <
div class="question_view_div table_content_block ">
                            {if !empty(
$pagesCheckboxContent[$question.name]['view'])}
                                    {
$pagesCheckboxContent[$question.name]['view']}
                            {else}
                                <
div class="on_view peep_checkbox
                                     {if 
$questionList[$question.name].disable_on_view==1}
                                        {if 
$question.onView==1}peep_checkbox_cell_marked_lock{else}peep_checkbox_cell_lock{/if}
                                     {else}
                                        {if 
$question.onView==1}peep_checkbox_cell_marked{else}peep_checkbox_cell{/if}
                                     {/if}"
></div>
                            {/if}
                        </
div>
                    </
td>

                    <
td class="question_search_td {$smarty.capture.evenstyle}>
                        <
div class="question_search_div table_content_block ">
                            {if !empty(
$pagesCheckboxContent[$question.name]['search'])}
                                    {
$pagesCheckboxContent[$question.name]['search']}
                            {else}
                                <
div class="on_search peep_checkbox
                                     {if 
$questionList[$question.name].disable_on_search==1}
                                        {if 
$question.onSearch==1}peep_checkbox_cell_marked_lock{else}peep_checkbox_cell_lock{/if}
                                     {else}
                                        {if 
$question.onSearch==1}peep_checkbox_cell_marked{else}peep_checkbox_cell{/if}
                                     {/if}"
></div>
                            {/if}

                        </
div>
                    </
td>
                 </
tr>
           {/foreach}
        {/if}

        <
tr class="question_tr no_question" style="display:none;">
            <
td colspan="9"></td>
        </
tr>

        <
tr class="peep_tr_delimiter"><td></td></tr>
    </
table>
    {/foreach}
</
div>
<
div class="clearfix peep_std_margin">
    <
div class="peep_right">
        {
decorator name='button' class="peep_ic_add add_new_question_button peep_positive" langLabel='admin+questions_add_question_button'}
        {
decorator name='button' class="peep_ic_add add_new_section_button peep_positive" langLabel='admin+questions_add_section_button'}
    </
div>
</
div>
?>
Онлайн: 1
Реклама