freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于php的服飾進銷存系統(tǒng)實現(xiàn)-資料下載頁

2025-10-29 21:49本頁面

【導(dǎo)讀】取得的研究成果。據(jù)我查證,除了文中特別加以標(biāo)注和致謝的地方外,論文(設(shè)。構(gòu)的學(xué)位或證書而使用過的材料。我承諾,論文(設(shè)計)中的所有內(nèi)容均真實、存在各種模型和基于各種技術(shù)的版本。本系統(tǒng)要實現(xiàn)的就是利用在國內(nèi)外應(yīng)用都。服裝進銷存系統(tǒng)。系統(tǒng)的開發(fā)就是在現(xiàn)有的進、銷、存的需求上對各個屬性進行。針對服裝行業(yè)的專業(yè)化和具體化,可以讓系統(tǒng)的實用性和簡捷性更強。項目,項目編號為:。

  

【正文】 資料頁面 供應(yīng)商資料頁面 員工資料頁面 倉庫資料頁面 頁面設(shè)計 如圖 44 所示,該頁面是 頁面框架集里面的兩個框架所顯示的頁面。其中右邊的導(dǎo)航菜單是一個框架,左邊的信息頁面是一個框架。這樣設(shè)計的出發(fā)點就是希望頁面的跳轉(zhuǎn)的范圍盡可能的縮小 。在這個框架里主要就是進行基本資料的添加刪除和修改。因為 所有的基本資料重點的各自的屬性有所區(qū)別,但是他們的操作幾近相同。所以在這里就用商品資料頁面為例子 如圖 45,重點介紹該頁面里面的增刪改查。 圖 44 操作界面 圖 45 信息添加頁面 代碼設(shè)計 首先 列出 的是商品信息增加的代碼,代碼如下: ?php session_start()。 include(39。39。)。//引進上傳圖片的代碼 include(../)。 $good_id=$_POST[good_id]。 $good_name=$_POST[good_name]。 $category=$_POST[category]。 $brand=$_POST[brand]。 $material=$_POST[material]。 $size=$_POST[size]。 $season=$_POST[season]。 $color=$_POST[color]。 $unit=$_POST[unit]。 $year=$_POST[year]。 $cost_price=$_POST[cost_price]。 $in_price=$_POST[in_price]。 $out_price=$_POST[out_price]。 $wholesale_price=$_POST[wholesale_price]。 $highest_price=$_POST[highest_price]。 $lowest_price=$_POST[lowest_price]。 $highest_depot=$_POST[highest_depot]。 $lowest_depot=$_POST[lowest_depot]。 $image=$_SESSION[image]。 $remarks=$_POST[remarks]。 $bar_code=$_POST[bar_code]。 if($_POST[submit]) {if($r=$dbh_insert(39。good_info39。,39。id,good_id,good_name,good_category,good_material,good_brand,bar_code,in_price,out_price,season,unit,year,color,size,image,remarks,cost_price,wholesale_price,highest_price,lowest_price,highest_depot,lo west_depot39。,null,39。$good_id39。,39。$good_name39。,39。$category39。,39。$material39。,39。$brand39。,39。$bar_code39。,39。$in_price39。,39。$out_price39。,39。$season39。,39。$unit39。,39。$year39。,39。$color39。,39。$size39。,39。$image39。,39。$remarks39。,39。$cost_price39。,39。$wholesale_price39。,39。$highest_price39。,39。$lowest_price39。,39。$highest_depot39。,39。$lowest_depot39。)) {echo 。}} ? 添加好信息之后,如果對信息需要改動就要進入信息修改頁 面 如圖 36 所示。該頁面是用 $_SESSION 來取得原始值的。這樣可以減少系統(tǒng)對數(shù)據(jù)庫的訪問量,減輕數(shù)據(jù)庫的負荷。 圖 46 信息修改頁面 修改的信息通過 POST 方式傳送到 頁面進行合法性檢查和更新。代碼如下: ?php session_start()。 include(../)。 $good_id=$_POST[good_id]。 $good_name=$_POST[good_name]。 $category=$_POST[category]。 $brand=$_POST[brand]。 $material=$_POST[material]。 $size=$_POST[size]。 $season=$_POST[season]。 $color=$_POST[color]。 $unit=$_POST[unit]。 $year=$_POST[year]。 $cost_price=$_POST[cost_price]。 $in_price=$_POST[in_price]。 $out_price=$_POST[out_price]。 $wholesale_price=$_POST[wholesale_price]。 $highest_price=$_POST[highest_price]。 $lowest_price=$_POST[lowest_price]。 $highest_depot=$_POST[highest_depot]。 $lowest_depot=$_POST[lowest_depot]。 $remarks=$_POST[remarks]。 $bar_code=$_POST[bar_code]。 if($_POST[submit]) { $r=$dbh_update(39。good_info39。,good_id=39。$good_id39。,good_name=39。$good_name39。,good_category=39。$category39。,good_brand=39。$brand39。,good_material=39。$material39。,size=39。$size39。,season=39。$season39。,color=39。$color39。,unit=39。$unit39。,year=39。$year39。,cost_price=39。$cost_price39。,in_price=39。$in_price39。,out_price=39。$out_price39。,wholesale_price=39。$wholesale_price39。,highest_price=39。$highest_price39。,lowest_price=39。$lowest_price39。,highest_depot=39。$highest_depot39。,lowest_depot=39。$lowest_depot39。,remarks=39。$remarks39。,bar_code=39。$bar_code39。,id=39。$_SESSION[good_id]39。)。 if($r) { echo 。} } ? 如上代碼實現(xiàn)了數(shù)據(jù)的更新,實現(xiàn)數(shù)據(jù)刪除的頁面為 ,該頁面是從顯示頁面取得相應(yīng)的記錄 ID 值,然后利用 $db 對象的 $h_delete 方法進行刪除操作。頁面代碼如下: ?php session_start()。 include(../)。 if($_GET[delete]) {$r=$dbh_delete(39。good_info39。,id=39。$_GET[delete]39。)。 echo 。} if($_GET[propery]) {$r=$dbh_delete(39。good_propery_info39。,id=39。$_GET[propery]39。)。 echo 。} ? 進貨管理頁面設(shè)計 采購訂貨頁面 采購?fù)素涰撁? 頁面設(shè)計 由于 訂貨和退貨的實現(xiàn)原理基本相同,只是它們的取向不同,故這里重點介紹采購進貨的實現(xiàn)。 如圖 47 所示,該頁面為采購訂單的基本信息錄入界面,該頁面主要是圍繞這供應(yīng)商開展活動的。當(dāng)確認對應(yīng)的供應(yīng)商之后,點擊下一步就可以進入添加商品的頁面如圖 48。 圖 47 采購訂單生成界面 圖 48 采購訂單明細界面 代碼設(shè)計 在添加商品頁面用到了購物車原理,就是把需要訂購的商品擺進一個購物車?yán)?,最后生成一張訂貨單。就要需要一個 類文件,代碼如下: ?php //類名 : cart //描述 : 嘗試以最簡單的方式實現(xiàn)購物車 class cart { /** * 函數(shù)名稱 : addItem * 函數(shù)功能 : 添加商品 * 輸入?yún)?shù) : $data 商品數(shù)組 * 函數(shù)返回值 : none * 其它說明 : 因為數(shù)據(jù)是記錄在 session 中 ,所以不用返回 */ function addItem ($data) { if (is_array ($data) amp。amp。!empty ($data)) {foreach ($data as $key = $val) { // 如果商品存在就加數(shù)量和價格 if ($this_isExists ($key)) { $_SESSION[39。cart39。][$key][count]+=intval($val[39。price39。])*intval($val[39。num39。])。 $_SESSION[39。cart39。][$key][num]+= intval($val[39。num39。])。 } // 否則直接加入 else {$_SESSION[39。cart39。][$key] = $data[$key]。 $_SESSION[39。cart39。][$key][name] = $val[39。name39。]。 $_SESSION[39。cart39。][$key][price] = $val[39。price39。]。 $_SESSION[39。cart39。][$key][count]=intval($val[39。price39。])*intval($val[39。num39。])。 $_SESSION[39。cart39。][$key][num] =intval ($val[39。num39。])。}}}} /** * 函數(shù)名稱 : _isExists * 函數(shù)功能 : 判斷此商品是否存在 * 輸入?yún)?shù) : $id 商品 ID * 函數(shù)返回值 : bool */ function _isExists ($id) { if(isset($_SESSION[39。cart39。][$id])amp。amp。!empty($_SESSION[39。cart39。][$id])amp。amp。 array_key_exists($id,$_SESSION[39。cart39。])) {Return true。} else {Return false。}} /** * 函數(shù)名稱 : modItem * 函數(shù)功能 : 修改商品數(shù)量 * 輸入?yún)?shù) : $id 商品 ID * $num 商品數(shù)量 */ function modItem ($id, $num) {$arr= $thisgetItems ($id)。 // 如果商品存在就加數(shù)量和價格 if ($this_isExists ($id)) {$_SESSION[39。cart39。][$id][count]=intval($arr[39。price39。])*intval($num)。 $_SESSION[39。cart39。][$id][num]=intval($num)。}} /** * 函數(shù)名稱 : getItems * 函數(shù)功能 : 取 得商品數(shù)組 * 輸入?yún)?shù) : $id 某商品的 ID * 函數(shù)返回值 : array */ function getItems ($id=null) { if (isset($_SESSION[39。cart39。])) { if ($id== null) {Return $_SESSION[39。cart39。]。} else {Return $_SESSION[39。cart39。][$id]。}}} /** * 函數(shù)名稱 : emptyItem * 函數(shù)功能 : 刪除商品 * 輸入?yún)?shù) : $id 商品 ID * 函數(shù)返回值 : b
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1