Beispiel #1
0
function dicAry($dc, $l = null)
{
    $class = new dic_item();
    $class->permCheck = false;
    if ($l) {
        $class->setLimit(0, $l);
    }
    if (intval($dc) === $dc) {
        $class->setDic($dc);
        $list = $class->getArray();
    } else {
        $list = $class->getListByDic($dc);
    }
    return $list;
}
Beispiel #2
0
 <h1 class="title"><span>字典管理</span></h1>
 <div class="pidding_5">
  <table cellspacing="0" cellpadding="0" class="Admin_L">
    <tr>
      <th scope="col" width="10%" class="T_title">字典名</th>
      <th scope="col">值</th>
    </tr>
    <?php 
$class = new dic();
$class->permCheck = false;
$list = $class->getArray();
$pageCtrl = $class->getPageInfoHtml();
foreach ($list as $val) {
    $class = new dic_item();
    $class->setDic($val['id']);
    $dicitem = $class->getArray();
    ?>
    <tr>
      <td class="N_title"><?php 
    echo $val['name'];
    ?>
</td>
      <td>
      <?php 
    foreach ($dicitem as $dt) {
        ?>
      	<input <?php 
        if ($dt['sys_tag']) {
            ?>
disabled="disabled"<?php 
        }