• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_return_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_return_url函数的典型用法代码示例。如果您正苦于以下问题:PHP get_return_url函数的具体用法?PHP get_return_url怎么用?PHP get_return_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_return_url函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: _update

 protected function _update()
 {
     $id = $_POST["id"];
     $model = M("MailOrganize");
     $model->where("id={$id}")->delete();
     $model = D("MailOrganize");
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     if (in_array('user_id', $model->getDbFields())) {
         $model->user_id = get_user_id();
     }
     if (in_array('user_name', $model->getDbFields())) {
         $model->user_name = get_user_name();
     }
     //保存当前数据对象
     $list = $model->add();
     if ($list !== false) {
         //保存成功
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //失败提示
         $this->error('编辑失败!');
     }
 }
开发者ID:2ger,项目名称:trunk,代码行数:26,代码来源:MailOrganizeAction.class.php


示例2: mark

 function mark()
 {
     $action = $_REQUEST['action'];
     $id = $_REQUEST["id"];
     $val = $_REQUEST["val"];
     if (!empty($id)) {
         switch ($action) {
             case 'del':
                 $result = $this->_destory($id, true);
                 if ($result) {
                     $this->ajaxReturn('', "删除成功", 1);
                 } else {
                     $this->ajaxReturn('', "删除失败", 0);
                 }
                 break;
             case 'move_folder':
                 $field = 'group';
                 $result = $this->_set_field($id, $field, $val);
                 if ($result !== false) {
                     $this->assign('jumpUrl', get_return_url());
                     $this->success('操作成功!');
                 } else {
                     //失败提示
                     $this->error('操作失败!');
                 }
         }
     }
 }
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:28,代码来源:FlowTypeAction.class.php


示例3: _update

 protected function _update()
 {
     $model = D("UserFolder");
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:17,代码来源:UserFolderAction.class.php


示例4: import

 public function import()
 {
     $save_path = get_save_path();
     $opmode = $_POST["opmode"];
     if ($opmode == "import") {
         import("@.ORG.Util.UploadFile");
         $upload = new UploadFile();
         $upload->savePath = $save_path;
         $upload->allowExts = array('xlsx', 'xls');
         $upload->saveRule = uniqid;
         $upload->autoSub = false;
         if (!$upload->upload()) {
             $this->error($upload->getErrorMsg());
         } else {
             //取得成功上传的文件信息
             $uploadList = $upload->getUploadFileInfo();
             Vendor('Excel.PHPExcel');
             //导入thinkphp第三方类库
             $inputFileName = $save_path . $uploadList[0]["savename"];
             $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
             $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);
             // dump(count($sheetData));
             // exit;
             $model = M(MODULE_NAME);
             //dump($sheetData);
             for ($i = $this->first_row; $i <= count($sheetData); $i++) {
                 $data = array();
                 $data['emp_no'] = $sheetData[$i]["A"];
                 //                    $data['B']=PHPExcel_Shared_Date::ExcelToPHP($sheetData[$i]["B"]);
                 $data['B'] = $sheetData[$i]["B"];
                 for ($k = 67; $k <= 67 + $this->field_count; $k++) {
                     $data[chr($k)] = $sheetData[$i][chr($k)];
                 }
                 $model->add($data);
             }
             //dump($sheetData);
             if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/" . $inputFileName)) {
                 unlink($_SERVER["DOCUMENT_ROOT"] . "/" . $inputFileName);
             }
             $this->assign('jumpUrl', get_return_url());
             $this->success('导入成功!');
         }
     } else {
         $this->display();
     }
 }
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:46,代码来源:UdfAction.class.php


示例5: save

 function save()
 {
     $model = D("User");
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     session('user_pic', $model->pic);
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:18,代码来源:ProfileAction.class.php


示例6: _update

 protected function _update($name = CONTROLLER_NAME)
 {
     $id = I("id");
     $model = D($name);
     $model->where("id={$id}")->delete();
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     //保存当前数据对象
     $model->user_id = get_user_id();
     $list = $model->add();
     if ($list !== false) {
         //保存成功
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //失败提示
         $this->error('编辑失败!');
     }
 }
开发者ID:HappyCodingTogether,项目名称:CompanyEmailSystem,代码行数:20,代码来源:MailOrganizeController.class.php


示例7: _update

 function _update()
 {
     //B('FilterString');
     $model = M('UserConfig');
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     $model->push_web = implode(",", $model->push_web);
     $model->push_wechat = implode(",", $model->push_wechat);
     $model->id = get_user_id();
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:21,代码来源:UserConfigAction.class.php


示例8: _update

 function _update()
 {
     //B('FilterString');
     $model = M('UserConfig');
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     if (in_array('id', $model->getDbFields())) {
         $model->id = get_user_id();
     }
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:21,代码来源:UserConfigAction.class.php


示例9: _update

 protected function _update()
 {
     $name = $this->getActionName();
     $model = D($name);
     // dump($model -> create());exit;
     if (false === ($data = $model->create())) {
         $this->error($model->getError() + "123123");
     }
     if (!I("post.is_free")) {
         $data["is_free"] = '';
     }
     $list = $model->save($data);
     if (false !== $list) {
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
         //成功提示
     } else {
         $this->error('编辑失败!');
         //错误提示
     }
 }
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:21,代码来源:FlowDocSysAction.class.php


示例10: _update

 protected function _update()
 {
     $model = M('MailAccount');
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     if (in_array('id', $model->getDbFields())) {
         $model->id = get_user_id();
     }
     // 更新数据
     $email = $_POST['email'];
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->_set_email($email);
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:22,代码来源:MailAccountAction.class.php


示例11: _update

 protected function _update()
 {
     $id = $_POST['id'];
     $model = D("Node");
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     if (strpos($model->url, '##') !== false) {
         $model->sub_folder = ucfirst(get_module(str_replace("##", "", $model->url))) . "Folder";
     } else {
         $model->sub_folder = '';
     }
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:hongweipeng,项目名称:oa,代码行数:23,代码来源:NodeAction.class.php


示例12: _update

 protected function _update()
 {
     $ajax = $_POST['ajax'];
     $id = $_POST['id'];
     $model = D("Contact");
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     $model->__set('letter', get_letter($model->__get('name')));
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:20,代码来源:ContactAction.class.php


示例13: mark

 public function mark()
 {
     $action = $_REQUEST['action'];
     $id = $_REQUEST['id'];
     switch ($action) {
         case 'del':
             $field = 'folder';
             $val = 4;
             $result = $this->_set_field($id, $field, $val);
             break;
         case 'del_forever':
             $this->_del($id);
             break;
         case 'spam':
             $field = 'folder';
             $val = 5;
             $result = $this->_set_field($id, $field, $val);
             break;
         case 'readed':
             $field = 'read';
             $val = 1;
             $result = $this->_set_field($id, $field, $val);
             break;
         case 'unread':
             $field = 'read';
             $val = 0;
             $result = $this->_set_field($id, $field, $val);
             break;
         case 'darft':
             $field = 'folder';
             $val = 3;
             $result = $this->_set_field($id, $field, $val);
             break;
         case 'move_folder':
             $field = 'folder';
             $val = $_REQUEST['val'];
             $result = $this->_set_field($id, $field, $val);
             break;
         default:
             break;
     }
     if ($result !== false) {
         $this->assign('jumpUrl', get_return_url());
         $this->success('操作成功!');
     } else {
         //失败提示
         $this->error('操作失败!');
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:49,代码来源:MailAction.class.php


示例14: _update

 protected function _update()
 {
     $id = $_POST['id'];
     $model = D("Customer");
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     $model->letter = get_letter($model->name);
     // 更新数据
     $list = $model->save();
     if (false !== $list) {
         //成功提示
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
     } else {
         //错误提示
         $this->error('编辑失败!');
     }
 }
开发者ID:2ger,项目名称:trunk,代码行数:19,代码来源:CustomerAction.class.php


示例15: set_duty

 public function set_duty()
 {
     $role_id = $_POST["role_id"];
     $duty_list = $_POST["duty_list"];
     $model = D("Role");
     $model->del_duty($role_id);
     $result = $model->set_duty($role_id, $duty_list);
     if ($result === false) {
         $this->error('操作失败!');
     } else {
         $this->assign('jumpUrl', get_return_url());
         $this->success('操作成功!');
     }
 }
开发者ID:2ger,项目名称:trunk,代码行数:14,代码来源:RoleAction.class.php


示例16: _destory

 /** 永久删除数据  **/
 protected function _destory($id = null, $name = null, $return_flag = false)
 {
     if (empty($id)) {
         $id = $_REQUEST['id'];
         if (empty($id)) {
             $this->error('没有可删除的数据!');
         }
     }
     if (empty($name)) {
         $name = $this->getActionName();
     }
     $model = M($name);
     if (!empty($model)) {
         if (isset($id)) {
             if (is_array($id)) {
                 $where['id'] = array("in", array_filter($id));
             } else {
                 $where['id'] = array('in', array_filter(explode(',', $id)));
             }
             $app_type = $this->config['app_type'];
             if ($app_type == "personal") {
                 $where['user_id'] = get_user_id();
             }
             $file_list = $model->where($where)->getField("id,add_file");
             $file_list = array_filter(explode(";", implode($file_list)));
             $this->_destory_file($file_list);
             $result = $model->where($where)->delete();
             if ($return_flag) {
                 return $result;
             }
             if ($result !== false) {
                 $this->assign('jumpUrl', get_return_url());
                 $this->success("彻底删除{$result}条!");
             } else {
                 $this->error('删除失败!');
             }
         } else {
             $this->error('没有可删除的数据!');
         }
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:42,代码来源:CommonAction.class.php


示例17: import

 public function import()
 {
     $save_path = get_save_path();
     $opmode = $_POST["opmode"];
     if ($opmode == "import") {
         import("@.ORG.Util.UploadFile");
         $upload = new UploadFile();
         $upload->savePath = $save_path;
         $upload->allowExts = array('xlsx');
         $upload->saveRule = uniqid;
         $upload->autoSub = false;
         if (!$upload->upload()) {
             $this->error($upload->getErrorMsg());
         } else {
             //取得成功上传的文件信息
             $uploadList = $upload->getUploadFileInfo();
             Vendor('Excel.PHPExcel');
             //导入thinkphp第三方类库
             $inputFileName = $save_path . $uploadList[0]["savename"];
             $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
             $sheetData = $objPHPExcel->getActiveSheet()->toArray(null, true, true, true);
             $model = M("Vip");
             for ($i = 2; $i <= count($sheetData); $i++) {
                 $data = array();
                 $data['name'] = $sheetData[$i]["A"];
                 $data['short'] = $sheetData[$i]["B"];
                 $data['letter'] = get_letter($sheetData[$i]["A"]);
                 $data['biz_license'] = $sheetData[$i]["C"];
                 $data['payment'] = $sheetData[$i]["D"];
                 $data['address'] = $sheetData[$i]["E"];
                 $data['salesman'] = $sheetData[$i]["F"];
                 $data['contact'] = $sheetData[$i]["G"];
                 $data['email'] = $sheetData[$i]["H"];
                 $data['office_tel'] = $sheetData[$i]["I"];
                 $data['mobile_tel'] = $sheetData[$i]["J"];
                 $data['fax'] = $sheetData[$i]["K"];
                 $data['im'] = $sheetData[$i]["L"];
                 $data['remark'] = $sheetData[$i]["M"];
                 $data['statu'] = 1;
                 $model->add($data);
             }
             //dump($sheetData);
             if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/" . $inputFileName)) {
                 unlink($_SERVER["DOCUMENT_ROOT"] . "/" . $inputFileName);
             }
             $this->assign('jumpUrl', get_return_url());
             $this->success('导入成功!');
         }
     } else {
         $this->display();
     }
 }
开发者ID:hongweipeng,项目名称:oa,代码行数:52,代码来源:VipAction.class.php


示例18: _update

 protected function _update()
 {
     $name = $this->getActionName();
     $model = D($name);
     if (false === $model->create()) {
         $this->error($model->getError());
     }
     $flow_id = $model->id;
     $list = $model->save();
     $model_flow_filed = D("FlowField")->set_field($flow_id);
     if (false !== $list) {
         $this->assign('jumpUrl', get_return_url());
         $this->success('编辑成功!');
         //成功提示
     } else {
         $this->error('编辑失败!');
         //错误提示
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:19,代码来源:FlowAction.class.php


示例19: del

 public function del()
 {
     $type = $_REQUEST['type'];
     $where['user_id'] = array("eq", get_user_id());
     switch ($type) {
         case 'all':
             break;
         case 'dialogue':
             $receiver_id = $_REQUEST['reply_id'];
             $sender_id = get_user_id();
             $where['_string'] = "(sender_id='{$sender_id}' and receiver_id='{$receiver_id}') or (receiver_id='{$sender_id}' and sender_id='{$receiver_id}')";
             break;
         case 'message':
             $message_id = $_REQUEST['message_id'];
             $where['id'] = array("eq", $message_id);
             break;
         default:
             $this->ajaxReturn('', "删除失败", 0);
             break;
     }
     $model = D("Message");
     $list = $model->where($where)->delete();
     if ($list !== false) {
         //保存成功
         $this->assign('jumpUrl', get_return_url());
         $this->success('删除成功!');
     } else {
         $this->error('删除失败!');
         //失败提示
     }
 }
开发者ID:TipTimesPHP,项目名称:tyj_oa,代码行数:31,代码来源:MessageAction.class.php


示例20: mark_status

 public function mark_status()
 {
     $id = $_REQUEST['id'];
     $val = $_REQUEST['val'];
     if ($val == 3) {
         $field = 'end_date';
         $date = date("Y-m-d");
         $model = M("Todo");
         $where['id'] = $id;
         $where['user_id'] = array('eq', get_user_id());
         $list = $model->where($where)->setField($field, $date);
     }
     $field = 'status';
     $result = $this->_set_field($id, $field, $val);
     if ($result !== false) {
         //保存成功
         $this->assign('jumpUrl', get_return_url());
         $this->success('操作成功!');
     } else {
         //失败提示
         $this->error('操作失败!');
     }
 }
开发者ID:zqstudio2015,项目名称:smeoa,代码行数:23,代码来源:TodoAction.class.php



注:本文中的get_return_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_return_value函数代码示例发布时间:2022-05-15
下一篇:
PHP get_result函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap