當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Backend::getOrderMax方法代碼示例

本文整理匯總了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'] != '') {
開發者ID:hoangnhonline,項目名稱:vinawatch,代碼行數:31,代碼來源:Manu.php

示例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']);
開發者ID:hoangnhonline,項目名稱:vinawatch,代碼行數:31,代碼來源:CateType.php

示例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);
開發者ID:hoangnhonline,項目名稱:vinawatch,代碼行數:18,代碼來源:City.php

示例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;
開發者ID:hoangnhonline,項目名稱:vinawatch,代碼行數:31,代碼來源:Cate.php


注:本文中的Backend::getOrderMax方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。