示例#1
0
文件: api.php 项目: VoDongMy/VoDongMy
 function publish()
 {
     $status = $_POST['status'];
     $id = $_POST['id'];
     $field = $_POST['field'];
     $table = $_POST['table'];
     if ($status == 0) {
         $pub = 1;
     } else {
         $pub = 0;
     }
     $vdata['published'] = $pub;
     $this->db->update($table, $vdata, array($field => $id));
     echo icon_active("'{$table}'", "'{$field}'", $id, $pub);
 }
示例#2
0
            ?>
">
                    <input type="hidden" name="id[]" value="<?php 
            echo $rs2->cat_id;
            ?>
">
                </td>
                <td align="center">
                    <?php 
            echo icon_edit('category/edit/' . $rs2->cat_id);
            ?>
                    <span id="publish<?php 
            echo $rs2->cat_id;
            ?>
"><?php 
            echo icon_active("'category'", "'cat_id'", $rs2->cat_id, $rs2->published);
            ?>
</span>
                </td>
            </tr>
            <?php 
        }
        ?>
        <?php 
    }
    ?>
    
    <?php 
    $k = 1 - $k;
}
?>
示例#3
0
    ?>
</td>
                <td><?php 
    echo number_format($rs->price, 0, '.', '.');
    ?>
</td>
                <td><?php 
    echo $rs->categoryname;
    ?>
</td>
                <td class="text-right">
                    <?php 
    echo icon_edit('product/edit/' . $rs->id . '/' . $page_ . '/' . $this->str);
    ?>
                    <?php 
    echo icon_active("'product'", "'id'", $rs->id, $rs->published);
    ?>
                    <?php 
    echo icon_del('product/del/' . $rs->id . '/' . $page_ . '/' . $this->str);
    ?>
                </td>
            </tr>
            <?php 
}
?>
        </table>
    </div>
    <?php 
echo form_close();
?>
    <div class="table-footer clearfix">
示例#4
0
        <td style="width: 200px;">
        <?php 
    echo $cat->cat_name;
    ?>
        </td>
       
        <td align="center">
            <?php 
    echo icon_edit('news/edit/' . $rs->id . $page);
    ?>
            <span id="publish<?php 
    echo $rs->id;
    ?>
"><?php 
    echo icon_active("'news'", "'id'", $rs->id, $rs->published);
    ?>
</span>
            <?php 
    echo icon_del('news/del/' . $rs->id . $page);
    ?>
        </td>
    </tr>       
    <?php 
    $k = 1 - $k;
}
?>
    <tfoot>
        <td colspan="8">
            Hiện có <?php 
echo $num;
示例#5
0
文件: ds.php 项目: VoDongMy/VoDongMy
        echo $rs->username;
        ?>
</td>
        <td><?php 
        echo $rs->group_name;
        ?>
</td>
        <td align="center">
            <?php 
        echo icon_edit('account/edit/' . $rs->user_id . '/' . $page);
        ?>
            <span id="publish<?php 
        echo $rs->user_id;
        ?>
"><?php 
        echo icon_active("'user'", "'user_id'", $rs->user_id, $rs->published);
        ?>
</span>
            <?php 
        if ($rs->user_id != 1) {
            echo icon_del('account/del/' . $rs->user_id . '/' . $page);
        }
        ?>
 
        </td>
    </tr>       
    <?php 
        $k = 1 - $k;
    }
}
?>
示例#6
0
        ?>
">
            <input type="hidden" name="id[]" value="<?php 
        echo $rs1->catid;
        ?>
">
        </td>
        <td align="center">
            <?php 
        echo icon_edit('pcat/editmaincat/' . $rs1->catid);
        ?>
            <span id="publish<?php 
        echo $rs1->catid;
        ?>
"><?php 
        echo icon_active("'pcat'", "'catid'", $rs1->catid, $rs1->published);
        ?>
</span>
            <?php 
        echo icon_del('pcat/delmaincat/' . $rs1->catid);
        ?>
        </td>
    </tr>
    <?php 
    }
    ?>
    
    <?php 
    $k = 1 - $k;
}
?>
示例#7
0
</td>
        <td><?php 
    echo $rs->email;
    ?>
</td>
        <td><?php 
    echo date('H:i:s d/m/Y', $rs->time);
    ?>
</td>

        <td align="center">
            <span id="publish<?php 
    echo $rs->id;
    ?>
"><?php 
    echo icon_active("'hoidap'", "'id'", $rs->id, $rs->published);
    ?>
</span>
            <?php 
    echo icon_del('hoidap/del/' . $rs->id . '/' . (int) $this->uri->segment(4));
    ?>
        
        </td>
    </tr>        
    <?php 
    $k = 1 - $k;
}
?>
            <tfoot>
                <td colspan="7">
示例#8
0
文件: ds.php 项目: VoDongMy/VoDongMy
    echo site_url('khachhang/edit/' . $rs->id . $page);
    ?>
"><?php 
    echo $rs->name;
    ?>
</a>
        </td>
        <td align="center">
            <?php 
    echo icon_edit('khachhang/edit/' . $rs->id . $page);
    ?>
            <span id="publish<?php 
    echo $rs->id;
    ?>
"><?php 
    echo icon_active("'khachhang'", "'id'", $rs->id, $rs->published);
    ?>
</span>
            <?php 
    echo icon_del('khachhang/del/' . $rs->id . $page);
    ?>
        </td>
    </tr>       
    <?php 
    $k = 1 - $k;
}
?>
    <tfoot>
        <td colspan="8">
            Hiện có <?php 
echo $num;
示例#9
0
文件: ds.php 项目: VoDongMy/VoDongMy
        <td><a href="<?php 
    echo $rs->link;
    ?>
" target="_blank"><?php 
    echo $rs->link;
    ?>
</a></td>
        <td align="center">
            <?php 
    echo icon_edit('weblink/edit/' . $rs->id);
    ?>
            <span id="publish<?php 
    echo $rs->id;
    ?>
"><?php 
    echo icon_active("'weblink'", "'id'", $rs->id, $rs->published);
    ?>
</span>
            <?php 
    echo icon_del('weblink/del/' . $rs->id);
    ?>
        </td>
    </tr>       
    <?php 
    $k = 1 - $k;
}
?>
   
</table>
<?php 
echo form_close();
示例#10
0
    ?>
">
            <input type="hidden" name="id[]" value="<?php 
    echo $rs->id;
    ?>
">
        </td>
        <td align="center">
            <?php 
    echo icon_edit('mod/edit/' . $rs->id);
    ?>
            <span id="publish<?php 
    echo $rs->id;
    ?>
"><?php 
    echo icon_active("'modules'", "'id'", $rs->id, $rs->published);
    ?>
</span>
        </td>
    </tr>       
    <?php 
    $k = 1 - $k;
}
?>
    <tfoot>
        <td colspan="8">
            Hiện có <?php 
echo $num;
?>
 Modules <span class="pages"><?php 
echo $pagination;