原创 js獲取目錄位置與傳值方式

//js獲取項目根路徑,如: http://localhost:8083/uimcardprj function getRootPath(){ //獲取當前網址,如: http://localhost:8083/uimcardp

原创 織夢獲取當前欄目的父級欄目

找到目錄下的include/helper/archive.helper.php 文件添加函數,注意修改表前綴 //獲取上級欄目名稱 if ( ! function_exists('GetParentTypename')) {  func

原创 js文字內容左右移動事件

<style type="text/css"> #gongao{width:500px;height:30px;overflow:hidden;l

原创 js欄目根據地址欄修改背景添加class

//nav $(document).ready(function() {     $(".nav1 a").each(function() {   

原创 織夢文章arclist標籤

 基本語法:                 {dede:arclist  flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight=''

原创 html文字滾動效果

marquee標籤單個滾動效果 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>marquee</title> </

原创 織夢後臺內容編輯器不顯示

只能後臺內容編輯器不顯示無法編輯內容,一般是織夢Html編輯器的發生了變化 修改方法: 進入後臺---系統設置---系統基本參數---核心設置---Html編輯器--織夢默認編輯器是ckeditor

原创 tp查詢語言

$m = M('User'); $arr = $m->where("username='time' and sex=0")->find();  //字符串查詢方式,注意字符串需要單引號 $data['u

原创 dedecms織夢如何調用指定一個欄目的內容和描述

 {dede:type typeid='12'}        <div>         <a href="[field:typelink/]"><img src="[field:typeimg /]" alt="" /></a>

原创 CURD-增刪查改操作

增 -C Create      public function create(){         $m =M('User');         $m->username=ore;  //添加的字段值

原创 解決“wampserver 2.2中127.0.0.1可以訪問,但localhost無法訪問”的問題

在windows平臺中,解決“wampserver 2.2中127.0.0.1可以訪問,但localhost無法訪問”的問題 本文假定wampserver安裝在D:\wamp目錄下。 步驟1: 在C:\Windows\System32\d

原创 織夢首頁、列表頁調用文章body內容的兩種方法

 關於首頁、列表頁調用文章body內容的兩種方法,具體方法如下: 第一種方法: {dede:arclist  typeid='5' addfields='body'  channelid='1' limit='0,4' orderby

原创 Thinkphp MVC以及4種url放文方式

三、ThinkPHP的MVC對應的目錄   //瞭解     M 項目目錄/應用目錄(Home)/Lib/Model    V 項目目錄/應用目錄(Home)/Tpl     C 項目目錄/應用目錄(Ho

原创 thinkPHP網絡地址欄分隔符,url從寫 隱藏index.php目錄入口文件

//修改網絡地址欄分隔符         //http://localhost:8080/Think3.2/index.php/User-getshow-name-tim-age-18         在

原创 form表單提交方式

<form action="/Thinkphp/index.php/User/update" method='post'>     <input type='hidden' name='id' value