本文整理汇总了PHP中Backend::getOrderMax方法的典型用法代码示例。如果您正苦于以下问题:PHP Backend::getOrderMax方法的具体用法?PHP Backend::getOrderMax怎么用?PHP Backend::getOrderMax使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Backend
的用法示例。
在下文中一共展示了Backend::getOrderMax方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Backend
<?php
$url = "../index.php?mod=manu&act=list";
require_once "../model/Backend.php";
$model = new Backend();
$id = (int) $_POST['manu_id'];
$manu_name = $model->processData($_POST['manu_name']);
$manu_alias = $model->changeTitle($manu_name);
$catetype_id = $_POST['catetype_id'];
$is_hot = (int) $_POST['is_hot'];
$hidden = (int) $_POST['hidden'];
if ($id > 0) {
$display_order = $_POST['display_order'];
} else {
$display_order = $model->getOrderMax("manu") + 1;
}
$description = $_POST['description'];
$meta_title = $model->processData($_POST['meta_title']);
$meta_description = $model->processData($_POST['meta_description']);
$meta_keyword = $model->processData($_POST['meta_keyword']);
if ($meta_title == '') {
$meta_title = $manu_name;
}
if ($meta_description == '') {
$meta_description = $manu_name;
}
if ($meta_keyword == '') {
$meta_keyword = $manu_name;
}
$image_url_upload = $_FILES['image_url_upload'];
if ($image_url_upload['name'] != '') {
示例2: Backend
<?php
$url = "../index.php?mod=catetype&act=list";
require_once "../model/Backend.php";
$model = new Backend();
$id = (int) $_POST['cate_type_id'];
$cate_type_name = $model->processData($_POST['cate_type_name']);
$description = $model->processData($_POST['description']);
$cate_type_alias = $model->changeTitle($cate_type_name);
$is_menu = (int) $_POST['is_menu'];
$hidden = (int) $_POST['hidden'];
if ($id > 0) {
$display_order = $_POST['display_order'];
} else {
$display_order = $model->getOrderMax("cate_type") + 1;
}
$image_url_upload = $_FILES['image_url_upload'];
$icon_url_upload = $_FILES['icon_url_upload'];
if ($image_url_upload['name'] != "") {
$arrRe = $model->uploadImages($image_url_upload);
$image_url = $arrRe['filename'];
} else {
$image_url = str_replace('../', '', $_POST['image_url']);
}
if ($icon_url_upload['name'] != "") {
$arrRe = $model->uploadImages($icon_url_upload);
$icon_url = $arrRe['filename'];
} else {
$icon_url = str_replace('../', '', $_POST['icon_url']);
}
$meta_title = $model->processData($_POST['meta_title']);
示例3: Backend
<?php
session_start();
require_once "../model/Backend.php";
$model = new Backend();
$url = "../index.php?mod=city&act=list";
$arrParam['city_name'] = $model->processData($_POST['city_name']);
$arrParam['city_alias'] = $model->changeTitle($arrParam['city_name']);
$arrParam['display_order'] = $model->getOrderMax("city");
$city_id = (int) $_POST['city_id'];
$table = "city";
if ($city_id > 0) {
$arrParam['city_id'] = $city_id;
$model->update($table, $arrParam);
} else {
$model->insert($table, $arrParam);
}
header('location:' . $url);
示例4: Backend
<?php
$url = "../index.php?mod=cate&act=list";
require_once "../model/Backend.php";
$model = new Backend();
$id = (int) $_POST['cate_id'];
$arrData['cate_type_id'] = $cate_type_id = (int) $_POST['cate_type_id'];
$arrData['parent_id'] = $parent_id = (int) $_POST['parent_id'];
$arrData['cate_name'] = $cate_name = $model->processData($_POST['cate_name']);
$arrData['cate_alias'] = $cate_alias = $model->processData($_POST['cate_alias']);
$arrData['is_hot'] = $is_hot = (int) $_POST['is_hot'];
$arrData['hidden'] = $hidden = (int) $_POST['hidden'];
if ($id > 0) {
$arrData['display_order'] = $display_order = $_POST['display_order'];
} else {
$arrData['display_order'] = $display_order = $model->getOrderMax("cate") + 1;
}
$arrData['content'] = $content = mysql_real_escape_string($_POST['content']);
$arrData['seo_text'] = $seo_text = mysql_real_escape_string($_POST['seo_text']);
$arrData['seo_title'] = $seo_title = $model->processData($_POST['seo_title']);
$meta_title = $model->processData($_POST['meta_title']);
$meta_description = $model->processData($_POST['meta_description']);
$meta_keyword = $model->processData($_POST['meta_keyword']);
if ($meta_title == '') {
$meta_title = $cate_name;
}
if ($meta_description == '') {
$meta_description = $cate_name;
}
if ($meta_keyword == '') {
$meta_keyword = $cate_name;