当前位置: 首页>>代码示例>>PHP>>正文


PHP UrlRewriteSimple函数代码示例

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


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

示例1: Save

 public function Save()
 {
     if ($this->_POST) {
         $ID = _intval($this->_POST['ID'], true);
         $Data['Title'] = trim($this->_POST['Title']);
         $Data['Url'] = trim($this->_POST['Url']);
         $Data['Describe'] = trim($this->_POST['Describe']);
         $Data['DisplayOrder'] = _intval($this->_POST['DisplayOrder'], true);
         $Data['Property'] = _intval($this->_POST['Property'], true) ? 1 : 0;
         $Data['Status'] = _intval($this->_POST['Status'], true) ? 1 : 0;
         $Data['CategoryID'] = _intval($this->_POST['CategoryID'], true);
         if (!$ID) {
             $Data['Created'] = date('Y-m-d H:i:s', $this->timestamp);
             $Data['CreatedUserID'] = $this->UserID;
         } else {
             $Data['Modified'] = date('Y-m-d H:i:s', $this->timestamp);
             $Data['ModifiedUserID'] = $this->UserID;
         }
         $DB = new DB();
         if ($ID) {
             if ($DB->UpdateArray('tbl_links', $Data, array('ID' => $ID))) {
                 $this->__Message('修改友情链接成功!', UrlRewriteSimple('Links', 'Index', true), '继续操作');
             } else {
                 $this->__Message('修改友情链接失败,请再一次尝试!');
             }
         } else {
             if ($DB->insertArray('tbl_links', $Data)) {
                 $this->__Message('添加友情链接成功!', UrlRewriteSimple('Links', 'Index', true), '继续操作');
             } else {
                 $this->__Message('添加友情链接失败,请再一次尝试!');
             }
         }
     }
 }
开发者ID:baiduXM,项目名称:agent,代码行数:34,代码来源:class.Links.php

示例2: Add

 public function Add()
 {
     if ($this->_GET['SeverID']) {
         $FuwuqiModel = new FuwuqiModule();
         $Data = $FuwuqiModel->GetOneInfoByKeyID($this->_GET['SeverID']);
         $this->Data = $Data;
     } elseif ($this->_POST['SeverID']) {
         $Data['FuwuqiName'] = trim($this->_POST['FuwuqiName']);
         $Data['IP'] = trim($this->_POST['IP']);
         $Data['CName'] = trim($this->_POST['CName']);
         $Data['FwAdress'] = trim($this->_POST['FwAdress']);
         $Data['FTP'] = trim($this->_POST['FTP']);
         $Data['FTPName'] = trim($this->_POST['FTPName']);
         $Data['FTPPassword'] = trim($this->_POST['FTPPassword']);
         $Data['FTPDuankou'] = trim($this->_POST['FTPDuankou']);
         $Data['FTPMulu'] = trim($this->_POST['FTPMulu']);
         if ($this->_POST['State']) {
             $Data['State'] = 1;
         } else {
             $Data['State'] = 0;
         }
         if ($Data['FuwuqiName'] == '') {
             $this->__Message('服务器名称不能为空!');
         }
         $FuwuqiModel = new FuwuqiModule();
         if ($FuwuqiModel->UpdateArrayByKeyID($Data, $this->_POST['SeverID'])) {
             $this->__Message('修改服务器成功!', UrlRewriteSimple('Fuwuqi', 'Manage', true), '继续操作');
         } else {
             $this->__Message('修改服务器失败,请再一次尝试!');
         }
     } else {
         if ($this->_POST) {
             $Data['FuwuqiName'] = trim($this->_POST['FuwuqiName']);
             $Data['IP'] = trim($this->_POST['IP']);
             $Data['CName'] = trim($this->_POST['CName']);
             $Data['FwAdress'] = trim($this->_POST['FwAdress']);
             $Data['FTP'] = trim($this->_POST['FTP']);
             $Data['FTPName'] = trim($this->_POST['FTPName']);
             $Data['FTPPassword'] = trim($this->_POST['FTPPassword']);
             $Data['FTPDuankou'] = trim($this->_POST['FTPDuankou']);
             $Data['FTPMulu'] = trim($this->_POST['FTPMulu']);
             if ($this->_POST['State']) {
                 $Data['State'] = 1;
             } else {
                 $Data['State'] = 0;
             }
             if ($Data['FuwuqiName'] == '') {
                 $this->__Message('服务器名称不能为空!');
             }
             $FuwuqiModel = new FuwuqiModule();
             if ($FuwuqiModel->InsertArray($Data)) {
                 $this->__Message('添加服务器成功!', UrlRewriteSimple('Fuwuqi', 'Manage', true), '继续操作');
             } else {
                 $this->__Message('添加服务器失败,请再一次尝试!');
             }
         }
     }
 }
开发者ID:baiduXM,项目名称:agent,代码行数:58,代码来源:class.Fuwuqi.php

示例3: Delete

 public function Delete()
 {
     $Templates = new TemplateModule('/templates');
     $Path = trim($this->_GET['Path']);
     $tmpPaths = pathinfo($Path);
     if ($tmpPaths && $tmpPaths['dirname']) {
         $newPath = $tmpPaths['dirname'];
     }
     if ($Templates->Delete($Path)) {
         $this->__Message('删除' . $Path . '成功!', UrlRewriteSimple('Template', 'Lists', true) . '&Path=' . $newPath, '继续操作');
     } else {
         $this->__Message('删除' . $Path . '失败!');
     }
 }
开发者ID:baiduXM,项目名称:agent,代码行数:14,代码来源:class.Template.php

示例4: Update

 public function Update()
 {
     if ($this->_POST) {
         $VariablesModule = new VariablesModule();
         $VariableName = trim($this->_POST['VariableName']);
         $VariableDescribe = trim($this->_POST['VariableDescribe']);
         $VariableValue = trim($this->_POST['VariableValue']);
         $VariableType = _intval($this->_POST['VariableType']);
         if (strlen($VariableName) <= 0 || strlen($VariableValue) <= 0) {
             $this->__Message('全局参数的命名和取值不得为空!');
         }
         if ($VariablesModule->Create($VariableName, $VariableValue, $VariableDescribe, $VariableType)) {
             $this->__Message('保存参数成功!', UrlRewriteSimple('GlobalCfgs', 'Lists'), '继续操作');
         } else {
             $this->__Message('保存参数失败!');
         }
     }
 }
开发者ID:baiduXM,项目名称:agent,代码行数:18,代码来源:class.GlobalCfgs.php

示例5: CreateSave

 public function CreateSave()
 {
     if ($this->_POST) {
         $Data['CategoryName'] = trim($this->_POST['CategoryName']);
         if (!$Data['CategoryName'] || strlen($Data['CategoryName']) > 60) {
             JsMessage('很抱歉, 外链目录名称是必填项,且长度不得超过20个汉字(60个半角字符)!');
         }
         $CategoryID = _intval($this->_POST['CategoryID'], true);
         if (!$CategoryID) {
             $Data['ParentCategoryID'] = _intval($this->_POST['ParentCategoryID'], true);
         }
         $Data['Alias'] = trim($this->_POST['Alias']);
         if (!$Data['Alias'] || strlen($Data['Alias']) > 30) {
             JsMessage('很抱歉, 外链目录别名是必填项,且长度不得超过30个字符!');
         }
         if (!preg_match("/^([A-Za-z0-9]+)\$/", $Data['Alias'])) {
             JsMessage('很抱歉, 外链目录别名只接受英文字母子与数字字符!');
         }
         $Data['DisplayOrder'] = _intval($this->_POST['DisplayOrder'], true);
         $Category = new LinksCategoryModule();
         if ($Category->CheckAlias($Data['Alias'], $CategoryID)) {
             JsMessage('很抱歉, 外链目录别名“' . $Data['Alias'] . '”是已经使用,请使用其它的别名!');
         }
         if (!$CategoryID) {
             if ($Category->Create($Data)) {
                 JsMessage('外链目录资料保存成功!', UrlRewriteSimple('LinksCategory', 'Index', true));
             } else {
                 JsMessage('外链目录资料保存失败! 请重试!');
             }
         } else {
             if ($Category->Update($CategoryID, $Data)) {
                 JsMessage('外链目录资料保存成功!', UrlRewriteSimple('LinksCategory', 'Index', true));
             } else {
                 JsMessage('外链目录资料保存失败! 请重试!');
             }
         }
     } else {
         JsMessage('很抱歉,您没有提交任何信息!');
     }
 }
开发者ID:baiduXM,项目名称:agent,代码行数:40,代码来源:class.LinksCategory.php

示例6: ToPage

                  <input name="ToPage" id="ToPage" onKeyUp="ToPage(<?php 
echo $Data['PageCount'];
?>
)" ; type="text" style="width: 30px; margin: 0px 4px;" />
                  页 <span
										id="ToPage_Test" style="color: #F00"></span> <script
											type="text/javascript">
                                    function ToPage(PageCount){
                                        var pages = document.getElementById("ToPage").value;
                                        if(pages>PageCount || pages<1)
                                        {
                                            document.getElementById("ToPage_Test").innerHTML='请填写正确分页';
                                            return false;
                                        }
                                        location.href = "<?php 
echo UrlRewriteSimple($MyModule, 'Customer', true) . '&Page=';
?>
"+pages;
                                    }
                                </script></td>
              </tr>
            </tfoot>
          </table>
          <script type="text/javascript">
                        //grid("名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
                        grid("grid","#f9fcfd","#ffffff");
                    	function ftpcheck(){
                      		 var ftp = document.getElementsByName("ftp");
                      		 var a;
                      	     var ftpValue;
                      	     for(a=0; a<ftp.length; a++){//遍历单选框
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:GbaopenCustomer.php

示例7: UrlRewriteSimple

            ?>
 
  <a href="<?php 
            echo UrlRewriteSimple($MyModule, 'Lists', true);
            ?>
&Page=<?php 
            echo $PageVal;
            ?>
"><?php 
            echo $PageVal;
            ?>
</a>&nbsp;&nbsp; 
  
<?php 
        }
    }
    ?>
 
  <a href="<?php 
    echo UrlRewriteSimple($MyModule, 'Lists', true);
    ?>
&Page=<?php 
    echo $Data['PageCount'];
    ?>
">尾页</a>&nbsp;&nbsp;
  <?php 
}
?>
 </div>
</body>
</html>
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:AgentLists.tpl.php

示例8: UrlRewriteSimple

		$('.EmailMessage').css('color','#f00');
		$('.EmailMessage').html(data['Message']);
	}
	else{
		$('.EmailMessage').css('color','#006600');
		$('.EmailMessage').html(data['Message']);
	}
}
</script>

</head>

<body>
<div>
<form action="<?php 
echo UrlRewriteSimple('Users', 'NewUser', true);
?>
"
	method="post" enctype="multipart/form-data" name="form1" id="form1">
    
<div class="panel">
  <div class="panel-header">
    <div class="panel-header-left"></div>
    <div class="panel-header-content">添加用户</div>
    <div class="panel-header-right"></div>
  </div>
  <div class="panel-body">
    <div class="panel-body-left">
      <div class="panel-body-right">
        <div class="panel-body-content">
          <table width="100%" border="0" cellspacing="0" cellpadding="5">
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:UsersNewUser.tpl.php

示例9: UrlRewriteSimple

*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><?php 
$this->Display("header");
?>
<link href="/templates/adminapps/skin/blue/style.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
<div class="block">&nbsp;</div>
<div>
  <form action="<?php 
echo UrlRewriteSimple('Articles', 'Save', true);
?>
"
	method="post" enctype="multipart/form-data" name="form1" id="form1">
    <div class="UserBodyTitle">游记发布/编辑</div>
    <div class="data-line-border-f0f0f0">
      <div class="block"></div>
      <div class="font-12px">
        <table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="15%" align="right">标题:</td>
            <td><input name="Title" type="text"
			class="input-style" id="Title" value="<?php 
echo self::__htmlspecialchars($Detail[Title]);
?>
" /></td>
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:ArticlesCreate.tpl.php

示例10: UrlRewriteSimple

?>
</td>
	  </tr>
</table>
        </div>
      </div>
    </div>
  </div>
  <div class="panel-footer">
    <div class="panel-footer-left"></div>
    <div class="panel-footer-right"></div>
  </div>
</div>

<form action="<?php 
echo UrlRewriteSimple('CustPro', 'Add', true);
?>
"
	method="post" enctype="multipart/form-data" name="form1" id="form1">
    
<div class="panel">
  <div class="panel-header">
    <div class="panel-header-left"></div>
    <div class="panel-header-content">开通产品</div>
    <div class="panel-header-right"></div>
  </div>
  <div class="panel-body">
    <div class="panel-body-left">
      <div class="panel-body-right">
        <div class="panel-body-content">
   <table width="100%" border="0" cellspacing="0" cellpadding="5">
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:CustProAdd.tpl.php

示例11: url

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><?php 
$this->Display("header");
?>
<style type="text/css">
<!--
@import url("/Templates/a2010/adminapps/images/style.css");
-->
</style>
</head>
<body>
<form action="<?php 
echo UrlRewriteSimple($MyModule, 'Add', true);
?>
"
	method="post" enctype="multipart/form-data" name="form1" id="form1">
  <div class="panel">
    <div class="panel-header">
      <div class="panel-header-left"></div>
      <div class="panel-header-content">添加代理商</div>
      <div class="panel-header-right"></div>
    </div>
    <div class="panel-body">
      <div class="panel-body-left">
        <div class="panel-body-right">
          <div class="panel-body-content">
            <table width="100%" border="0" cellspacing="0" cellpadding="5">
              <tr>
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:AgentAdd.tpl.php

示例12: url

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><?php 
$this->Display("header");
?>
<style type="text/css">
<!--
@import url("/Templates/a2010/adminapps/images/style.css");
-->
</style>
<script type="text/javascript" src="Javascripts/calendar.js"></script>
</head>
<body>
<form action="<?php 
echo UrlRewriteSimple('Project', 'Add', true);
?>
"
	method="post" enctype="multipart/form-data" name="form1" id="form1">
    
<div class="panel">
  <div class="panel-header">
    <div class="panel-header-left"></div>
    <div class="panel-header-content">添加产品</div>
    <div class="panel-header-right"></div>
  </div>
  <div class="panel-body">
    <div class="panel-body-left">
      <div class="panel-body-right">
        <div class="panel-body-content">
   <table width="100%" border="0" cellspacing="0" cellpadding="5">
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:ProjectAdd.tpl.php

示例13: UrlRewriteSimple

 <?php 
        echo $list[CategoryName];
        ?>
</td>
    <td align="center">&nbsp;<?php 
        echo $list[Alias];
        ?>
</td>
    <td align="center"><a href="<?php 
        echo UrlRewriteSimple('ArticlesCategory', 'Index');
        ?>
&ParentCategoryID=<?php 
        echo $list[CategoryID];
        ?>
" >下级目录</a>&nbsp;&nbsp;&nbsp;<a href="<?php 
        echo UrlRewriteSimple('ArticlesCategory', 'Create');
        ?>
&CategoryID=<?php 
        echo $list[CategoryID];
        ?>
" >编辑</a>&nbsp;&nbsp;&nbsp; <a href="javascript:;" onclick="CategoryDelete('<?php 
        echo $list[CategoryID];
        ?>
')">删除</a> </td>
  </tr>
  
<?php 
    }
}
?>
</table>
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:ArticlesCategoryIndex.tpl.php

示例14: UrlRewriteSimple

        ?>
" class="aid" /></td>
    <td align="center"><?php 
        echo $list[ArticleID];
        ?>
</td>
    <td>&nbsp;<?php 
        echo $list[Title];
        ?>
</td>
    <td align="center" style="font-size:8px;"  nowrap="nowrap"><?php 
        echo $list[Updated];
        ?>
</td>
    <td align="center" ><a href="<?php 
        echo UrlRewriteSimple('Articles', 'Create', true);
        ?>
&ArticleID=<?php 
        echo $list[ArticleID];
        ?>
">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/articles/article-<?php 
        echo $list[ArticleID];
        ?>
.htm" target="_blank">预览</a></td>
  </tr>
  
<?php 
    }
}
?>
  </tbody>
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:ArticlesTopicsDetail.tpl.php

示例15: UrlRewriteSimple

include 'AgentHead.php';
?>
<body>
<div class="wrap">
  <?php 
include 'AgentTop.php';
?>
  <div class="main">
    <?php 
include 'AgentLeft.php';
?>
    <div class="content-right fr"> 
    <div class="content-box">
    <div class="content-main profile">
<form action="<?php 
echo UrlRewriteSimple($MyModule, $MyAction, true);
?>
" method="post">
            <table width="100%" border="0" cellspacing="0" cellpadding="5">
              <tr height="50">
                <td width="150" align="right">用户名:</td>
                <td><input type="text" disabled="disabled" class="input" id="UserName" value="<?php 
echo $Data['UserName'];
?>
"/><font color="green"> √</font></td>
              </tr>
             <tr height="50">
                <td align="right">密码:</td>
                <td><input name="PassWord" type="text" class="input" id="PassWord" placeholder="不少于6个字符,不修改放空" /><font color="green"> √</font></td>
              </tr>
             <tr height="50">
开发者ID:baiduXM,项目名称:agent,代码行数:31,代码来源:AgentProfile.php


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