Table of Contents
HYL留言板
HYL留言板列表

php留言板制造

Jun 13, 2016 pm 12:43 PM
class div gt lt script

php留言板制作



	<title></title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="css/ui-btn.css">
    <link rel="stylesheet" href="css/ui-input.css">
    <link rel="stylesheet" href="css/ui-img.css">
    <link rel="stylesheet" href="css/ui-res.css">
    <link rel="stylesheet" href="css/ui-list.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/style.css">
	<script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/config.js"></script>
	<script src="js/dis_control.js"></script>
	<script src="js/zy_json.js"></script>
	<script src="js/zy_anim.js"></script>
	<script>
	</script>

    
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" style="display:block;" class="uh c-org c-m1 t-wh ub;">
            	<div class="umw4" ontouchstart="zy_touch()" onclick="">
                <!--插入按钮控件-->
            	</div>
                <h1 id="HYL留言板">HYL留言板</h1>
				<div class="umw4" ontouchstart="zy_touch()" onclick="">
                <!--插入按钮控件-->
            	</div>
            </div>
			
			<!--content开始-->
            <div id="content" class="ub-f1 tx-l t-bla c-gra">
            	<form action="add.php" method="post" accept-charset="gbk" name="form1">
            	<!--登录-->
				<div id="page1"  class="uinn18">
					
					<div class="uba b-gra c-wh us uc-a">  
						<div class="uc-t ubb ub b-gra c-m2 t-bla ub-ac umh4 lis">   
					   		<div class="ut-s">用户</div>    
							<div class="ub-f1 tx-r t-gra ulev-3 umar-l">
								<div class="c-wh uc-n b-gra uinput uinn4">    
									<input placeholder="UID/邮箱/Email" id="uid" type="text" name="user" class="uc-n ulev0" value="">   
								</div>
							</div>
<pre name="code" class="php">


	<title></title>
	<meta charset="gbk">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="css/ui-btn.css">
    <link rel="stylesheet" href="css/ui-input.css">
    <link rel="stylesheet" href="css/ui-img.css">
    <link rel="stylesheet" href="css/ui-res.css">
    <link rel="stylesheet" href="css/ui-list.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/style.css">
	<script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/config.js"></script>
	<script src="js/dis_control.js"></script>
	<script src="js/zy_json.js"></script>
	<script src="js/zy_anim.js"></script>
	<script>
	</script>

    
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" style="display:block;" class="uh c-org c-m1 t-wh ub;">
            	<div class="umw4" ontouchstart="zy_touch()" onclick="">
                <!--插入按钮控件-->
            	</div>
                <h1 id="HYL留言板列表">HYL留言板列表</h1>
				<div class="umw4" ontouchstart="zy_touch()" onclick="">
                <!--插入按钮控件-->
            	</div>
            </div>
			
			<!--content开始-->
            <div id="content" class="ub-f1 tx-l t-bla c-gra">
            	<!--列表开始-->
<div class="uc-a1 uba b-gra  c-org1 us ">    	 
	<?php error_reporting(0);
		header("content-Type:text/html;charset=gbk");
		include("conn.php");
		$sql="select * from message order by id desc";
		$result = mysql_query($sql,$conn);
		while($query=mysql_fetch_array($result)){
			//echo $query[user]."<br>";
			//echo iconv("GBK","UTF-8",$query[title]);
			//echo $query[title]."<br>";
			//echo $query[content]."<br>";
			//echo $query[lastdate]."<br>";
			echo "<ul ontouchstart="\"zy_touch('btn-act')\"" class='\"' ub ubb b-gra c-m2 t-bla ub-ac lis> ";
			echo "<li class='\"lis-th' ub-img im29>";
			echo "<ul class='\"ub-f1' ub ub-ver>";
			echo "<li class='\"ulev1\"'>".iconv("GBK","UTF-8",$query[title])."</li>";
			echo "<li class='\"ulev-1' umh4 t-gra>".iconv("GBK","UTF-8",$query[content])." </li>";
			echo "<ul class='\"ub' ub-ac t-gra ulev-2>";
			echo "<li class='\"umh2' umw2 ub-img im1> ";
			echo "<li class='\"ub-f1\"'>".iconv("GBK","UTF-8",$query[user])."</li>";
			echo "<li class='\"umh2' umw2 ub-img im2>";
			echo "<li class='\"ub-f1\"'>".iconv("GBK","UTF-8",$query[lastdate])."</li>";
			echo "</ul>";
			echo "</ul>";
			echo "</ul>";
		}
	
	?>
  </div>
<!--列表结束-->
            </div>
            <!--content结束-->
        </div>
    
<script>
	
</script>

Copy after login
? 
Copy after login
标题
内容
记录用户信息
发表
查看留言
<script> if(localStorage.getItem("uid")!=null){ var uid=localStorage.getItem("uid"); document.getElementById("uid").value=uid; } function ischecked(){ var check=document.getElementById("cbrem"); if(check.checked){ //alert("选中"); localStorage.setItem("uid",document.getElementById("uid").value); }else{ //alert("未选中"); localStorage.setItem("uid",""); } } function login(){ ischecked(); document.forms[0].submit(); } function gotoList(){ window.location.href="list.php"; } </script>

?

?

?

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What are the differences between Huawei GT3 Pro and GT4? What are the differences between Huawei GT3 Pro and GT4? Dec 29, 2023 pm 02:27 PM

Many users will choose the Huawei brand when choosing smart watches. Among them, Huawei GT3pro and GT4 are very popular choices. Many users are curious about the difference between Huawei GT3pro and GT4. Let’s introduce the two to you. . What are the differences between Huawei GT3pro and GT4? 1. Appearance GT4: 46mm and 41mm, the material is glass mirror + stainless steel body + high-resolution fiber back shell. GT3pro: 46.6mm and 42.9mm, the material is sapphire glass + titanium body/ceramic body + ceramic back shell 2. Healthy GT4: Using the latest Huawei Truseen5.5+ algorithm, the results will be more accurate. GT3pro: Added ECG electrocardiogram and blood vessel and safety

How to use classes and methods in Python How to use classes and methods in Python Apr 21, 2023 pm 02:28 PM

Concepts and instances of classes and methods Class (Class): used to describe a collection of objects with the same properties and methods. It defines the properties and methods common to every object in the collection. Objects are instances of classes. Method: Function defined in the class. Class construction method __init__(): The class has a special method (construction method) named init(), which is automatically called when the class is instantiated. Instance variables: In the declaration of a class, attributes are represented by variables. Such variables are called instance variables. An instance variable is a variable modified with self. Instantiation: Create an instance of a class, a specific object of the class. Inheritance: that is, a derived class (derivedclass) inherits the base class (baseclass)

Fix: Snipping tool not working in Windows 11 Fix: Snipping tool not working in Windows 11 Aug 24, 2023 am 09:48 AM

Why Snipping Tool Not Working on Windows 11 Understanding the root cause of the problem can help find the right solution. Here are the top reasons why the Snipping Tool might not be working properly: Focus Assistant is On: This prevents the Snipping Tool from opening. Corrupted application: If the snipping tool crashes on launch, it might be corrupted. Outdated graphics drivers: Incompatible drivers may interfere with the snipping tool. Interference from other applications: Other running applications may conflict with the Snipping Tool. Certificate has expired: An error during the upgrade process may cause this issu simple solution. These are suitable for most users and do not require any special technical knowledge. 1. Update Windows and Microsoft Store apps

Replace the class name of an element using jQuery Replace the class name of an element using jQuery Feb 24, 2024 pm 11:03 PM

jQuery is a classic JavaScript library that is widely used in web development. It simplifies operations such as handling events, manipulating DOM elements, and performing animations on web pages. When using jQuery, you often encounter situations where you need to replace the class name of an element. This article will introduce some practical methods and specific code examples. 1. Use the removeClass() and addClass() methods jQuery provides the removeClass() method for deletion

What does class mean in python? What does class mean in python? May 21, 2019 pm 05:10 PM

Class is a keyword in Python, used to define a class. The method of defining a class: add a space after class and then add the class name; class name rules: capitalize the first letter. If there are multiple words, use camel case naming, such as [class Dog()].

Detailed explanation of PHP Class usage: Make your code clearer and easier to read Detailed explanation of PHP Class usage: Make your code clearer and easier to read Mar 10, 2024 pm 12:03 PM

When writing PHP code, using classes is a very common practice. By using classes, we can encapsulate related functions and data in a single unit, making the code clearer, easier to read, and easier to maintain. This article will introduce the usage of PHPClass in detail and provide specific code examples to help readers better understand how to apply classes to optimize code in actual projects. 1. Create and use classes In PHP, you can use the keyword class to define a class and define properties and methods in the class.

What does script mean? What does script mean? Aug 29, 2023 pm 02:00 PM

Script means script or script. In film, television, drama and other art forms, script is used to describe the dialogue, actions and scenes of characters, as well as the development and structure of the story. Script writing requires certain skills and experience, and it should be vivid and powerful, capable of attracting the audience's attention and conveying the emotions and themes of the story. Scripts are particularly important in the film and television industries. They are the basis of creation and determine the storyline, character development and dialogue content of the film. Script is an important tool for artists to create and express themselves.

How to use css to realize that a div is missing a corner How to use css to realize that a div is missing a corner Jan 30, 2023 am 09:23 AM

CSS method to realize that a div is missing a corner: 1. Create an HTML sample file and define a div; 2. Set the width and height background color for the div; 3. Add a pseudo class to the div that needs to delete a corner, and set the pseudo class to Use the same color as the background color, then rotate it 45 degrees, and then position it to the corner that needs to be removed.

See all articles