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


PHP cmsCore::getArrVal方法代码示例

本文整理汇总了PHP中cmsCore::getArrVal方法的典型用法代码示例。如果您正苦于以下问题:PHP cmsCore::getArrVal方法的具体用法?PHP cmsCore::getArrVal怎么用?PHP cmsCore::getArrVal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cmsCore的用法示例。


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

示例1: mod_arhive

function mod_arhive($mod, $cfg) {
    cmsCore::m('arhive')->whereThisAndNestedCats(cmsCore::getArrVal($cfg, 'cat_id', 0));

    if (cmsCore::m('arhive')->year != 'all') {
        cmsCore::m('arhive')->whereYearIs();
    }

    $items = cmsCore::m('arhive')->getArhiveContent();
    if (!$items) { return false; }

    cmsPage::initTemplate('modules', $cfg['tpl'])->
        assign('arhives', $items)->
        assign('date', array('year'=>cmsCore::m('arhive')->year,'month'=>cmsCore::m('arhive')->month,'day'=>cmsCore::m('arhive')->day))->
        display();

    return true;
}
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:17,代码来源:module.php

示例2: applet_usergroups


//.........这里部分代码省略.........

            $ostatok = '';

            if (isset($_SESSION['editlist'])) {
                $item_id = array_shift($_SESSION['editlist']);
                if (count($_SESSION['editlist']) == 0) {
                   unset($_SESSION['editlist']);
                } else {
                    $ostatok = '('. $_LANG['AD_NEXT_IN'] . count($_SESSION['editlist']) .')';
                }
            } else {
                $item_id = cmsCore::request('id', 'int', 0);
            }

            $mod = cmsCore::c('db')->get_fields('cms_user_groups', "id = '". $item_id ."'", '*');
            if (!$mod){ cmsCore::error404(); }

            echo '<h3>'. $_LANG['AD_EDIT_GROUP'] .' '. $ostatok .'</h3>';

            cpAddPathway($_LANG['AD_EDIT_GROUP'] .' '. $mod['title']);
        }

        if (isset($mod['access'])) {
            $mod['access'] = str_replace(', ', ',', $mod['access']);
            $mod['access'] = explode(',', $mod['access']);
        }
?>
<form id="addform" name="addform" method="post" action="index.php?view=usergroups">
    <input type="hidden" name="csrf_token" value="<?php echo cmsUser::getCsrfToken(); ?>" />
    
    <div style="width:650px;">
        <div class="form-group">
            <label><?php echo $_LANG['AD_GROUP_NAME'];?>:</label>
            <input type="text" class="form-control" name="title" size="30" value="<?php echo htmlspecialchars(cmsCore::getArrVal($mod, 'title', '')); ?>" />
            <div class="help-block"><?php echo $_LANG['AD_VIEW_SITE']; ?></div>
        </div>
        
        <div class="form-group">
            <label><?php echo $_LANG['AD_ALIAS'];?>:</label>
            <input type="text" class="form-control" name="alias" size="30" <?php if (cmsCore::getArrVal($mod, 'alias', '') == 'guest') { echo 'readonly="readonly"'; } ?> value="<?php echo cmsCore::getArrVal($mod, 'alias', ''); ?>" />
            <?php if ($do == 'edit') { ?>
                <div class="help-block"><?php echo $_LANG['AD_DONT_CHANGE']; ?></div>
            <?php } ?>
        </div>
        
        <div class="form-group">
            <label><?php echo $_LANG['AD_IF_ADMIN'];?>:</label>
            <div class="btn-group" data-toggle="buttons" style="float:right;">
                <label class="btn btn-default <?php if (cmsCore::getArrVal($mod, 'is_admin')) { echo 'active'; } ?>" onclick="$('#accesstable').hide();$('#admin_accesstable').show();">
                    <input type="radio" name="is_admin" <?php if (cmsCore::getArrVal($mod, 'is_admin')) { echo 'checked="checked"'; } ?> value="1" /> <?php echo $_LANG['YES']; ?>
                </label>
                <label class="btn btn-default <?php if (!cmsCore::getArrVal($mod, 'is_admin')) { echo 'active'; } ?>" onclick="$('#accesstable').show();$('#admin_accesstable').hide();">
                    <input type="radio" name="is_admin" <?php if (!cmsCore::getArrVal($mod, 'is_admin')) { echo 'checked="checked"'; } ?> value="0" /> <?php echo $_LANG['NO']; ?>
                </label>
            </div>
        </div>
        
        <hr>
        
        <div id="admin_accesstable" <?php if (!cmsCore::getArrVal($mod, 'is_admin')) { echo 'style="display:none;"'; } ?>>
            <div class="form-group">
                <label><?php echo $_LANG['AD_AVAILABLE_SECTIONS']; ?></label>
                
                <div style="margin-left:50px;">
                    <div class="checkbox">
                        <label>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:67,代码来源:usergroups.php

示例3:

if (cmsCore::getArrVal($cfg, 'seo_user_access', false)) {
    echo 'checked="checked"';
}
?>
 value="1"> <?php 
echo $_LANG['YES'];
?>
                    </label>
                    <label class="btn btn-default <?php 
if (!cmsCore::getArrVal($cfg, 'seo_user_access', false)) {
    echo 'active';
}
?>
">
                        <input type="radio" name="seo_user_access" <?php 
if (!cmsCore::getArrVal($cfg, 'seo_user_access', false)) {
    echo 'checked="checked"';
}
?>
 value="0" /> <?php 
echo $_LANG['NO'];
?>
                    </label>
                </div>
            </div>
        </div>
    </div>

    <div>
        <input name="opt" type="hidden" id="do" value="saveconfig" />
        
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:30,代码来源:board_config.php

示例4:

if (cmsCore::getArrVal($cfg, 'is_comment', false)) {
    echo 'checked="checked"';
}
?>
 value="1" /> <?php 
echo $_LANG['YES'];
?>
                </label>
                <label class="btn btn-default <?php 
if (!cmsCore::getArrVal($cfg, 'is_comment', false)) {
    echo 'active';
}
?>
">
                    <input type="radio" name="is_comment" <?php 
if (!cmsCore::getArrVal($cfg, 'is_comment', false)) {
    echo 'checked="checked"';
}
?>
 value="0" /> <?php 
echo $_LANG['NO'];
?>
                </label>
            </div>
        </div>
    </div>

    <div>
        <input type="hidden" name="opt" value="saveconfig" />
        <input type="submit" class="btn btn-primary" name="save" value="<?php 
echo $_LANG['SAVE'];
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:faq_config.php

示例5: if

                        <option value="60" <?php if ($cfg['edit_minutes'] == 60) { echo 'selected="selected"'; } ?>>1 <?php echo $_LANG['HOUR1'];?></option>
                    </select>
                    <div class="help-block"><?php echo $_LANG['AD_DISALLOW_TIMER'];?></div>
                </div>
            </div>
        </div>

        <div id="restrict">
            <div class="form-group">
                <label class="col-sm-5 control-label"><?php echo $_LANG['AD_USE_LIMIT']; ?></label>
                <div class="col-sm-7 btn-group" data-toggle="buttons">
                    <label class="btn btn-default <?php if(cmsCore::getArrVal($cfg, 'min_karma', false)) { echo 'active'; } ?>">
                        <input type="radio" name="min_karma" <?php if(cmsCore::getArrVal($cfg, 'min_karma', false)) { echo 'checked="checked"'; } ?> value="1"> <?php echo $_LANG['YES']; ?>
                    </label>
                    <label class="btn btn-default <?php if (!cmsCore::getArrVal($cfg, 'min_karma', false)) { echo 'active'; } ?>">
                        <input type="radio" name="min_karma" <?php if (!cmsCore::getArrVal($cfg, 'min_karma', false)) { echo 'checked="checked"'; } ?> value="0" /> <?php echo $_LANG['NO']; ?>
                    </label>
                    <div style="clear:both;"></div>
                    <div class="help-block"><?php echo $_LANG['AD_ALLOW_ALL']; ?></div>
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-sm-5 control-label"><?php echo $_LANG['AD_COMENT_ADD']; ?></label>
                <div class="col-sm-7">
                    <input type="number" class="form-control" name="min_karma_add" min="0" value="<?php echo $cfg['min_karma_add'];?>" />
                    <div class="help-block"><?php echo $_LANG['AD_HOW_MANY_KARMA'];?></div>
                </div>
            </div>
            
            <div class="form-group">
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:backend.php

示例6:

</textarea>
                <div class="help-block"><?php 
echo $_LANG['SEO_METADESCR_HINT'];
?>
</div>
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-sm-5 control-label"><?php 
echo $_LANG['AD_CAT_DESCRIPTION'];
?>
</label>
            <div class="col-sm-7">
                <textarea class="form-control" name="description" rows="6"><?php 
echo cmsCore::getArrVal($mod, 'description', '');
?>
</textarea>
            </div>
        </div>
    </div>
    <div>
        <input name="opt" type="hidden" value="<?php 
if ($opt == 'add_cat') {
    echo 'submit_cat';
} else {
    echo 'update_cat';
}
?>
" />
        
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:30,代码来源:board_add_cat.php

示例7: applet_content


//.........这里部分代码省略.........

            $ostatok = '';

            if (isset($_SESSION['editlist'])) {
                $id = array_shift($_SESSION['editlist']);
                if (count($_SESSION['editlist'])==0) {
                    unset($_SESSION['editlist']);
                } else {
                    $ostatok = '('. $_LANG['AD_NEXT_IN'] . count($_SESSION['editlist']) .')';
                }
            } else {
                $id = (int)$_REQUEST['id'];
            }

            $sql = "SELECT *, (TO_DAYS(enddate) - TO_DAYS(CURDATE())) as daysleft, DATE_FORMAT(pubdate, '%d.%m.%Y') as pubdate, DATE_FORMAT(enddate, '%d.%m.%Y') as enddate
                     FROM cms_content
                     WHERE id = ". $id ." LIMIT 1";
            $result = cmsCore::c('db')->query($sql) ;
            if (cmsCore::c('db')->num_rows($result)) {
                $mod = cmsCore::c('db')->fetch_assoc($result);
                if (!empty($mod['images'])) {
                    $mod['images'] = json_decode($mod['images'], true);
                }
            }

            echo '<h3>'. $_LANG['AD_EDIT_ARTICLE'] . $ostatok .'</h3>';
            cpAddPathway($mod['title'], 'index.php?view=content&do=edit&id='. $mod['id']);
        }
        
        $ajaxUploader = cmsCore::c('page')->initAjaxUpload(
            'plupload',
            array(
                'component' => 'content',
                'target_id' => cmsCore::getArrVal($mod, 'id', 0),
                'insertEditor' => 'content'
            ),
            cmsCore::getArrVal($mod, 'images', false)
        );
        
        $tab_plugins = cmsCore::callTabEventPlugins('ADMIN_CONTENT_TABS', !empty($mod['id']) ? $mod : array());
?>
<form id="addform" name="addform" method="post" action="index.php" enctype="multipart/form-data">
    <input type="hidden" name="csrf_token" value="<?php echo cmsUser::getCsrfToken(); ?>" />
    <input type="hidden" name="view" value="content" />

    <table class="table">
        <tr>
            <!-- главная ячейка -->
            <td valign="top">
                <table width="100%" cellpadding="0" cellspacing="4" border="0">
                    <tr>
                        <td valign="top">
                            <label><?php echo $_LANG['AD_ARTICLE_NAME']; ?></label>
                            <div>
                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td><input type="text" class="form-control" name="title" value="<?php echo htmlspecialchars($mod['title']);?>" /></td>
                                        <td style="width:15px;padding-left:10px;padding-right:10px;">
                                            <input type="checkbox" class="uittip" title="<?php echo $_LANG['AD_VIEW_TITLE']; ?>" name="showtitle" <?php if ($mod['showtitle'] || $do=='add') { echo 'checked="checked"'; } ?> value="1">
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td width="130" valign="top">
                            <label><?php echo $_LANG['AD_PUBLIC_DATE']; ?></label>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:67,代码来源:content.php

示例8: applet_cron


//.........这里部分代码省略.........
                'class_method' => $class_method
            )
        );

        cmsCore::redirect('index.php?view=cron');
    }
    
    if ($do == 'edit' || $do == 'add') {
        $toolmenu = array(
            array( 'icon' => 'save.gif', 'title' => $_LANG['SAVE'], 'link' => 'javascript:document.addform.submit();' ),
            array( 'icon' => 'cancel.gif', 'title' => $_LANG['CANCEL'], 'link' => 'javascript:history.go(-1);' )
        );

        cpToolMenu($toolmenu);
        
        if ($do == 'edit') {
            $mod = cmsCron::getJobById($id);
            if (!$mod) { cmsCore::error404(); }
            
            echo '<h3>'. $_LANG['AD_EDIT_MISSION'] .'</h3>';
            cpAddPathway($mod['job_name'], 'index.php?view=cron&do=edit&id='. $mod['id']);
        } else {
            echo '<h3>'. $_LANG['AD_CREATE_CRON_MISSION'] .'</h3>';
            cpAddPathway($_LANG['AD_CREATE_CRON_MISSION'], 'index.php?view=cron&do=add');
            $mod = array();
	}
?>
<form action="index.php?view=cron" method="post" enctype="multipart/form-data" name="addform" id="addform">
    <input type="hidden" name="csrf_token" value="<?php echo cmsUser::getCsrfToken(); ?>" />
    
    <div style="width:650px;">
        <div class="form-group">
            <label><?php echo $_LANG['TITLE']; ?>:</label>
            <input type="text" class="form-control" name="job_name" value="<?php echo cmsCore::getArrVal($mod, 'job_name', ''); ?>" />
            <div class="help-block"><?php echo $_LANG['AD_ONLY_LATIN']; ?></div>
        </div>
        
        <div class="form-group">
            <label><?php echo $_LANG['DESCRIPTION']; ?>:</label>
            <input type="text" class="form-control" name="comment" maxlength="200" value="<?php echo htmlspecialchars(cmsCore::getArrVal($mod, 'comment', '')); ?>" />
            <div class="help-block"><?php echo $_LANG['AD_ONLY_200_SIMBOLS']; ?></div>
        </div>
        
        <div class="form-group">
            <label><?php echo $_LANG['AD_MISSION_ON']; ?>:</label>
            <div class="btn-group" data-toggle="buttons" style="float:right;">
                <label class="btn btn-default <?php if (cmsCore::getArrVal($mod, 'is_enabled')) { echo 'active'; } ?>">
                    <input type="radio" name="enabled" <?php if ($mod['is_enabled']) { echo 'checked="checked"'; } ?> value="1" /> <?php echo $_LANG['YES']; ?>
                </label>
                <label class="btn btn-default <?php if (!cmsCore::getArrVal($mod, 'is_enabled')) { echo 'active'; } ?>">
                    <input type="radio" name="enabled" <?php if (!$mod['is_enabled']) { echo 'checked="checked"'; } ?> value="0" /> <?php echo $_LANG['NO']; ?>
                </label>
            </div>
            <div class="help-block"><?php echo $_LANG['AD_MISSION_OFF']; ?></div>
        </div>
        
        <div class="form-group">
            <label><?php echo $_LANG['AD_MISSION_INTERVAL']; ?> (<?php echo $_LANG['HOUR1']; ?>):</label>
            <input type="number" class="form-control" name="job_interval" min="0" value="<?php echo cmsCore::getArrVal($mod, 'job_interval', ''); ?>" /> 
            <div class="help-block"><?php echo $_LANG['AD_MISSION_PERIOD']; ?></div>
        </div>
        
        <div class="form-group">
            <label><?php echo $_LANG['AD_PHP_FILE']; ?>:</label>
            <input type="text" class="form-control" name="custom_file" maxlength="250" value="<?php echo cmsCore::getArrVal($mod, 'custom_file', ''); ?>" /> 
            <div class="help-block"><?php echo $_LANG['AD_EXAMPLE'] ; ?>: <b>includes/myphp/test.php</b></div>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:67,代码来源:cron.php

示例9: applet_cats


//.........这里部分代码省略.........
            
            $ostatok = '';
            
            if (isset($_SESSION['editlist'])) {
                $id = array_shift($_SESSION['editlist']);
                if (sizeof($_SESSION['editlist']) == 0) {
                    unset($_SESSION['editlist']);
                } else {
                    $ostatok = '('. $_LANG['AD_NEXT_IN'] . sizeof($_SESSION['editlist']) .')';
                }
            } else {
                $id = cmsCore::request('id', 'int', 0);
            }
            
            $mod = cmsCore::c('db')->get_fields('cms_category', 'id='.$id, '*');
            if (!empty($mod['photoalbum'])) {
                $mod['photoalbum'] = unserialize($mod['photoalbum']);
            }
            
            echo '<h3>'. $_LANG['AD_EDIT_SECTION'] . $ostatok .'</h3>';
            cpAddPathway($mod['title'], 'index.php?view=cats&do=edit&id='. $mod['id']);
        }
?>
<form id="addform" name="addform" method="post" action="index.php">
    <input type="hidden" name="csrf_token" value="<?php echo cmsUser::getCsrfToken(); ?>" />
    <input type="hidden" name="view" value="cats" />

    <table class="table">
        <tr>
            <!-- главная ячейка -->
            <td valign="top">
                <div class="form-group">
                    <label><?php echo $_LANG['AD_TITLE_PARTITION'];?></label>
                    <input type="text" id="title" class="form-control" name="title" value="<?php echo htmlspecialchars(cmsCore::getArrVal($mod, 'title', ''));?>" />
                </div>
                    
                <div class="form-group">
                    <label><?php echo $_LANG['AD_TEMPLATE_PARTITION'];?></label>
                    <input type="text" class="form-control" name="tpl" value="<?php echo cmsCore::getArrVal($mod, 'tpl', '');?>" />
                </div>
                    
                <div class="form-group">
                    <label><?php echo $_LANG['AD_PARENT_PARTITION'];?></label>
                    <div class="parent_notice" style="color:red;margin:4px 0px;display:none"><?php echo $_LANG['AD_ANOTHER_PARENT'];?></div>

                    <select name="parent_id" size="12" id="parent_id" class="form-control" onchange="if($('option:selected',this).data('nsleft')>='<?php echo cmsCore::getArrVal($mod, 'NSLeft', 0); ?>' && $('option:selected',this).data('nsright')<='<?php echo cmsCore::getArrVal($mod, 'NSRight', 0); ?>'){ $('.parent_notice').show();$('#add_mod').prop('disabled', true); } else { $('.parent_notice').hide();$('#add_mod').prop('disabled', false); }">
                        <?php $rootid = cmsCore::c('db')->getNsRootCatId('cms_category'); ?>
                        <option value="<?php echo $rootid; ?>" <?php if (!isset($mod['parent_id']) || cmsCore::getArrVal($mod, 'parent_id', '') == $rootid) { echo 'selected="selected"'; }?>><?php echo $_LANG['AD_SECTION'];?></option>
                        <?php echo $inCore->getListItemsNS('cms_category', cmsCore::getArrVal($mod, 'parent_id', $rootid)); ?>
                    </select>
                </div>
                    
                <div class="form-group">
                    <label><?php echo $_LANG['AD_SECTION_DESCRIPT'];?></label>
                    <?php $inCore->insertEditor('description', cmsCore::getArrVal($mod, 'description', ''), '250', '100%'); ?>
                </div>
            </td>
                
            <!-- боковая -->
            <td valign="top" style="width:500px;">
                <div class="uitabs">
                    <ul id="tabs">
                        <li><a href="#upr_publish"><span><?php echo $_LANG['AD_TAB_PUBLISH']; ?></span></a></li>
                        <li><a href="#upr_seo"><span>SEO</span></a></li>
                        <li><a href="#upr_editors"><span><?php echo $_LANG['AD_EDITORS']; ?></span></a></li>
                        <li><a href="#upr_foto"><span><?php echo $_LANG['AD_FOTO']; ?></span></a></li>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:67,代码来源:cats.php

示例10:

?>
><?php 
echo $_LANG['HOUR10'];
?>
</option>
                <option value="DAY" <?php 
if (mb_strstr(cmsCore::getArrVal($mod, 'int_period', ''), 'DAY')) {
    echo 'selected="selected"';
}
?>
><?php 
echo $_LANG['DAY10'];
?>
</option>
                <option value="MONTH" <?php 
if (mb_strstr(cmsCore::getArrVal($mod, 'int_period', ''), 'MONTH')) {
    echo 'selected="selected"';
}
?>
><?php 
echo $_LANG['MONTH10'];
?>
</option>
            </select>
            <div class="checkbox">
                <label><input type="checkbox" id="autodelete" name="autodelete" value="1" <?php 
if ($mod['autodelete']) {
    echo 'checked="checked"';
}
?>
 /> <?php 
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:userbanlist_add.php

示例11:

}
?>
 value="0" /> <?php 
echo $_LANG['NO'];
?>
                </label>
            </div>
        </div>
        
        <div class="form-group">
            <label><?php 
echo $_LANG['AD_ABOUT_DELIVERY'];
?>
</label>
            <textarea class="form-control" style="height:150px;" name="delivery"><?php 
echo cmsCore::getArrVal($cfg, 'delivery', '');
?>
</textarea>
        </div>
    </div>
    <div>
        <input name="opt" type="hidden" value="saveconfig" />
        
        <input type="submit" class="btn btn-primary" name="save" value="<?php 
echo $_LANG['SAVE'];
?>
" />
        <input type="button" class="btn btn-default" name="back" value="<?php 
echo $_LANG['CANCEL'];
?>
" onclick="window.location.href='index.php?view=components';"/>
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:catalog_config.php

示例12: htmlspecialchars

            $item++;
        }
    }

?>
<form id="addform" name="addform" method="post" action="index.php?view=components&do=config&id=<?php echo $id; ?>">
    <div style="width:600px;">
        <div class="form-group">
            <label><?php echo $_LANG['AD_QUESTION']; ?>:</label>
            <input type="text" class="form-control" name="title" size="30" value="<?php echo htmlspecialchars(cmsCore::getArrVal($mod, 'title', '')); ?>" />
        </div>
        
        <?php for ($v=1; $v<=12; $v++) { ?>
            <div class="form-group">
                <label><?php echo $_LANG['AD_ANSWER']; ?> №<?php echo $v ?> <?php if (isset($answers_num[$v])) { echo '('. $_LANG['AD_VOTES'] .': '. $answers_num[$v] .')'; } ?>:</label>
                <input type="text" class="form-control" name="answers[<?php echo $v; ?>]" size="30" value="<?php echo cmsCore::getArrVal($answers_title, $v, ''); ?>" />
                <?php if (isset($answers_num[$v])) { echo '<input type="hidden" name="num['. $v .']" value="'. $answers_num[$v] .'" />';  } ?>
            </div>
        <?php } ?>
    </div>
    
    <div>
      <input type="submit" class="btn btn-primary" name="add_mod" value="<?php echo $_LANG['SAVE']; ?>" />
      
      <input type="hidden" name="opt" <?php if ($opt=='add') { echo 'value="submit"'; } else { echo 'value="update"'; } ?> />
      
      <?php
        if ($opt == 'edit') {
            echo '<input type="hidden" name="poll_id" value="'. $mod['id'] .'" /> ';
            echo ' <label><input type="checkbox" name="is_clear" value="1" /> '. $_LANG['AD_CLEAN_LOG'] .'</label>';
        }
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:backend.php

示例13:

echo $_LANG['AD_HOW_MANY_COLUMNS'];
?>
</label>
                                <input type="text" class="form-control" name="album_maxcols" value="<?php 
echo cmsCore::getArrVal(cmsCore::getArrVal($mod, 'photoalbum'), 'maxcols', 2);
?>
"/>
                            </div>
                                
                            <div class="form-group">
                                <label><?php 
echo $_LANG['AD_HOW_MANY_PHOTO'];
?>
</label>
                                <input type="text" class="form-control" name="album_max" value="<?php 
echo cmsCore::getArrVal(cmsCore::getArrVal($mod, 'photoalbum'), 'max', 8);
?>
"/>
                            </div>
                        </div>
                    </div>
                        
                    <div id="upr_access">
                        <div class="form-group">
                            <label>
                                <input type="checkbox" id="is_public" name="is_access" onclick="checkGroupList()" value="1" <?php 
echo $group_public;
?>
 />
                                <?php 
echo $_LANG['AD_SHARE'];
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:cats_edit.php

示例14:

                                        <small><?php 
    echo $_LANG['AD_EXT_HINT'];
    ?>
</small></td>
                                    <td><input name="f_file_ext" type="text" value="<?php 
    echo cmsCore::getArrVal(cmsCore::getArrVal($field, 'config'), 'ext', '');
    ?>
" size="25" /></td>
                                </tr>
                                <tr>
                                    <td><?php 
    echo $_LANG['AD_WIDTH'];
    ?>
:</td>
                                    <td><input class="uispin" name="f_file_size" type="text" id="f_file_size" value="<?php 
    echo cmsCore::getArrVal(cmsCore::getArrVal($field, 'config'), 'size', 160);
    ?>
" size="6" /> <?php 
    echo $_LANG['AD_PX'];
    ?>
 </td>
                                </tr>
                            </table>
                        </div>

                        <p>
                            <input type="submit" name="Submit" value="<?php 
    if (empty($field)) {
        echo $_LANG['AD_FIELD_ADD'];
    } else {
        echo $_LANG['AD_FIELD_SAVE'];
开发者ID:CMS-RuDi,项目名称:CMS-RuDi,代码行数:31,代码来源:forms_add.php

示例15: applet_menu


//.........这里部分代码省略.........

?>
<form id="addform" name="addform" action="index.php?view=menu&do=submitmenu" method="post">
    <input type="hidden" name="csrf_token" value="<?php echo cmsUser::getCsrfToken(); ?>" />
            
    <div class="panel panel-default" style="width:650px;">
        <div class="panel-body">
            <div class="form-group">
                <label><?php echo $_LANG['AD_MODULE_MENU_TITLE']; ?></label>
                <input type="text" id="title2" class="form-control" name="title" style="width:99%" value="" />
            </div>

            <div class="form-group">
                <label><?php echo $_LANG['AD_MENU_TO_VIEW']; ?></label>
                <select id="menu" class="form-control" name="menu" style="width:99%">
                    <?php foreach ($menu_list as $menu) { ?>
                        <option value="<?php echo $menu['id']; ?>">
                            <?php echo $menu['title']; ?>
                        </option>
                    <?php } ?>
                </select>
                <div class="help-block"><?php echo $_LANG['AD_TO_CREATE_NEW_POINT']; ?></div>
            </div>
                    
            <div class="form-group">
                <label><?php echo $_LANG['AD_POSITION_TO_VIEW']; ?></label>
                <?php
                    $pos = cpModulePositions(cmsConfig::getConfig('template'));
                ?>
                <select id="position" class="form-control" name="position" style="width:99%">
                    <?php
                        if ($pos){
                            foreach($pos as $key=>$position) {
                                if (cmsCore::getArrVal($mod, 'position') == $position){
                                    echo '<option value="'. $position .'" selected>'. $position .'</option>';
                                } else {
                                    echo '<option value="'. $position .'">'. $position .'</option>';
                                }
                            }
                        }
                    ?>
                </select>
                <input name="is_external" type="hidden" id="is_external" value="0" />
                <div class="help-block"><?php echo $_LANG['AD_POSITION_MUST_BE']; ?></div>
            </div>
                    
            <div class="form-group">
                <label><?php echo $_LANG['AD_MENU_PUBLIC']; ?></label>
                <label>
                    <input name="published" type="radio" value="1" checked="checked" <?php if (cmsCore::getArrVal($mod, 'published')) { echo 'checked="checked"'; } ?> /> <?php echo $_LANG['YES']; ?>
                </label>
                <label>
                    <input name="published" type="radio" value="0"  <?php if (!cmsCore::getArrVal($mod, 'published')) { echo 'checked="checked"'; } ?> /> <?php echo $_LANG['NO']; ?>
                </label>
            </div>
                    
            <div class="form-group">
                <label><?php echo $_LANG['AD_PREFIX_CSS']; ?></label>
                <input type="text" id="css_prefix" class="form-control" name="css_prefix" value="<?php echo cmsCore::getArrVal($mod, 'css_prefix'); ?>" style="width:99%" />
            </div>
                    
            <div class="form-group">
                <label><?php echo $_LANG['AD_TAB_ACCESS']; ?>:</label>
                <div class="help-block"><?php echo $_LANG['AD_GROUP_ACCESS'] ; ?></div>
                <?php
                    $groups = cmsUser::getGroups();
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:67,代码来源:menu.php


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