当前位置: 首页>>代码示例>>PHP>>正文


PHP CategoryNewsSelection函数代码示例

本文整理汇总了PHP中CategoryNewsSelection函数的典型用法代码示例。如果您正苦于以下问题:PHP CategoryNewsSelection函数的具体用法?PHP CategoryNewsSelection怎么用?PHP CategoryNewsSelection使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了CategoryNewsSelection函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: preview

\treturn false;
};
// end -->
</script>
HTML;
    echo "\n    <script type=\"text/javascript\">\n    function preview(){";
    if ($config['allow_admin_wysiwyg'] == 1) {
        echo "submit_all_data();";
    }
    if ($config['allow_admin_wysiwyg'] == 2) {
        echo "document.getElementById('short_story').value = \$('#short_story').html();\n\tdocument.getElementById('full_story').value = \$('#full_story').html();";
    }
    echo "if(document.addnews.title.value == ''){ DLEalert('{$lang['addnews_alert']}', '{$lang['p_info']}'); }\n    else{\n        dd=window.open('','prv','height=400,width=750,left=0,top=0,resizable=1,scrollbars=1')\n        document.addnews.mod.value='preview';document.addnews.target='prv'\n        document.addnews.submit();dd.focus()\n        setTimeout(\"document.addnews.mod.value='editnews';document.addnews.target='_self'\",500)\n    }\n    }\n    function sendNotice( id ){\n\t\tvar b = {};\n\n\t\tb[dle_act_lang[3]] = function() { \n\t\t\t\$(this).dialog('close');\t\t\t\t\t\t\n\t\t};\n\n\t\tb['{$lang['p_send']}'] = function() { \n\t\t\tif ( \$('#dle-promt-text').val().length < 1) {\n\t\t\t\t\$('#dle-promt-text').addClass('ui-state-error');\n\t\t\t} else {\n\t\t\t\tvar response = \$('#dle-promt-text').val()\n\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\$('#dlepopup').remove();\n\t\t\t\t\$.post('engine/ajax/message.php', { id: id,  text: response, allowdelete: \"no\" },\n\t\t\t\t\tfunction(data){\n\t\t\t\t\t\tif (data == 'ok') { DLEalert('{$lang['p_send_ok']}', '{$lang['p_info']}'); }\n\t\t\t\t\t});\n\t\n\t\t\t}\t\t\t\t\n\t\t};\n\n\t\t\$('#dlepopup').remove();\n\t\t\t\t\t\n\t\t\$('body').append(\"<div id='dlepopup' title='{$lang['p_title']}' style='display:none'><br />{$lang['p_text']}<br /><br /><textarea name='dle-promt-text' id='dle-promt-text' class='ui-widget-content ui-corner-all' style='width:97%;height:100px; padding: .4em;'></textarea></div>\");\n\t\t\t\t\t\n\t\t\$('#dlepopup').dialog({\n\t\t\tautoOpen: true,\n\t\t\twidth: 500,\n\t\t\tbuttons: b\n\t\t});\n\n\t}\n\n    function confirmDelete(url, id){\n\n\t\tvar b = {};\n\t\n\t\tb[dle_act_lang[1]] = function() { \n\t\t\t\t\t\t\$(this).dialog(\"close\");\t\t\t\t\t\t\n\t\t\t\t    };\n\n\t\tb['{$lang['p_message']}'] = function() { \n\t\t\t\t\t\t\$(this).dialog(\"close\");\n\n\t\t\t\t\t\tvar bt = {};\n\t\t\t\t\t\n\t\t\t\t\t\tbt[dle_act_lang[3]] = function() { \n\t\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t    };\n\t\t\t\t\t\n\t\t\t\t\t\tbt['{$lang['p_send']}'] = function() { \n\t\t\t\t\t\t\t\t\t\tif ( \$('#dle-promt-text').val().length < 1) {\n\t\t\t\t\t\t\t\t\t\t\t \$('#dle-promt-text').addClass('ui-state-error');\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tvar response = \$('#dle-promt-text').val()\n\t\t\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t\t\t\t\$('#dlepopup').remove();\n\t\t\t\t\t\t\t\t\t\t\t\$.post('engine/ajax/message.php', { id: id,  text: response },\n\t\t\t\t\t\t\t\t\t\t\t  function(data){\n\t\t\t\t\t\t\t\t\t\t\t    if (data == 'ok') { document.location=url; } else { DLEalert('{$lang['p_not_send']}', '{$lang['p_info']}'); }\n\t\t\t\t\t\t\t\t\t\t  });\n\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#dlepopup').remove();\n\t\t\t\t\t\n\t\t\t\t\t\t\$('body').append(\"<div id='dlepopup' title='{$lang['p_title']}' style='display:none'><br />{$lang['p_text']}<br /><br /><textarea name='dle-promt-text' id='dle-promt-text' class='ui-widget-content ui-corner-all' style='width:97%;height:100px; padding: .4em;'></textarea></div>\");\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#dlepopup').dialog({\n\t\t\t\t\t\t\tautoOpen: true,\n\t\t\t\t\t\t\twidth: 500,\n\t\t\t\t\t\t\tbuttons: bt\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t    };\n\t\n\t\tb[dle_act_lang[0]] = function() { \n\t\t\t\t\t\t\$(this).dialog(\"close\");\n\t\t\t\t\t\tdocument.location=url;\t\t\t\t\t\n\t\t\t\t\t};\n\t\n\t\t\$(\"#dlepopup\").remove();\n\t\n\t\t\$(\"body\").append(\"<div id='dlepopup' title='{$lang['p_confirm']}' style='display:none'><br /><div id='dlepopupmessage'>{$lang['edit_cdel']}</div></div>\");\n\t\n\t\t\$('#dlepopup').dialog({\n\t\t\tautoOpen: true,\n\t\t\twidth: 500,\n\t\t\tbuttons: b\n\t\t});\n\n\n    }\n\n    function CheckStatus(Form){\n\t\tif(Form.allow_date.checked) {\n\t\tForm.allow_now.disabled = true;\n\t\tForm.allow_now.checked = false;\n\t\t} else {\n\t\tForm.allow_now.disabled = false;\n\t\t}\n    }\n\n\tfunction auto_keywords ( key )\n\t{\n\t\tvar wysiwyg = '{$config['allow_admin_wysiwyg']}';\n\n\t\tif (wysiwyg == \"1\") {\n\t\t\tsubmit_all_data();\n\t\t}\n\n\t\tif (wysiwyg == \"2\") {\n\t\t\ttinyMCE.triggerSave();\n\t\t}\n\n\t\tvar short_txt = document.getElementById('short_story').value;\n\t\tvar full_txt = document.getElementById('full_story').value;\n\n\t\tShowLoading('');\n\n\t\t\$.post(\"engine/ajax/keywords.php\", { short_txt: short_txt, full_txt: full_txt, key: key }, function(data){\n\n\t\t\tHideLoading('');\n\n\t\t\tif (key == 1) { \$('#autodescr').val(data); }\n\t\t\telse { \$('#keywords').val(data); }\n\t\n\t\t});\n\n\t\treturn false;\n\t}\n\n\tfunction find_relates ()\n\t{\n\t\tvar title = document.getElementById('title').value;\n\n\t\tShowLoading('');\n\n\t\t\$.post('engine/ajax/find_relates.php', { title: title, id: '{$row['id']}' }, function(data){\n\t\n\t\t\tHideLoading('');\n\t\n\t\t\t\$('#related_news').html(data);\n\t\n\t\t});\n\n\t\treturn false;\n\n\t};\n\n\tfunction checkxf ( )\n\t{\n\t\tvar wysiwyg = '{$config['allow_admin_wysiwyg']}';\n\t\tvar status = '';\n\n\t\tif (wysiwyg == \"2\") {\n\t\t\ttinyMCE.triggerSave();\n\t\t}\n\n\t\t\$('[uid=\"essential\"]:visible').each(function(indx) {\n\n\t\t\tif(\$.trim(\$(this).find('[rel=\"essential\"]').val()).length < 1) {\n\t\t\t\n\t\t\t\tDLEalert('{$lang['addnews_xf_alert']}', '{$lang['p_info']}');\n\n\t\t\t\tstatus = 'fail';\n\t\t\t\n\t\t\t}\n\n\t\t});\n\n\t\tif(document.addnews.title.value == ''){\n\n\t\t\tDLEalert('{$lang['addnews_alert']}', '{$lang['p_info']}'); \n\n\t\t\tstatus = 'fail';\n\n\t\t}\n\n\t\treturn status;\n\n\t};\n\n\t\$(function(){\n\t\tfunction split( val ) {\n\t\t\treturn val.split( /,\\s*/ );\n\t\t}\n\t\tfunction extractLast( term ) {\n\t\t\treturn split( term ).pop();\n\t\t}\n \n\t\t\$( '#tags' ).autocomplete({\n\t\t\tsource: function( request, response ) {\n\t\t\t\t\$.getJSON( 'engine/ajax/find_tags.php', {\n\t\t\t\t\tterm: extractLast( request.term )\n\t\t\t\t}, response );\n\t\t\t},\n\t\t\tsearch: function() {\n\t\t\t\tvar term = extractLast( this.value );\n\t\t\t\tif ( term.length < 3 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t},\n\t\t\tfocus: function() {\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\tselect: function( event, ui ) {\n\t\t\t\tvar terms = split( this.value );\n\t\t\t\tterms.pop();\n\t\t\t\tterms.push( ui.item.value );\n\t\t\t\tterms.push( '' );\n\t\t\t\tthis.value = terms.join( ', ' );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\t\$('.categoryselect').chosen({allow_single_deselect:true, no_results_text: '{$lang['addnews_cat_fault']}'});\n\n\t});\n    </SCRIPT>";
    echo "<form method=post name=\"addnews\" id=\"addnews\" onsubmit=\"if(checkxf()=='fail') return false;\" action=\"\">";
    $categories_list = CategoryNewsSelection($cat_list, 0);
    if ($config['allow_multi_category']) {
        $category_multiple = "class=\"categoryselect\" multiple";
    } else {
        $category_multiple = "class=\"categoryselect\"";
    }
    if ($member_id['user_group'] == 1) {
        $author_info = "<input type=\"text\" name=\"new_author\" size=\"20\"  class=\"edit bk\" style=\"vertical-align: middle;\" value=\"{$row['autor']}\"><input type=\"hidden\" name=\"old_author\" value=\"{$row['autor']}\" />";
    } else {
        $author_info = "<b>{$row['autor']}</b>";
    }
    if ($user_group[$member_id['user_group']]['admin_editusers']) {
        $author_info .= "&nbsp;<a onclick=\"javascript:popupedit('" . urlencode($row['autor']) . "'); return(false)\" href=\"#\"><img src=\"engine/skins/images/user_edit.png\" style=\"vertical-align: middle;border: none;\" /></a>";
    }
    echo <<<HTML
<link rel="stylesheet" type="text/css" media="all" href="engine/skins/calendar-blue.css" title="win2k-cold-1" />
开发者ID:Banych,项目名称:SiteCreate,代码行数:30,代码来源:editnews.php

示例2: CategoryNewsSelection

    </tr>
    <tr>
        <td background="engine/skins/images/tl_lb.gif"><img src="engine/skins/images/tl_lb.gif" width="4" height="1" border="0"></td>
        <td style="padding:5px;" bgcolor="#FFFFFF">
<table width="100%">
    <tr>
        <td bgcolor="#EFEFEF" height="29" style="padding-left:10px;"><div class="navigation">{$lang['mass_cat_1']}</div></td>
    </tr>
</table>
<div class="unterline"></div>
<table width="100%">
    <tr>
        <td style="padding:2px;" height="100">{$lang['mass_cat_2']} (<b>{$count}</b>) {$lang['mass_cat_3']}
<select name="move_to_category[]" align="absmiddle" {$category_multiple}>
HTML;
    echo CategoryNewsSelection(0, 0);
    echo "</select>";
    foreach ($selected_news as $newsid) {
        $newsid = intval($newsid);
        echo "<input type=hidden name=selected_news[] value=\"{$newsid}\">";
    }
    echo <<<HTML
<input type=hidden name=user_hash value="{$dle_login_hash}"><input type="hidden" name="action" value="do_mass_move_to_cat"><input type="hidden" name="mod" value="massactions">&nbsp;<input type="submit" value="&nbsp;&nbsp;{$lang['b_start']}&nbsp;&nbsp;" class="btn btn-primary btn-mini"></td>
    </tr>
</table>
</td>
        <td background="engine/skins/images/tl_rb.gif"><img src="engine/skins/images/tl_rb.gif" width="6" height="1" border="0"></td>
    </tr>
    <tr>
        <td><img src="engine/skins/images/tl_lu.gif" width="4" height="6" border="0"></td>
        <td background="engine/skins/images/tl_ub.gif"><img src="engine/skins/images/tl_ub.gif" width="1" height="6" border="0"></td>
开发者ID:Hadryan,项目名称:L2LWEB,代码行数:31,代码来源:massactions.php

示例3: CategoryNewsSelection

        $rss_search_value = "<html>{get}</html>";
        $rss_maxnews_value = 5;
        $categories_list = CategoryNewsSelection(0, 0);
        $rss_info = $lang['rss_new'];
        $submit_value = $lang['rss_new'];
        $form_action = "?mod=rss&amp;action=doadd";
    } else {
        $row = $db->super_query("SELECT * FROM " . PREFIX . "_rss WHERE id='{$id}'");
        $rss_date = makeDropDown(array("1" => $lang['rss_date_1'], "0" => $lang['rss_date_2']), "rss_date", $row['date']);
        $text_type = makeDropDown(array("1" => "BBCODES", "0" => "HTML"), "text_type", $row['text_type']);
        $allow_main = makeDropDown(array("1" => $lang['opt_sys_yes'], "0" => $lang['opt_sys_no']), "allow_main", $row['allow_main']);
        $allow_rating = makeDropDown(array("1" => $lang['opt_sys_yes'], "0" => $lang['opt_sys_no']), "allow_rating", $row['allow_rating']);
        $allow_comm = makeDropDown(array("1" => $lang['opt_sys_yes'], "0" => $lang['opt_sys_no']), "allow_comm", $row['allow_comm']);
        $rss_search_value = htmlspecialchars(stripslashes($row['search']), ENT_QUOTES, $config['charset']);
        $rss_maxnews_value = $row['max_news'];
        $categories_list = CategoryNewsSelection($row['category'], 0);
        $rss_info = $row['url'];
        $submit_value = $lang['user_save'];
        $rss_url_value = htmlspecialchars(stripslashes($row['url']), ENT_QUOTES, $config['charset']);
        $rss_descr_value = htmlspecialchars(stripslashes($row['description']), ENT_QUOTES, $config['charset']);
        $rss_cookie_value = htmlspecialchars(stripslashes($row['cookie']), ENT_QUOTES, $config['charset']);
        $form_action = "?mod=rss&amp;action=doedit&amp;id=" . $id;
    }
    echo <<<HTML
<form action="{$form_action}" method="post" class="form-horizontal">
<div class="box">
  <div class="box-header">
    <div class="title">{$rss_info}</div>
  </div>
  <div class="box-content">
开发者ID:Gordondalos,项目名称:union,代码行数:30,代码来源:rss.php

示例4: get_groups

        }
        $groups = get_groups(explode(',', $row['grouplevel']));
        if ($row['grouplevel'] == "all") {
            $check_all = "selected";
        } else {
            $check_all = "";
        }
    } else {
        $canedit = false;
        $groups = get_groups();
        $check_all = "selected";
        $icategory = 0;
        $title = "";
        $body = "";
    }
    $opt_category = CategoryNewsSelection($icategory, 0, FALSE);
    if ($canedit == false) {
        echo "<form class=\"form-horizontal\" method=\"post\" action=\"?mod=editvote&action=doadd\" name=\"addvote\" onsubmit=\"if(document.addvote.title.value == '' || document.addvote.body.value == ''){DLEalert('{$lang['vote_alert']}', '{$lang['p_info']}');return false}\">";
        $button = "<input type=\"submit\" class=\"btn btn-green\" value=\"{$lang['vote_new']}\">";
    } else {
        echo "<form class=\"form-horizontal\" method=\"post\" action=\"?mod=editvote&action=update&id={$id}\" name=\"addvote\" onsubmit=\"if(document.addvote.title.value == '' || document.addvote.body.value == ''){DLEalert('{$lang['vote_alert']}', '{$lang['p_info']}');return false}\">";
        $button = "<input type=\"submit\" class=\"btn btn-green\" value=\"{$lang['vote_edit']}\">";
    }
    $user_group[$member_id['user_group']]['allow_image_upload'] = false;
    $user_group[$member_id['user_group']]['allow_file_upload'] = false;
    include ENGINE_DIR . '/inc/include/inserttag.php';
    echo <<<HTML
<div class="box">
  <div class="box-header">
    <div class="title">{$lang['opt_votec']}</div>
  </div>
开发者ID:Gordondalos,项目名称:union,代码行数:31,代码来源:editvote.php

示例5: CategoryNewsSelection

function CategoryNewsSelection($categoryid = 0, $parentid = 0, $nocat = TRUE, $sublevelmarker = '', $returnstring = '')
{
    global $cat, $cat_parentid, $member_id, $user_group, $mod;
    if ($mod == "addnews" or $mod == "editnews") {
        $allow_list = explode(',', $user_group[$member_id['user_group']]['cat_allow_addnews']);
    } else {
        $allow_list = explode(',', $user_group[$member_id['user_group']]['allow_cats']);
    }
    $spec_list = explode(',', $user_group[$member_id['user_group']]['cat_add']);
    if ($parentid == 0) {
        if ($nocat) {
            $returnstring .= '<option value="0"></option>';
        }
    } else {
        $sublevelmarker .= '&nbsp;&nbsp;&nbsp;&nbsp;';
    }
    if (isset($cat_parentid)) {
        $root_category = @array_keys($cat_parentid, $parentid);
        if (is_array($root_category)) {
            foreach ($root_category as $id) {
                $category_name = $cat[$id];
                if ($allow_list[0] == "all" or in_array($id, $allow_list) or $mod == "usergroup") {
                    if ($spec_list[0] == "all" or in_array($id, $spec_list)) {
                        $color = "black";
                    } else {
                        $color = "red";
                    }
                    $returnstring .= "<option style=\"color: {$color}\" value=\"" . $id . '" ';
                    if (is_array($categoryid)) {
                        foreach ($categoryid as $element) {
                            if ($element == $id) {
                                $returnstring .= 'SELECTED';
                            }
                        }
                    } elseif ($categoryid == $id) {
                        $returnstring .= 'SELECTED';
                    }
                    $returnstring .= '>' . $sublevelmarker . $category_name . '</option>';
                }
                $returnstring = CategoryNewsSelection($categoryid, $id, $nocat, $sublevelmarker, $returnstring);
            }
        }
    }
    return $returnstring;
}
开发者ID:Hadryan,项目名称:L2LWEB,代码行数:45,代码来源:functions.inc.php

示例6: CategoryNewsSelection

         $poll['title'] = $parse->decodeBBCodes($poll['title'], false);
         $poll['frage'] = $parse->decodeBBCodes($poll['frage'], false);
         $poll['body'] = $parse->decodeBBCodes($poll['body'], false);
         $poll['multiple'] = $poll['multiple'] ? "checked" : "";
         $tpl->set('{votetitle}', $poll['title']);
         $tpl->set('{frage}', $poll['frage']);
         $tpl->set('{votebody}', $poll['body']);
         $tpl->set('{allowmvote}', $poll['multiple']);
     } else {
         $tpl->set('{votetitle}', '');
         $tpl->set('{frage}', '');
         $tpl->set('{votebody}', '');
         $tpl->set('{allowmvote}', '');
     }
 } else {
     $categories_list = CategoryNewsSelection(0, 0);
     $tpl->set('{title}', '');
     $tpl->set('{alt-name}', '');
     $tpl->set('{short-story}', '');
     $tpl->set('{full-story}', '');
     $tpl->set('{tags}', '');
     $tpl->set('{votetitle}', '');
     $tpl->set('{frage}', '');
     $tpl->set('{votebody}', '');
     $tpl->set('{allowmvote}', '');
 }
 $xfieldsaction = "categoryfilter";
 include_once ENGINE_DIR . '/inc/xfields.php';
 if ($config['allow_multi_category']) {
     $cats = "<select data-placeholder=\"{$lang['addnews_cat_sel']}\" name=\"catlist[]\" id=\"category\" onchange=\"onCategoryChange(this)\" style=\"width:350px;height:140px;\" multiple=\"multiple\">";
 } else {
开发者ID:Gordondalos,项目名称:union,代码行数:31,代码来源:addnews.php

示例7: preg_replace

    if ($all_word_seach == 1) {
        $all_word_seach_sel = 'checked="checked"';
    } else {
        $all_word_seach_sel = '';
    }
    // Вывод формы поиска
    if ($category_list == "" or $category_list == "0") {
        $catselall = "selected=\"selected\"";
    } else {
        $catselall = "";
        $category_list = preg_replace("/^0\\,/", '', $category_list);
    }
    // Определение и вывод доступных категорий
    $cats = "<select style=\"width:95%;height:200px;\" name=\"catlist[]\" size=\"13\" multiple=\"multiple\">";
    $cats .= "<option " . $catselall . " value=\"0\">" . $lang['s_allcat'] . "</option>";
    $cats .= CategoryNewsSelection(explode(',', $category_list), 0, false);
    $cats .= "</select>";
    $tpl->copy_template .= <<<HTML
<script type="text/javascript">
<!-- begin
function clearform(frmname){
  var frm = document.getElementById(frmname);
  for (var i=0;i<frm.length;i++) {
    var el=frm.elements[i];
    if (el.type=="checkbox" || el.type=="radio") {
    \tif (el.name=='showposts') {document.getElementById('rb_showposts_0').checked=1; } else {el.checked=0; }
    }
    if ((el.type=="text") || (el.type=="textarea") || (el.type == "password")) { el.value=""; continue; }
    if ((el.type=="select-one") || (el.type=="select-multiple")) { el.selectedIndex=0; }
  }
  document.getElementById('replylimit').value = 0;
开发者ID:Zzepish,项目名称:IvanShikalovWebSIte,代码行数:31,代码来源:search.php

示例8: get_groups

 if ($id == 5) {
     $gastgroup = "disabled";
 }
 $group_list = get_groups($user_group[$id]['rid']);
 if ($user_group[$id]['allow_cats'] == "all") {
     $allow_cats_value = "selected";
 }
 $categories_list = CategoryNewsSelection(explode(',', $user_group[$id]['allow_cats']), 0, false);
 if ($user_group[$id]['cat_add'] == "all") {
     $cat_add_value = "selected";
 }
 if ($user_group[$id]['cat_allow_addnews'] == "all") {
     $cat_allow_addnews_value = "selected";
 }
 $cat_add_list = CategoryNewsSelection(explode(',', $user_group[$id]['cat_add']), 0, false);
 $cat_allow_addnews_list = CategoryNewsSelection(explode(',', $user_group[$id]['cat_allow_addnews']), 0, false);
 $max_pm_value = $user_group[$id]['max_pm'];
 $max_foto_value = $user_group[$id]['max_foto'];
 $max_signature_value = $user_group[$id]['max_signature'];
 $max_info_value = $user_group[$id]['max_info'];
 $max_pm_day_value = $user_group[$id]['max_pm_day'];
 $max_comment_day_value = $user_group[$id]['max_comment_day'];
 $max_mail_day_value = $user_group[$id]['max_mail_day'];
 $submit_value = $lang['group_edit'];
 $flood_news_value = $user_group[$id]['flood_news'];
 $max_images_value = $user_group[$id]['max_images'];
 $max_files_value = $user_group[$id]['max_files'];
 $max_day_news_value = $user_group[$id]['max_day_news'];
 $edit_limit_value = $user_group[$id]['edit_limit'];
 $disable_comments_captcha_value = $user_group[$id]['disable_comments_captcha'];
 $disable_news_captcha_value = $user_group[$id]['disable_news_captcha'];
开发者ID:Zzepish,项目名称:IvanShikalovWebSIte,代码行数:31,代码来源:usergroup.php

示例9: get_groups

        $checked5 = $row['fpage'] ? "checked" : "";
        $doaction = "doedit";
        $groups = get_groups(explode(',', $row['grouplevel']));
        if ($row['grouplevel'] == "all") {
            $check_all = "selected";
        } else {
            $check_all = "";
        }
        if ($row['start']) {
            $start_date = @date("Y-m-d H:i", $row['start']);
        }
        if ($row['end']) {
            $end_date = @date("Y-m-d H:i", $row['end']);
        }
    }
    $opt_category = CategoryNewsSelection(explode(',', $row['category']), 0, FALSE);
    if (!$row['category']) {
        $all_cats = "selected";
    } else {
        $all_cats = "";
    }
    echoheader("", "");
    echo <<<HTML
<link rel="stylesheet" type="text/css" media="all" href="engine/skins/calendar-blue.css" title="win2k-cold-1" />
    <form action="" method="post" name="bannersform">
      <input type="hidden" name="mod" value="banners">
      <input type="hidden" name="action" value="{$doaction}">
<table width="100%">
    <tr>
        <td width="4"><img src="engine/skins/images/tl_lo.gif" width="4" height="4" border="0"></td>
        <td background="engine/skins/images/tl_oo.gif"><img src="engine/skins/images/tl_oo.gif" width="1" height="4" border="0"></td>
开发者ID:Zzepish,项目名称:IvanShikalovWebSIte,代码行数:31,代码来源:banners.php

示例10: CategoryNewsSelection

                echo $lang['xf_lat'];
                ?>
)</td>
    </tr>
    <tr>
        <td style="padding:4px;"><?php 
                echo $lang['xfield_xdescr'];
                ?>
</td>
        <td><input  class=edit style="width: 312px;" type="text" name="editedxfield[1]" value="<?php 
                echo $editedxfield[1];
                ?>
" /></td>
    </tr>
<?php 
                $cat_options = CategoryNewsSelection(explode(',', $editedxfield[2]), 0, FALSE);
                if ($editedxfield[2] == "") {
                    $cats_value = "selected";
                } else {
                    $cats_value = "";
                }
                echo <<<HTML
    <tr>
        <td style="padding:4px;">{$lang['xfield_xcat']}</td>
        <td><select name="editedxfield[2][]" id="category" class="cat_select" multiple><option value="" {$cats_value}>{$lang['xfield_xall']}</option>{$cat_options}</select></td>
\t\t</tr>
HTML;
                ?>
    <tr>
        <td style="padding:4px;"><?php 
                echo $lang['xfield_xtype'];
开发者ID:Hadryan,项目名称:L2LWEB,代码行数:31,代码来源:xfields.php

示例11: CategoryNewsSelection

function CategoryNewsSelection($categoryid = 0, $parentid = 0, $nocat = TRUE, $sublevelmarker = '', $returnstring = '')
{
    global $cat_info, $user_group, $member_id, $dle_module;
    if ($dle_module == 'addnews') {
        $allow_list = explode(',', $user_group[$member_id['user_group']]['cat_allow_addnews']);
    } else {
        $allow_list = explode(',', $user_group[$member_id['user_group']]['allow_cats']);
    }
    $spec_list = explode(',', $user_group[$member_id['user_group']]['cat_add']);
    $root_category = array();
    if ($parentid == 0) {
        if ($nocat) {
            $returnstring .= '<option value="0"></option>';
        }
    } else {
        $sublevelmarker .= '&nbsp;&nbsp;&nbsp;';
    }
    if (count($cat_info)) {
        foreach ($cat_info as $cats) {
            if ($cats['parentid'] == $parentid) {
                $root_category[] = $cats['id'];
            }
        }
        if (count($root_category)) {
            foreach ($root_category as $id) {
                if ($allow_list[0] == "all" or in_array($id, $allow_list)) {
                    if ($spec_list[0] == "all" or in_array($id, $spec_list)) {
                        $color = "black";
                    } else {
                        $color = "red";
                    }
                    $returnstring .= "<option style=\"color: {$color}\" value=\"" . $id . '" ';
                    if (is_array($categoryid)) {
                        foreach ($categoryid as $element) {
                            if ($element == $id) {
                                $returnstring .= 'SELECTED';
                            }
                        }
                    } elseif ($categoryid == $id) {
                        $returnstring .= 'SELECTED';
                    }
                    $returnstring .= '>' . $sublevelmarker . $cat_info[$id]['name'] . '</option>';
                }
                $returnstring = CategoryNewsSelection($categoryid, $id, $nocat, $sublevelmarker, $returnstring);
            }
        }
    }
    return $returnstring;
}
开发者ID:Hadryan,项目名称:L2LWEB,代码行数:49,代码来源:functions.php


注:本文中的CategoryNewsSelection函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。