⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phpsave.cst

📁 几个用CodeSmith的自动生成的C#代码
💻 CST
字号:
<%@ CodeTemplate Language="C#" TargetLanguage="Text" Src="" Inherits="" Debug="False" 
Description="Template description here." %>
<%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema" Category="Context"  
Description="Table to get the data from."%>
<%@ Property Name="Page" 
	Type="System.String" 
	Optional="False" 
	Category="1. Class Definition" 
	Description="The name of Folder." %>

<%@ Assembly Name="SchemaExplorer" %>
<%@ Assembly Name="System.Data" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="SchemaExplorer" %>
<%@ Import Namespace="System.Text"%>

<?
	include "template_top.php";
?>
<?
	<% for (int i = 0; i < SourceTable.Columns.Count; i++) { %>
	//??<%=SourceTable.Columns[i].Description%>
		if(isset($_POST["<%=SourceTable.Columns[i].Name%>"]))
			$<%=SourceTable.Columns[i].Name%>=$_POST["<%=SourceTable.Columns[i].Name%>"];
		else $<%=SourceTable.Columns[i].Name%>="";
	<%}%>
	$exec="insert into <%=SourceTable.Name%>(
			<% for (int i = 0; i < SourceTable.Columns.Count; i++) { %>
				<%=SourceTable.Columns[i].Name%><% if(i < SourceTable.Columns.Count-1)Response.Write(",");%>
			<%}%>)
			values(<% for (int i = 0; i < SourceTable.Columns.Count; i++) { %>
					'".$<%=SourceTable.Columns[i].Name%>."'<% if(i < SourceTable.Columns.Count-1)Response.Write(",");
				%><%}%>)";
			
	echo($exec);
	mysql_query($exec);
	
	Alert_GoURL("??????","<%=Page%>_list.php");
?>

<script runat="template">
// My methods here.


</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -