| @@ -232,7 +232,7 @@ if ($dopost == 'time') { | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center" class="py-2"> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center" class="py-2"> | |||||
| <button onclick='getSelCat("<?php echo $targetid; ?>");' class='btn btn-success btn-sm'>保存</button> | <button onclick='getSelCat("<?php echo $targetid; ?>");' class='btn btn-success btn-sm'>保存</button> | ||||
| <button type='button' onclick='CloseMsg()' class='btn btn-success btn-sm'>关闭</button> | <button type='button' onclick='CloseMsg()' class='btn btn-success btn-sm'>关闭</button> | ||||
| </td> | </td> | ||||
| @@ -1 +0,0 @@ | |||||
| div{margin:0;padding:0}body{margin:auto;padding:0;background:#9ad075;text-align:center}dl.bitem{width:148px;margin:0 0 6px 6px}dl.bitem dt{background:url(../../static/web/img/menubg.gif);height:26px;line-height:26px;text-align:center;cursor:pointer}dl.bitem dd{padding:6px;background-color:#fff}.fllct{float:left;width:90px}.flrct{padding-top:2px;float:left}div.items{line-height:22px;background:url(../../static/web/img/arr4.gif) no-repeat 10px 9px}span.items{padding:10px 0 10px 22px;background:url(../../static/web/img/arr4.gif) no-repeat 10px 12px}ul{padding-top:2px}li{height:22px}.sitemu li{padding:0 0 0 22px;line-height:24px;background:url(../../static/web/img/arr4.gif) no-repeat 10px 9px} | |||||
| @@ -61,7 +61,7 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid') | |||||
| global $cfg_phpurl,$addsql; | global $cfg_phpurl,$addsql; | ||||
| $start = ($pageno-1) * $pagesize; | $start = ($pageno-1) * $pagesize; | ||||
| $printhead ="<table width='98%' cellpadding='1' cellspacing='1' align='center' class='table maintable' style='margin-bottom:10px'> | $printhead ="<table width='98%' cellpadding='1' cellspacing='1' align='center' class='table maintable' style='margin-bottom:10px'> | ||||
| <tr align='center' bgcolor='#F8FCF1'> | |||||
| <tr align='center' bgcolor='#FBFCE2'> | |||||
| <td width='5%' class='tbsname'><a href='javascript:;' onclick=\"ReloadPage('aid')\">ID</a></td> | <td width='5%' class='tbsname'><a href='javascript:;' onclick=\"ReloadPage('aid')\">ID</a></td> | ||||
| <td width='20%' class='tbsname'>列表名称</td> | <td width='20%' class='tbsname'>列表名称</td> | ||||
| <td width='20%' class='tbsname'>模板文件</td> | <td width='20%' class='tbsname'>模板文件</td> | ||||
| @@ -75,7 +75,7 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid') | |||||
| while($row = $dsql->GetArray()) | while($row = $dsql->GetArray()) | ||||
| { | { | ||||
| $listurl = GetFreeListUrl($row['aid'],$row['namerule'],$row['listdir'],$row['defaultpage'],$row['nodefault']); | $listurl = GetFreeListUrl($row['aid'],$row['namerule'],$row['listdir'],$row['defaultpage'],$row['nodefault']); | ||||
| $line = "<tr align='center' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "<tr align='center' onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td>{$row['aid']}</td> | <td>{$row['aid']}</td> | ||||
| <td> <a href='$listurl' target='_blank'>{$row['title']}</a> </td> | <td> <a href='$listurl' target='_blank'>{$row['title']}</a> </td> | ||||
| <td> {$row['templet']} </td> | <td> {$row['templet']} </td> | ||||
| @@ -2,7 +2,6 @@ | |||||
| >admin_AllowAll>可以进行任意操作 | >admin_AllowAll>可以进行任意操作 | ||||
| >>频道管理 | >>频道管理 | ||||
| >c_List>列出频道 | >c_List>列出频道 | ||||
| @@ -86,4 +85,4 @@ | |||||
| >member_Type>会员类型管理 | >member_Type>会员类型管理 | ||||
| >member_List>列出会员 | >member_List>列出会员 | ||||
| >member_Edit>修改会员 | >member_Edit>修改会员 | ||||
| >member_Del>删除会员 | |||||
| >member_Del>删除会员 | |||||
| @@ -1,51 +0,0 @@ | |||||
| <?php | |||||
| /** | |||||
| * 快捷发布菜单 | |||||
| * | |||||
| * @version $Id: index_memnu_module.php 1 23:44 2011/2/16 tianya $ | |||||
| * @package DedeBIZ.Administrator | |||||
| * @copyright Copyright (c) 2022, DedeBIZ.COM | |||||
| * @license https://www.dedebiz.com/license | |||||
| * @link https://www.dedebiz.com | |||||
| */ | |||||
| require(dirname(__FILE__)."/config.php"); | |||||
| if ($cuserLogin->adminStyle != 'dedecms') { | |||||
| header("location:index_menu.php?openitem=100"); | |||||
| exit(); | |||||
| } | |||||
| require(DEDEADMIN.'/inc/inc_menu_module.php'); | |||||
| require(DEDEADMIN.'/inc/inc_menu_func.php'); | |||||
| ?> | |||||
| <html> | |||||
| <head> | |||||
| <title>DedeBIZ menu</title> | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css" /> | |||||
| <link rel="stylesheet" href="css/menuold.css" /> | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" /> | |||||
| <base target="main" /> | |||||
| </head> | |||||
| <script> | |||||
| function showHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display == 'block' || obj.style.display == '') obj.style.display = 'none'; | |||||
| else obj.style.display = 'block'; | |||||
| } | |||||
| </script> | |||||
| <base target="main"> | |||||
| <body> | |||||
| <table width='100%' height="100%" cellspacing='0' cellpadding='0'> | |||||
| <tr> | |||||
| <td> | |||||
| <?php | |||||
| GetMenus($cuserLogin->getUserRank(), 'module'); | |||||
| ?> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| <table width="260" align="center" cellpadding="0" cellspacing="0"> | |||||
| <tr> | |||||
| <td height="6"></td> | |||||
| </tr> | |||||
| </table> | |||||
| </body> | |||||
| </html> | |||||
| @@ -0,0 +1,360 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: C-like mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/edit/matchbrackets.js"></script> | |||||
| <link rel="stylesheet" href="../../addon/hint/show-hint.css"> | |||||
| <script src="../../addon/hint/show-hint.js"></script> | |||||
| <script src="clike.js"></script> | |||||
| <style>.CodeMirror {border: 2px inset #dee;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">C-like</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>C-like mode</h2> | |||||
| <div><textarea id="c-code"> | |||||
| /* C demo code */ | |||||
| #include <zmq.h> | |||||
| #include <pthread.h> | |||||
| #include <semaphore.h> | |||||
| #include <time.h> | |||||
| #include <stdio.h> | |||||
| #include <fcntl.h> | |||||
| #include <malloc.h> | |||||
| typedef struct { | |||||
| void* arg_socket; | |||||
| zmq_msg_t* arg_msg; | |||||
| char* arg_string; | |||||
| unsigned long arg_len; | |||||
| int arg_int, arg_command; | |||||
| int signal_fd; | |||||
| int pad; | |||||
| void* context; | |||||
| sem_t sem; | |||||
| } acl_zmq_context; | |||||
| #define p(X) (context->arg_##X) | |||||
| void* zmq_thread(void* context_pointer) { | |||||
| acl_zmq_context* context = (acl_zmq_context*)context_pointer; | |||||
| char ok = 'K', err = 'X'; | |||||
| int res; | |||||
| while (1) { | |||||
| while ((res = sem_wait(&context->sem)) == EINTR); | |||||
| if (res) {write(context->signal_fd, &err, 1); goto cleanup;} | |||||
| switch(p(command)) { | |||||
| case 0: goto cleanup; | |||||
| case 1: p(socket) = zmq_socket(context->context, p(int)); break; | |||||
| case 2: p(int) = zmq_close(p(socket)); break; | |||||
| case 3: p(int) = zmq_bind(p(socket), p(string)); break; | |||||
| case 4: p(int) = zmq_connect(p(socket), p(string)); break; | |||||
| case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &p(len)); break; | |||||
| case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break; | |||||
| case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break; | |||||
| case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break; | |||||
| case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break; | |||||
| } | |||||
| p(command) = errno; | |||||
| write(context->signal_fd, &ok, 1); | |||||
| } | |||||
| cleanup: | |||||
| close(context->signal_fd); | |||||
| free(context_pointer); | |||||
| return 0; | |||||
| } | |||||
| void* zmq_thread_init(void* zmq_context, int signal_fd) { | |||||
| acl_zmq_context* context = malloc(sizeof(acl_zmq_context)); | |||||
| pthread_t thread; | |||||
| context->context = zmq_context; | |||||
| context->signal_fd = signal_fd; | |||||
| sem_init(&context->sem, 1, 0); | |||||
| pthread_create(&thread, 0, &zmq_thread, context); | |||||
| pthread_detach(thread); | |||||
| return context; | |||||
| } | |||||
| </textarea></div> | |||||
| <h2>C++ example</h2> | |||||
| <div><textarea id="cpp-code"> | |||||
| #include <iostream> | |||||
| #include "mystuff/util.h" | |||||
| namespace { | |||||
| enum Enum { | |||||
| VAL1, VAL2, VAL3 | |||||
| }; | |||||
| char32_t unicode_string = U"\U0010FFFF"; | |||||
| string raw_string = R"delim(anything | |||||
| you | |||||
| want)delim"; | |||||
| int Helper(const MyType& param) { | |||||
| return 0; | |||||
| } | |||||
| } // namespace | |||||
| class ForwardDec; | |||||
| template <class T, class V> | |||||
| class Class : public BaseClass { | |||||
| const MyType<T, V> member_; | |||||
| public: | |||||
| const MyType<T, V>& Method() const { | |||||
| return member_; | |||||
| } | |||||
| void Method2(MyType<T, V>* value); | |||||
| } | |||||
| template <class T, class V> | |||||
| void Class::Method2(MyType<T, V>* value) { | |||||
| std::out << 1 >> method(); | |||||
| value->Method3(member_); | |||||
| member_ = value; | |||||
| } | |||||
| </textarea></div> | |||||
| <h2>Objective-C example</h2> | |||||
| <div><textarea id="objectivec-code"> | |||||
| /* | |||||
| This is a longer comment | |||||
| That spans two lines | |||||
| */ | |||||
| #import <Test/Test.h> | |||||
| @implementation YourAppDelegate | |||||
| // This is a one-line comment | |||||
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ | |||||
| char myString[] = "This is a C character array"; | |||||
| int test = 5; | |||||
| return YES; | |||||
| } | |||||
| </textarea></div> | |||||
| <h2>Java example</h2> | |||||
| <div><textarea id="java-code"> | |||||
| import com.demo.util.MyType; | |||||
| import com.demo.util.MyInterface; | |||||
| public enum Enum { | |||||
| VAL1, VAL2, VAL3 | |||||
| } | |||||
| public class Class<T, V> implements MyInterface { | |||||
| public static final MyType<T, V> member; | |||||
| private class InnerClass { | |||||
| public int zero() { | |||||
| return 0; | |||||
| } | |||||
| } | |||||
| @Override | |||||
| public MyType method() { | |||||
| return member; | |||||
| } | |||||
| public void method2(MyType<T, V> value) { | |||||
| method(); | |||||
| value.method3(); | |||||
| member = value; | |||||
| } | |||||
| } | |||||
| </textarea></div> | |||||
| <h2>Scala example</h2> | |||||
| <div><textarea id="scala-code"> | |||||
| object FilterTest extends App { | |||||
| def filter(xs: List[Int], threshold: Int) = { | |||||
| def process(ys: List[Int]): List[Int] = | |||||
| if (ys.isEmpty) ys | |||||
| else if (ys.head < threshold) ys.head :: process(ys.tail) | |||||
| else process(ys.tail) | |||||
| process(xs) | |||||
| } | |||||
| println(filter(List(1, 9, 2, 8, 3, 7, 4), 5)) | |||||
| } | |||||
| </textarea></div> | |||||
| <h2>Kotlin mode</h2> | |||||
| <div><textarea id="kotlin-code"> | |||||
| package org.wasabi.http | |||||
| import java.util.concurrent.Executors | |||||
| import java.net.InetSocketAddress | |||||
| import org.wasabi.app.AppConfiguration | |||||
| import io.netty.bootstrap.ServerBootstrap | |||||
| import io.netty.channel.nio.NioEventLoopGroup | |||||
| import io.netty.channel.socket.nio.NioServerSocketChannel | |||||
| import org.wasabi.app.AppServer | |||||
| public class HttpServer(private val appServer: AppServer) { | |||||
| val bootstrap: ServerBootstrap | |||||
| val primaryGroup: NioEventLoopGroup | |||||
| val workerGroup: NioEventLoopGroup | |||||
| init { | |||||
| // Define worker groups | |||||
| primaryGroup = NioEventLoopGroup() | |||||
| workerGroup = NioEventLoopGroup() | |||||
| // Initialize bootstrap of server | |||||
| bootstrap = ServerBootstrap() | |||||
| bootstrap.group(primaryGroup, workerGroup) | |||||
| bootstrap.channel(javaClass<NioServerSocketChannel>()) | |||||
| bootstrap.childHandler(NettyPipelineInitializer(appServer)) | |||||
| } | |||||
| public fun start(wait: Boolean = true) { | |||||
| val channel = bootstrap.bind(appServer.configuration.port)?.sync()?.channel() | |||||
| if (wait) { | |||||
| channel?.closeFuture()?.sync() | |||||
| } | |||||
| } | |||||
| public fun stop() { | |||||
| // Shutdown all event loops | |||||
| primaryGroup.shutdownGracefully() | |||||
| workerGroup.shutdownGracefully() | |||||
| // Wait till all threads are terminated | |||||
| primaryGroup.terminationFuture().sync() | |||||
| workerGroup.terminationFuture().sync() | |||||
| } | |||||
| } | |||||
| </textarea></div> | |||||
| <h2>Ceylon mode</h2> | |||||
| <div><textarea id="ceylon-code"> | |||||
| "Produces the [[stream|Iterable]] that results from repeated | |||||
| application of the given [[function|next]] to the given | |||||
| [[first]] element of the stream, until the function first | |||||
| returns [[finished]]. If the given function never returns | |||||
| `finished`, the resulting stream is infinite. | |||||
| For example: | |||||
| loop(0)(2.plus).takeWhile(10.largerThan) | |||||
| produces the stream `{ 0, 2, 4, 6, 8 }`." | |||||
| tagged("Streams") | |||||
| shared {Element+} loop<Element>( | |||||
| "The first element of the resulting stream." | |||||
| Element first)( | |||||
| "The function that produces the next element of the | |||||
| stream, given the current element. The function may | |||||
| return [[finished]] to indicate the end of the | |||||
| stream." | |||||
| Element|Finished next(Element element)) | |||||
| => let (start = first) | |||||
| object satisfies {Element+} { | |||||
| first => start; | |||||
| empty => false; | |||||
| function nextElement(Element element) | |||||
| => next(element); | |||||
| iterator() | |||||
| => object satisfies Iterator<Element> { | |||||
| variable Element|Finished current = start; | |||||
| shared actual Element|Finished next() { | |||||
| if (!is Finished result = current) { | |||||
| current = nextElement(result); | |||||
| return result; | |||||
| } | |||||
| else { | |||||
| return finished; | |||||
| } | |||||
| } | |||||
| }; | |||||
| }; | |||||
| </textarea></div> | |||||
| <script> | |||||
| var cEditor = CodeMirror.fromTextArea(document.getElementById("c-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-csrc" | |||||
| }); | |||||
| var cppEditor = CodeMirror.fromTextArea(document.getElementById("cpp-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-c++src" | |||||
| }); | |||||
| var javaEditor = CodeMirror.fromTextArea(document.getElementById("java-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-java" | |||||
| }); | |||||
| var objectivecEditor = CodeMirror.fromTextArea(document.getElementById("objectivec-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-objectivec" | |||||
| }); | |||||
| var scalaEditor = CodeMirror.fromTextArea(document.getElementById("scala-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-scala" | |||||
| }); | |||||
| var kotlinEditor = CodeMirror.fromTextArea(document.getElementById("kotlin-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-kotlin" | |||||
| }); | |||||
| var ceylonEditor = CodeMirror.fromTextArea(document.getElementById("ceylon-code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-ceylon" | |||||
| }); | |||||
| var mac = CodeMirror.keyMap.default == CodeMirror.keyMap.macDefault; | |||||
| CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Space"] = "autocomplete"; | |||||
| </script> | |||||
| <p>Simple mode that tries to handle C-like languages as well as it | |||||
| can. Takes two configuration parameters: <code>keywords</code>, an | |||||
| object whose property names are the keywords in the language, | |||||
| and <code>useCPP</code>, which determines whether C preprocessor | |||||
| directives are recognized.</p> | |||||
| <p><strong>MIME types defined:</strong> <code>text/x-csrc</code> | |||||
| (C), <code>text/x-c++src</code> (C++), <code>text/x-java</code> | |||||
| (Java), <code>text/x-csharp</code> (C#), | |||||
| <code>text/x-objectivec</code> (Objective-C), | |||||
| <code>text/x-scala</code> (Scala), <code>text/x-vertex</code> | |||||
| <code>x-shader/x-fragment</code> (shader programs), | |||||
| <code>text/x-squirrel</code> (Squirrel) and | |||||
| <code>text/x-ceylon</code> (Ceylon)</p> | |||||
| </article> | |||||
| @@ -0,0 +1,767 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: Scala mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <link rel="stylesheet" href="../../theme/ambiance.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/edit/matchbrackets.js"></script> | |||||
| <script src="clike.js"></script> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">Scala</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>Scala mode</h2> | |||||
| <form> | |||||
| <textarea id="code" name="code"> | |||||
| /* __ *\ | |||||
| ** ________ ___ / / ___ Scala API ** | |||||
| ** / __/ __// _ | / / / _ | (c) 2003-2011, LAMP/EPFL ** | |||||
| ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** | |||||
| ** /____/\___/_/ |_/____/_/ | | ** | |||||
| ** |/ ** | |||||
| \* */ | |||||
| package scala.collection | |||||
| import generic._ | |||||
| import mutable.{ Builder, ListBuffer } | |||||
| import annotation.{tailrec, migration, bridge} | |||||
| import annotation.unchecked.{ uncheckedVariance => uV } | |||||
| import parallel.ParIterable | |||||
| /** A template trait for traversable collections of type `Traversable[A]`. | |||||
| * | |||||
| * $traversableInfo | |||||
| * @define mutability | |||||
| * @define traversableInfo | |||||
| * This is a base trait of all kinds of $mutability Scala collections. It | |||||
| * implements the behavior common to all collections, in terms of a method | |||||
| * `foreach` with signature: | |||||
| * {{{ | |||||
| * def foreach[U](f: Elem => U): Unit | |||||
| * }}} | |||||
| * Collection classes mixing in this trait provide a concrete | |||||
| * `foreach` method which traverses all the | |||||
| * elements contained in the collection, applying a given function to each. | |||||
| * They also need to provide a method `newBuilder` | |||||
| * which creates a builder for collections of the same kind. | |||||
| * | |||||
| * A traversable class might or might not have two properties: strictness | |||||
| * and orderedness. Neither is represented as a type. | |||||
| * | |||||
| * The instances of a strict collection class have all their elements | |||||
| * computed before they can be used as values. By contrast, instances of | |||||
| * a non-strict collection class may defer computation of some of their | |||||
| * elements until after the instance is available as a value. | |||||
| * A typical example of a non-strict collection class is a | |||||
| * <a href="../immutable/Stream.html" target="ContentFrame"> | |||||
| * `scala.collection.immutable.Stream`</a>. | |||||
| * A more general class of examples are `TraversableViews`. | |||||
| * | |||||
| * If a collection is an instance of an ordered collection class, traversing | |||||
| * its elements with `foreach` will always visit elements in the | |||||
| * same order, even for different runs of the program. If the class is not | |||||
| * ordered, `foreach` can visit elements in different orders for | |||||
| * different runs (but it will keep the same order in the same run).' | |||||
| * | |||||
| * A typical example of a collection class which is not ordered is a | |||||
| * `HashMap` of objects. The traversal order for hash maps will | |||||
| * depend on the hash codes of its elements, and these hash codes might | |||||
| * differ from one run to the next. By contrast, a `LinkedHashMap` | |||||
| * is ordered because it's `foreach` method visits elements in the | |||||
| * order they were inserted into the `HashMap`. | |||||
| * | |||||
| * @author Martin Odersky | |||||
| * @version 2.8 | |||||
| * @since 2.8 | |||||
| * @tparam A the element type of the collection | |||||
| * @tparam Repr the type of the actual collection containing the elements. | |||||
| * | |||||
| * @define Coll Traversable | |||||
| * @define coll traversable collection | |||||
| */ | |||||
| trait TraversableLike[+A, +Repr] extends HasNewBuilder[A, Repr] | |||||
| with FilterMonadic[A, Repr] | |||||
| with TraversableOnce[A] | |||||
| with GenTraversableLike[A, Repr] | |||||
| with Parallelizable[A, ParIterable[A]] | |||||
| { | |||||
| self => | |||||
| import Traversable.breaks._ | |||||
| /** The type implementing this traversable */ | |||||
| protected type Self = Repr | |||||
| /** The collection of type $coll underlying this `TraversableLike` object. | |||||
| * By default this is implemented as the `TraversableLike` object itself, | |||||
| * but this can be overridden. | |||||
| */ | |||||
| def repr: Repr = this.asInstanceOf[Repr] | |||||
| /** The underlying collection seen as an instance of `$Coll`. | |||||
| * By default this is implemented as the current collection object itself, | |||||
| * but this can be overridden. | |||||
| */ | |||||
| protected[this] def thisCollection: Traversable[A] = this.asInstanceOf[Traversable[A]] | |||||
| /** A conversion from collections of type `Repr` to `$Coll` objects. | |||||
| * By default this is implemented as just a cast, but this can be overridden. | |||||
| */ | |||||
| protected[this] def toCollection(repr: Repr): Traversable[A] = repr.asInstanceOf[Traversable[A]] | |||||
| /** Creates a new builder for this collection type. | |||||
| */ | |||||
| protected[this] def newBuilder: Builder[A, Repr] | |||||
| protected[this] def parCombiner = ParIterable.newCombiner[A] | |||||
| /** Applies a function `f` to all elements of this $coll. | |||||
| * | |||||
| * Note: this method underlies the implementation of most other bulk operations. | |||||
| * It's important to implement this method in an efficient way. | |||||
| * | |||||
| * | |||||
| * @param f the function that is applied for its side-effect to every element. | |||||
| * The result of function `f` is discarded. | |||||
| * | |||||
| * @tparam U the type parameter describing the result of function `f`. | |||||
| * This result will always be ignored. Typically `U` is `Unit`, | |||||
| * but this is not necessary. | |||||
| * | |||||
| * @usecase def foreach(f: A => Unit): Unit | |||||
| */ | |||||
| def foreach[U](f: A => U): Unit | |||||
| /** Tests whether this $coll is empty. | |||||
| * | |||||
| * @return `true` if the $coll contain no elements, `false` otherwise. | |||||
| */ | |||||
| def isEmpty: Boolean = { | |||||
| var result = true | |||||
| breakable { | |||||
| for (x <- this) { | |||||
| result = false | |||||
| break | |||||
| } | |||||
| } | |||||
| result | |||||
| } | |||||
| /** Tests whether this $coll is known to have a finite size. | |||||
| * All strict collections are known to have finite size. For a non-strict collection | |||||
| * such as `Stream`, the predicate returns `true` if all elements have been computed. | |||||
| * It returns `false` if the stream is not yet evaluated to the end. | |||||
| * | |||||
| * Note: many collection methods will not work on collections of infinite sizes. | |||||
| * | |||||
| * @return `true` if this collection is known to have finite size, `false` otherwise. | |||||
| */ | |||||
| def hasDefiniteSize = true | |||||
| def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| if (that.isInstanceOf[IndexedSeqLike[_, _]]) b.sizeHint(this, that.seq.size) | |||||
| b ++= thisCollection | |||||
| b ++= that.seq | |||||
| b.result | |||||
| } | |||||
| @bridge | |||||
| def ++[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = | |||||
| ++(that: GenTraversableOnce[B])(bf) | |||||
| /** Concatenates this $coll with the elements of a traversable collection. | |||||
| * It differs from ++ in that the right operand determines the type of the | |||||
| * resulting collection rather than the left one. | |||||
| * | |||||
| * @param that the traversable to append. | |||||
| * @tparam B the element type of the returned collection. | |||||
| * @tparam That $thatinfo | |||||
| * @param bf $bfinfo | |||||
| * @return a new collection of type `That` which contains all elements | |||||
| * of this $coll followed by all elements of `that`. | |||||
| * | |||||
| * @usecase def ++:[B](that: TraversableOnce[B]): $Coll[B] | |||||
| * | |||||
| * @return a new $coll which contains all elements of this $coll | |||||
| * followed by all elements of `that`. | |||||
| */ | |||||
| def ++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| if (that.isInstanceOf[IndexedSeqLike[_, _]]) b.sizeHint(this, that.size) | |||||
| b ++= that | |||||
| b ++= thisCollection | |||||
| b.result | |||||
| } | |||||
| /** This overload exists because: for the implementation of ++: we should reuse | |||||
| * that of ++ because many collections override it with more efficient versions. | |||||
| * Since TraversableOnce has no '++' method, we have to implement that directly, | |||||
| * but Traversable and down can use the overload. | |||||
| */ | |||||
| def ++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = | |||||
| (that ++ seq)(breakOut) | |||||
| def map[B, That](f: A => B)(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| b.sizeHint(this) | |||||
| for (x <- this) b += f(x) | |||||
| b.result | |||||
| } | |||||
| def flatMap[B, That](f: A => GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| for (x <- this) b ++= f(x).seq | |||||
| b.result | |||||
| } | |||||
| /** Selects all elements of this $coll which satisfy a predicate. | |||||
| * | |||||
| * @param p the predicate used to test elements. | |||||
| * @return a new $coll consisting of all elements of this $coll that satisfy the given | |||||
| * predicate `p`. The order of the elements is preserved. | |||||
| */ | |||||
| def filter(p: A => Boolean): Repr = { | |||||
| val b = newBuilder | |||||
| for (x <- this) | |||||
| if (p(x)) b += x | |||||
| b.result | |||||
| } | |||||
| /** Selects all elements of this $coll which do not satisfy a predicate. | |||||
| * | |||||
| * @param p the predicate used to test elements. | |||||
| * @return a new $coll consisting of all elements of this $coll that do not satisfy the given | |||||
| * predicate `p`. The order of the elements is preserved. | |||||
| */ | |||||
| def filterNot(p: A => Boolean): Repr = filter(!p(_)) | |||||
| def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| for (x <- this) if (pf.isDefinedAt(x)) b += pf(x) | |||||
| b.result | |||||
| } | |||||
| /** Builds a new collection by applying an option-valued function to all | |||||
| * elements of this $coll on which the function is defined. | |||||
| * | |||||
| * @param f the option-valued function which filters and maps the $coll. | |||||
| * @tparam B the element type of the returned collection. | |||||
| * @tparam That $thatinfo | |||||
| * @param bf $bfinfo | |||||
| * @return a new collection of type `That` resulting from applying the option-valued function | |||||
| * `f` to each element and collecting all defined results. | |||||
| * The order of the elements is preserved. | |||||
| * | |||||
| * @usecase def filterMap[B](f: A => Option[B]): $Coll[B] | |||||
| * | |||||
| * @param pf the partial function which filters and maps the $coll. | |||||
| * @return a new $coll resulting from applying the given option-valued function | |||||
| * `f` to each element and collecting all defined results. | |||||
| * The order of the elements is preserved. | |||||
| def filterMap[B, That](f: A => Option[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| for (x <- this) | |||||
| f(x) match { | |||||
| case Some(y) => b += y | |||||
| case _ => | |||||
| } | |||||
| b.result | |||||
| } | |||||
| */ | |||||
| /** Partitions this $coll in two ${coll}s according to a predicate. | |||||
| * | |||||
| * @param p the predicate on which to partition. | |||||
| * @return a pair of ${coll}s: the first $coll consists of all elements that | |||||
| * satisfy the predicate `p` and the second $coll consists of all elements | |||||
| * that don't. The relative order of the elements in the resulting ${coll}s | |||||
| * is the same as in the original $coll. | |||||
| */ | |||||
| def partition(p: A => Boolean): (Repr, Repr) = { | |||||
| val l, r = newBuilder | |||||
| for (x <- this) (if (p(x)) l else r) += x | |||||
| (l.result, r.result) | |||||
| } | |||||
| def groupBy[K](f: A => K): immutable.Map[K, Repr] = { | |||||
| val m = mutable.Map.empty[K, Builder[A, Repr]] | |||||
| for (elem <- this) { | |||||
| val key = f(elem) | |||||
| val bldr = m.getOrElseUpdate(key, newBuilder) | |||||
| bldr += elem | |||||
| } | |||||
| val b = immutable.Map.newBuilder[K, Repr] | |||||
| for ((k, v) <- m) | |||||
| b += ((k, v.result)) | |||||
| b.result | |||||
| } | |||||
| /** Tests whether a predicate holds for all elements of this $coll. | |||||
| * | |||||
| * $mayNotTerminateInf | |||||
| * | |||||
| * @param p the predicate used to test elements. | |||||
| * @return `true` if the given predicate `p` holds for all elements | |||||
| * of this $coll, otherwise `false`. | |||||
| */ | |||||
| def forall(p: A => Boolean): Boolean = { | |||||
| var result = true | |||||
| breakable { | |||||
| for (x <- this) | |||||
| if (!p(x)) { result = false; break } | |||||
| } | |||||
| result | |||||
| } | |||||
| /** Tests whether a predicate holds for some of the elements of this $coll. | |||||
| * | |||||
| * $mayNotTerminateInf | |||||
| * | |||||
| * @param p the predicate used to test elements. | |||||
| * @return `true` if the given predicate `p` holds for some of the | |||||
| * elements of this $coll, otherwise `false`. | |||||
| */ | |||||
| def exists(p: A => Boolean): Boolean = { | |||||
| var result = false | |||||
| breakable { | |||||
| for (x <- this) | |||||
| if (p(x)) { result = true; break } | |||||
| } | |||||
| result | |||||
| } | |||||
| /** Finds the first element of the $coll satisfying a predicate, if any. | |||||
| * | |||||
| * $mayNotTerminateInf | |||||
| * $orderDependent | |||||
| * | |||||
| * @param p the predicate used to test elements. | |||||
| * @return an option value containing the first element in the $coll | |||||
| * that satisfies `p`, or `None` if none exists. | |||||
| */ | |||||
| def find(p: A => Boolean): Option[A] = { | |||||
| var result: Option[A] = None | |||||
| breakable { | |||||
| for (x <- this) | |||||
| if (p(x)) { result = Some(x); break } | |||||
| } | |||||
| result | |||||
| } | |||||
| def scan[B >: A, That](z: B)(op: (B, B) => B)(implicit cbf: CanBuildFrom[Repr, B, That]): That = scanLeft(z)(op) | |||||
| def scanLeft[B, That](z: B)(op: (B, A) => B)(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| b.sizeHint(this, 1) | |||||
| var acc = z | |||||
| b += acc | |||||
| for (x <- this) { acc = op(acc, x); b += acc } | |||||
| b.result | |||||
| } | |||||
| @migration(2, 9, | |||||
| "This scanRight definition has changed in 2.9.\n" + | |||||
| "The previous behavior can be reproduced with scanRight.reverse." | |||||
| ) | |||||
| def scanRight[B, That](z: B)(op: (A, B) => B)(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| var scanned = List(z) | |||||
| var acc = z | |||||
| for (x <- reversed) { | |||||
| acc = op(x, acc) | |||||
| scanned ::= acc | |||||
| } | |||||
| val b = bf(repr) | |||||
| for (elem <- scanned) b += elem | |||||
| b.result | |||||
| } | |||||
| /** Selects the first element of this $coll. | |||||
| * $orderDependent | |||||
| * @return the first element of this $coll. | |||||
| * @throws `NoSuchElementException` if the $coll is empty. | |||||
| */ | |||||
| def head: A = { | |||||
| var result: () => A = () => throw new NoSuchElementException | |||||
| breakable { | |||||
| for (x <- this) { | |||||
| result = () => x | |||||
| break | |||||
| } | |||||
| } | |||||
| result() | |||||
| } | |||||
| /** Optionally selects the first element. | |||||
| * $orderDependent | |||||
| * @return the first element of this $coll if it is nonempty, `None` if it is empty. | |||||
| */ | |||||
| def headOption: Option[A] = if (isEmpty) None else Some(head) | |||||
| /** Selects all elements except the first. | |||||
| * $orderDependent | |||||
| * @return a $coll consisting of all elements of this $coll | |||||
| * except the first one. | |||||
| * @throws `UnsupportedOperationException` if the $coll is empty. | |||||
| */ | |||||
| override def tail: Repr = { | |||||
| if (isEmpty) throw new UnsupportedOperationException("empty.tail") | |||||
| drop(1) | |||||
| } | |||||
| /** Selects the last element. | |||||
| * $orderDependent | |||||
| * @return The last element of this $coll. | |||||
| * @throws NoSuchElementException If the $coll is empty. | |||||
| */ | |||||
| def last: A = { | |||||
| var lst = head | |||||
| for (x <- this) | |||||
| lst = x | |||||
| lst | |||||
| } | |||||
| /** Optionally selects the last element. | |||||
| * $orderDependent | |||||
| * @return the last element of this $coll$ if it is nonempty, `None` if it is empty. | |||||
| */ | |||||
| def lastOption: Option[A] = if (isEmpty) None else Some(last) | |||||
| /** Selects all elements except the last. | |||||
| * $orderDependent | |||||
| * @return a $coll consisting of all elements of this $coll | |||||
| * except the last one. | |||||
| * @throws `UnsupportedOperationException` if the $coll is empty. | |||||
| */ | |||||
| def init: Repr = { | |||||
| if (isEmpty) throw new UnsupportedOperationException("empty.init") | |||||
| var lst = head | |||||
| var follow = false | |||||
| val b = newBuilder | |||||
| b.sizeHint(this, -1) | |||||
| for (x <- this.seq) { | |||||
| if (follow) b += lst | |||||
| else follow = true | |||||
| lst = x | |||||
| } | |||||
| b.result | |||||
| } | |||||
| def take(n: Int): Repr = slice(0, n) | |||||
| def drop(n: Int): Repr = | |||||
| if (n <= 0) { | |||||
| val b = newBuilder | |||||
| b.sizeHint(this) | |||||
| b ++= thisCollection result | |||||
| } | |||||
| else sliceWithKnownDelta(n, Int.MaxValue, -n) | |||||
| def slice(from: Int, until: Int): Repr = sliceWithKnownBound(math.max(from, 0), until) | |||||
| // Precondition: from >= 0, until > 0, builder already configured for building. | |||||
| private[this] def sliceInternal(from: Int, until: Int, b: Builder[A, Repr]): Repr = { | |||||
| var i = 0 | |||||
| breakable { | |||||
| for (x <- this.seq) { | |||||
| if (i >= from) b += x | |||||
| i += 1 | |||||
| if (i >= until) break | |||||
| } | |||||
| } | |||||
| b.result | |||||
| } | |||||
| // Precondition: from >= 0 | |||||
| private[scala] def sliceWithKnownDelta(from: Int, until: Int, delta: Int): Repr = { | |||||
| val b = newBuilder | |||||
| if (until <= from) b.result | |||||
| else { | |||||
| b.sizeHint(this, delta) | |||||
| sliceInternal(from, until, b) | |||||
| } | |||||
| } | |||||
| // Precondition: from >= 0 | |||||
| private[scala] def sliceWithKnownBound(from: Int, until: Int): Repr = { | |||||
| val b = newBuilder | |||||
| if (until <= from) b.result | |||||
| else { | |||||
| b.sizeHintBounded(until - from, this) | |||||
| sliceInternal(from, until, b) | |||||
| } | |||||
| } | |||||
| def takeWhile(p: A => Boolean): Repr = { | |||||
| val b = newBuilder | |||||
| breakable { | |||||
| for (x <- this) { | |||||
| if (!p(x)) break | |||||
| b += x | |||||
| } | |||||
| } | |||||
| b.result | |||||
| } | |||||
| def dropWhile(p: A => Boolean): Repr = { | |||||
| val b = newBuilder | |||||
| var go = false | |||||
| for (x <- this) { | |||||
| if (!p(x)) go = true | |||||
| if (go) b += x | |||||
| } | |||||
| b.result | |||||
| } | |||||
| def span(p: A => Boolean): (Repr, Repr) = { | |||||
| val l, r = newBuilder | |||||
| var toLeft = true | |||||
| for (x <- this) { | |||||
| toLeft = toLeft && p(x) | |||||
| (if (toLeft) l else r) += x | |||||
| } | |||||
| (l.result, r.result) | |||||
| } | |||||
| def splitAt(n: Int): (Repr, Repr) = { | |||||
| val l, r = newBuilder | |||||
| l.sizeHintBounded(n, this) | |||||
| if (n >= 0) r.sizeHint(this, -n) | |||||
| var i = 0 | |||||
| for (x <- this) { | |||||
| (if (i < n) l else r) += x | |||||
| i += 1 | |||||
| } | |||||
| (l.result, r.result) | |||||
| } | |||||
| /** Iterates over the tails of this $coll. The first value will be this | |||||
| * $coll and the final one will be an empty $coll, with the intervening | |||||
| * values the results of successive applications of `tail`. | |||||
| * | |||||
| * @return an iterator over all the tails of this $coll | |||||
| * @example `List(1,2,3).tails = Iterator(List(1,2,3), List(2,3), List(3), Nil)` | |||||
| */ | |||||
| def tails: Iterator[Repr] = iterateUntilEmpty(_.tail) | |||||
| /** Iterates over the inits of this $coll. The first value will be this | |||||
| * $coll and the final one will be an empty $coll, with the intervening | |||||
| * values the results of successive applications of `init`. | |||||
| * | |||||
| * @return an iterator over all the inits of this $coll | |||||
| * @example `List(1,2,3).inits = Iterator(List(1,2,3), List(1,2), List(1), Nil)` | |||||
| */ | |||||
| def inits: Iterator[Repr] = iterateUntilEmpty(_.init) | |||||
| /** Copies elements of this $coll to an array. | |||||
| * Fills the given array `xs` with at most `len` elements of | |||||
| * this $coll, starting at position `start`. | |||||
| * Copying will stop once either the end of the current $coll is reached, | |||||
| * or the end of the array is reached, or `len` elements have been copied. | |||||
| * | |||||
| * $willNotTerminateInf | |||||
| * | |||||
| * @param xs the array to fill. | |||||
| * @param start the starting index. | |||||
| * @param len the maximal number of elements to copy. | |||||
| * @tparam B the type of the elements of the array. | |||||
| * | |||||
| * | |||||
| * @usecase def copyToArray(xs: Array[A], start: Int, len: Int): Unit | |||||
| */ | |||||
| def copyToArray[B >: A](xs: Array[B], start: Int, len: Int) { | |||||
| var i = start | |||||
| val end = (start + len) min xs.length | |||||
| breakable { | |||||
| for (x <- this) { | |||||
| if (i >= end) break | |||||
| xs(i) = x | |||||
| i += 1 | |||||
| } | |||||
| } | |||||
| } | |||||
| def toTraversable: Traversable[A] = thisCollection | |||||
| def toIterator: Iterator[A] = toStream.iterator | |||||
| def toStream: Stream[A] = toBuffer.toStream | |||||
| /** Converts this $coll to a string. | |||||
| * | |||||
| * @return a string representation of this collection. By default this | |||||
| * string consists of the `stringPrefix` of this $coll, | |||||
| * followed by all elements separated by commas and enclosed in parentheses. | |||||
| */ | |||||
| override def toString = mkString(stringPrefix + "(", ", ", ")") | |||||
| /** Defines the prefix of this object's `toString` representation. | |||||
| * | |||||
| * @return a string representation which starts the result of `toString` | |||||
| * applied to this $coll. By default the string prefix is the | |||||
| * simple name of the collection class $coll. | |||||
| */ | |||||
| def stringPrefix : String = { | |||||
| var string = repr.asInstanceOf[AnyRef].getClass.getName | |||||
| val idx1 = string.lastIndexOf('.' : Int) | |||||
| if (idx1 != -1) string = string.substring(idx1 + 1) | |||||
| val idx2 = string.indexOf('$') | |||||
| if (idx2 != -1) string = string.substring(0, idx2) | |||||
| string | |||||
| } | |||||
| /** Creates a non-strict view of this $coll. | |||||
| * | |||||
| * @return a non-strict view of this $coll. | |||||
| */ | |||||
| def view = new TraversableView[A, Repr] { | |||||
| protected lazy val underlying = self.repr | |||||
| override def foreach[U](f: A => U) = self foreach f | |||||
| } | |||||
| /** Creates a non-strict view of a slice of this $coll. | |||||
| * | |||||
| * Note: the difference between `view` and `slice` is that `view` produces | |||||
| * a view of the current $coll, whereas `slice` produces a new $coll. | |||||
| * | |||||
| * Note: `view(from, to)` is equivalent to `view.slice(from, to)` | |||||
| * $orderDependent | |||||
| * | |||||
| * @param from the index of the first element of the view | |||||
| * @param until the index of the element following the view | |||||
| * @return a non-strict view of a slice of this $coll, starting at index `from` | |||||
| * and extending up to (but not including) index `until`. | |||||
| */ | |||||
| def view(from: Int, until: Int): TraversableView[A, Repr] = view.slice(from, until) | |||||
| /** Creates a non-strict filter of this $coll. | |||||
| * | |||||
| * Note: the difference between `c filter p` and `c withFilter p` is that | |||||
| * the former creates a new collection, whereas the latter only | |||||
| * restricts the domain of subsequent `map`, `flatMap`, `foreach`, | |||||
| * and `withFilter` operations. | |||||
| * $orderDependent | |||||
| * | |||||
| * @param p the predicate used to test elements. | |||||
| * @return an object of class `WithFilter`, which supports | |||||
| * `map`, `flatMap`, `foreach`, and `withFilter` operations. | |||||
| * All these operations apply to those elements of this $coll which | |||||
| * satisfy the predicate `p`. | |||||
| */ | |||||
| def withFilter(p: A => Boolean): FilterMonadic[A, Repr] = new WithFilter(p) | |||||
| /** A class supporting filtered operations. Instances of this class are | |||||
| * returned by method `withFilter`. | |||||
| */ | |||||
| class WithFilter(p: A => Boolean) extends FilterMonadic[A, Repr] { | |||||
| /** Builds a new collection by applying a function to all elements of the | |||||
| * outer $coll containing this `WithFilter` instance that satisfy predicate `p`. | |||||
| * | |||||
| * @param f the function to apply to each element. | |||||
| * @tparam B the element type of the returned collection. | |||||
| * @tparam That $thatinfo | |||||
| * @param bf $bfinfo | |||||
| * @return a new collection of type `That` resulting from applying | |||||
| * the given function `f` to each element of the outer $coll | |||||
| * that satisfies predicate `p` and collecting the results. | |||||
| * | |||||
| * @usecase def map[B](f: A => B): $Coll[B] | |||||
| * | |||||
| * @return a new $coll resulting from applying the given function | |||||
| * `f` to each element of the outer $coll that satisfies | |||||
| * predicate `p` and collecting the results. | |||||
| */ | |||||
| def map[B, That](f: A => B)(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| for (x <- self) | |||||
| if (p(x)) b += f(x) | |||||
| b.result | |||||
| } | |||||
| /** Builds a new collection by applying a function to all elements of the | |||||
| * outer $coll containing this `WithFilter` instance that satisfy | |||||
| * predicate `p` and concatenating the results. | |||||
| * | |||||
| * @param f the function to apply to each element. | |||||
| * @tparam B the element type of the returned collection. | |||||
| * @tparam That $thatinfo | |||||
| * @param bf $bfinfo | |||||
| * @return a new collection of type `That` resulting from applying | |||||
| * the given collection-valued function `f` to each element | |||||
| * of the outer $coll that satisfies predicate `p` and | |||||
| * concatenating the results. | |||||
| * | |||||
| * @usecase def flatMap[B](f: A => TraversableOnce[B]): $Coll[B] | |||||
| * | |||||
| * @return a new $coll resulting from applying the given collection-valued function | |||||
| * `f` to each element of the outer $coll that satisfies predicate `p` and concatenating the results. | |||||
| */ | |||||
| def flatMap[B, That](f: A => GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That = { | |||||
| val b = bf(repr) | |||||
| for (x <- self) | |||||
| if (p(x)) b ++= f(x).seq | |||||
| b.result | |||||
| } | |||||
| /** Applies a function `f` to all elements of the outer $coll containing | |||||
| * this `WithFilter` instance that satisfy predicate `p`. | |||||
| * | |||||
| * @param f the function that is applied for its side-effect to every element. | |||||
| * The result of function `f` is discarded. | |||||
| * | |||||
| * @tparam U the type parameter describing the result of function `f`. | |||||
| * This result will always be ignored. Typically `U` is `Unit`, | |||||
| * but this is not necessary. | |||||
| * | |||||
| * @usecase def foreach(f: A => Unit): Unit | |||||
| */ | |||||
| def foreach[U](f: A => U): Unit = | |||||
| for (x <- self) | |||||
| if (p(x)) f(x) | |||||
| /** Further refines the filter for this $coll. | |||||
| * | |||||
| * @param q the predicate used to test elements. | |||||
| * @return an object of class `WithFilter`, which supports | |||||
| * `map`, `flatMap`, `foreach`, and `withFilter` operations. | |||||
| * All these operations apply to those elements of this $coll which | |||||
| * satisfy the predicate `q` in addition to the predicate `p`. | |||||
| */ | |||||
| def withFilter(q: A => Boolean): WithFilter = | |||||
| new WithFilter(x => p(x) && q(x)) | |||||
| } | |||||
| // A helper for tails and inits. | |||||
| private def iterateUntilEmpty(f: Traversable[A @uV] => Traversable[A @uV]): Iterator[Repr] = { | |||||
| val it = Iterator.iterate(thisCollection)(f) takeWhile (x => !x.isEmpty) | |||||
| it ++ Iterator(Nil) map (newBuilder ++= _ result) | |||||
| } | |||||
| } | |||||
| </textarea> | |||||
| </form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| theme: "ambiance", | |||||
| mode: "text/x-scala" | |||||
| }); | |||||
| </script> | |||||
| </article> | |||||
| @@ -0,0 +1,103 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: Closure Stylesheets (GSS) mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <link rel="stylesheet" href="../../addon/hint/show-hint.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="css.js"></script> | |||||
| <script src="../../addon/hint/show-hint.js"></script> | |||||
| <script src="../../addon/hint/css-hint.js"></script> | |||||
| <style>.CodeMirror {background: #f8f8f8;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">Closure Stylesheets (GSS)</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>Closure Stylesheets (GSS) mode</h2> | |||||
| <form><textarea id="code" name="code"> | |||||
| /* Some example Closure Stylesheets */ | |||||
| @provide 'some.styles'; | |||||
| @require 'other.styles'; | |||||
| @component { | |||||
| @def FONT_FAMILY "Times New Roman", Georgia, Serif; | |||||
| @def FONT_SIZE_NORMAL 15px; | |||||
| @def FONT_NORMAL normal FONT_SIZE_NORMAL FONT_FAMILY; | |||||
| @def BG_COLOR rgb(235, 239, 249); | |||||
| @def DIALOG_BORDER_COLOR rgb(107, 144, 218); | |||||
| @def DIALOG_BG_COLOR BG_COLOR; | |||||
| @def LEFT_HAND_NAV_WIDTH 180px; | |||||
| @def LEFT_HAND_NAV_PADDING 3px; | |||||
| @defmixin size(WIDTH, HEIGHT) { | |||||
| width: WIDTH; | |||||
| height: HEIGHT; | |||||
| } | |||||
| body { | |||||
| background-color: BG_COLOR; | |||||
| margin: 0; | |||||
| padding: 3em 6em; | |||||
| font: FONT_NORMAL; | |||||
| color: #000; | |||||
| } | |||||
| #navigation a { | |||||
| font-weight: bold; | |||||
| text-decoration: none !important; | |||||
| } | |||||
| .dialog { | |||||
| background-color: DIALOG_BG_COLOR; | |||||
| border: 1px solid DIALOG_BORDER_COLOR; | |||||
| } | |||||
| .content { | |||||
| position: absolute; | |||||
| margin-left: add(LEFT_HAND_NAV_PADDING, /* padding left */ | |||||
| LEFT_HAND_NAV_WIDTH, | |||||
| LEFT_HAND_NAV_PADDING); /* padding right */ | |||||
| } | |||||
| .logo { | |||||
| @mixin size(150px, 55px); | |||||
| background-image: url('http://www.google.com/images/logo_sm.gif'); | |||||
| } | |||||
| } | |||||
| </textarea></form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| extraKeys: {"Ctrl-Space": "autocomplete"}, | |||||
| lineNumbers: true, | |||||
| matchBrackets: "text/x-less", | |||||
| mode: "text/x-gss" | |||||
| }); | |||||
| </script> | |||||
| <p>A mode for <a href="https://github.com/google/closure-stylesheets">Closure Stylesheets</a> (GSS).</p> | |||||
| <p><strong>MIME type defined:</strong> <code>text/x-gss</code>.</p> | |||||
| <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#gss_*">normal</a>, <a href="../../test/index.html#verbose,gss_*">verbose</a>.</p> | |||||
| </article> | |||||
| @@ -0,0 +1,75 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: CSS mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <link rel="stylesheet" href="../../addon/hint/show-hint.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="css.js"></script> | |||||
| <script src="../../addon/hint/show-hint.js"></script> | |||||
| <script src="../../addon/hint/css-hint.js"></script> | |||||
| <style>.CodeMirror {background: #f8f8f8;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">CSS</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>CSS mode</h2> | |||||
| <form><textarea id="code" name="code"> | |||||
| /* Some example CSS */ | |||||
| @import url("something.css"); | |||||
| body { | |||||
| margin: 0; | |||||
| padding: 3em 6em; | |||||
| font-family: tahoma, arial, sans-serif; | |||||
| color: #000; | |||||
| } | |||||
| #navigation a { | |||||
| font-weight: bold; | |||||
| text-decoration: none !important; | |||||
| } | |||||
| h1 { | |||||
| font-size: 2.5em; | |||||
| } | |||||
| h2 { | |||||
| font-size: 1.7em; | |||||
| } | |||||
| h1:before, h2:before { | |||||
| content: "::"; | |||||
| } | |||||
| code { | |||||
| font-family: courier, monospace; | |||||
| font-size: 80%; | |||||
| color: #418A8A; | |||||
| } | |||||
| </textarea></form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| extraKeys: {"Ctrl-Space": "autocomplete"} | |||||
| }); | |||||
| </script> | |||||
| <p><strong>MIME types defined:</strong> <code>text/css</code>, <code>text/x-scss</code> (<a href="scss.html">demo</a>), <code>text/x-less</code> (<a href="less.html">demo</a>).</p> | |||||
| <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#css_*">normal</a>, <a href="../../test/index.html#verbose,css_*">verbose</a>.</p> | |||||
| </article> | |||||
| @@ -0,0 +1,152 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: LESS mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/edit/matchbrackets.js"></script> | |||||
| <script src="css.js"></script> | |||||
| <style>.CodeMirror {border: 1px solid #ddd; line-height: 1.2;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">LESS</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>LESS mode</h2> | |||||
| <form><textarea id="code" name="code">@media screen and (device-aspect-ratio: 16/9) { … } | |||||
| @media screen and (device-aspect-ratio: 1280/720) { … } | |||||
| @media screen and (device-aspect-ratio: 2560/1440) { … } | |||||
| html:lang(fr-be) | |||||
| tr:nth-child(2n+1) /* represents every odd row of an HTML table */ | |||||
| img:nth-of-type(2n+1) { float: right; } | |||||
| img:nth-of-type(2n) { float: left; } | |||||
| body > h2:not(:first-of-type):not(:last-of-type) | |||||
| html|*:not(:link):not(:visited) | |||||
| *|*:not(:hover) | |||||
| p::first-line { text-transform: uppercase } | |||||
| @namespace foo url(http://www.example.com); | |||||
| foo|h1 { color: blue } /* first rule */ | |||||
| span[hello="Ocean"][goodbye="Land"] | |||||
| E[foo]{ | |||||
| padding:65px; | |||||
| } | |||||
| input[type="search"]::-webkit-search-decoration, | |||||
| input[type="search"]::-webkit-search-cancel-button { | |||||
| -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5 | |||||
| } | |||||
| button::-moz-focus-inner, | |||||
| input::-moz-focus-inner { // Inner padding and border oddities in FF3/4 | |||||
| padding: 0; | |||||
| border: 0; | |||||
| } | |||||
| .btn { | |||||
| // reset here as of 2.0.3 due to Recess property order | |||||
| border-color: #ccc; | |||||
| border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25); | |||||
| } | |||||
| fieldset span button, fieldset span input[type="file"] { | |||||
| font-size:12px; | |||||
| font-family:Arial, Helvetica, sans-serif; | |||||
| } | |||||
| .rounded-corners (@radius: 5px) { | |||||
| border-radius: @radius; | |||||
| -webkit-border-radius: @radius; | |||||
| -moz-border-radius: @radius; | |||||
| } | |||||
| @import url("something.css"); | |||||
| @light-blue: hsl(190, 50%, 65%); | |||||
| #menu { | |||||
| position: absolute; | |||||
| width: 100%; | |||||
| z-index: 3; | |||||
| clear: both; | |||||
| display: block; | |||||
| background-color: @blue; | |||||
| height: 42px; | |||||
| border-top: 2px solid lighten(@alpha-blue, 20%); | |||||
| border-bottom: 2px solid darken(@alpha-blue, 25%); | |||||
| .box-shadow(0, 1px, 8px, 0.6); | |||||
| -moz-box-shadow: 0 0 0 #000; // Because firefox sucks. | |||||
| &.docked { | |||||
| background-color: hsla(210, 60%, 40%, 0.4); | |||||
| } | |||||
| &:hover { | |||||
| background-color: @blue; | |||||
| } | |||||
| #dropdown { | |||||
| margin: 0 0 0 117px; | |||||
| padding: 0; | |||||
| padding-top: 5px; | |||||
| display: none; | |||||
| width: 190px; | |||||
| border-top: 2px solid @medium; | |||||
| color: @highlight; | |||||
| border: 2px solid darken(@medium, 25%); | |||||
| border-left-color: darken(@medium, 15%); | |||||
| border-right-color: darken(@medium, 15%); | |||||
| border-top-width: 0; | |||||
| background-color: darken(@medium, 10%); | |||||
| ul { | |||||
| padding: 0px; | |||||
| } | |||||
| li { | |||||
| font-size: 14px; | |||||
| display: block; | |||||
| text-align: left; | |||||
| padding: 0; | |||||
| border: 0; | |||||
| a { | |||||
| display: block; | |||||
| padding: 0px 15px; | |||||
| text-decoration: none; | |||||
| color: white; | |||||
| &:hover { | |||||
| background-color: darken(@medium, 15%); | |||||
| text-decoration: none; | |||||
| } | |||||
| } | |||||
| } | |||||
| .border-radius(5px, bottom); | |||||
| .box-shadow(0, 6px, 8px, 0.5); | |||||
| } | |||||
| } | |||||
| </textarea></form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| lineNumbers : true, | |||||
| matchBrackets : true, | |||||
| mode: "text/x-less" | |||||
| }); | |||||
| </script> | |||||
| <p>The LESS mode is a sub-mode of the <a href="index.html">CSS mode</a> (defined in <code>css.js</code>).</p> | |||||
| <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#less_*">normal</a>, <a href="../../test/index.html#verbose,less_*">verbose</a>.</p> | |||||
| </article> | |||||
| @@ -0,0 +1,157 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: SCSS mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="css.js"></script> | |||||
| <style>.CodeMirror {background: #f8f8f8;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">SCSS</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>SCSS mode</h2> | |||||
| <form><textarea id="code" name="code"> | |||||
| /* Some example SCSS */ | |||||
| @import "compass/css3"; | |||||
| $variable: #333; | |||||
| $blue: #3bbfce; | |||||
| $margin: 16px; | |||||
| .content-navigation { | |||||
| #nested { | |||||
| background-color: black; | |||||
| } | |||||
| border-color: $blue; | |||||
| color: | |||||
| darken($blue, 9%); | |||||
| } | |||||
| .border { | |||||
| padding: $margin / 2; | |||||
| margin: $margin / 2; | |||||
| border-color: $blue; | |||||
| } | |||||
| @mixin table-base { | |||||
| th { | |||||
| text-align: center; | |||||
| font-weight: bold; | |||||
| } | |||||
| td, th {padding: 2px} | |||||
| } | |||||
| table.hl { | |||||
| margin: 2em 0; | |||||
| td.ln { | |||||
| text-align: right; | |||||
| } | |||||
| } | |||||
| li { | |||||
| font: { | |||||
| family: serif; | |||||
| weight: bold; | |||||
| size: 1.2em; | |||||
| } | |||||
| } | |||||
| @mixin left($dist) { | |||||
| float: left; | |||||
| margin-left: $dist; | |||||
| } | |||||
| #data { | |||||
| @include left(10px); | |||||
| @include table-base; | |||||
| } | |||||
| .source { | |||||
| @include flow-into(target); | |||||
| border: 10px solid green; | |||||
| margin: 20px; | |||||
| width: 200px; } | |||||
| .new-container { | |||||
| @include flow-from(target); | |||||
| border: 10px solid red; | |||||
| margin: 20px; | |||||
| width: 200px; } | |||||
| body { | |||||
| margin: 0; | |||||
| padding: 3em 6em; | |||||
| font-family: tahoma, arial, sans-serif; | |||||
| color: #000; | |||||
| } | |||||
| @mixin yellow() { | |||||
| background: yellow; | |||||
| } | |||||
| .big { | |||||
| font-size: 14px; | |||||
| } | |||||
| .nested { | |||||
| @include border-radius(3px); | |||||
| @extend .big; | |||||
| p { | |||||
| background: whitesmoke; | |||||
| a { | |||||
| color: red; | |||||
| } | |||||
| } | |||||
| } | |||||
| #navigation a { | |||||
| font-weight: bold; | |||||
| text-decoration: none !important; | |||||
| } | |||||
| h1 { | |||||
| font-size: 2.5em; | |||||
| } | |||||
| h2 { | |||||
| font-size: 1.7em; | |||||
| } | |||||
| h1:before, h2:before { | |||||
| content: "::"; | |||||
| } | |||||
| code { | |||||
| font-family: courier, monospace; | |||||
| font-size: 80%; | |||||
| color: #418A8A; | |||||
| } | |||||
| </textarea></form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/x-scss" | |||||
| }); | |||||
| </script> | |||||
| <p>The SCSS mode is a sub-mode of the <a href="index.html">CSS mode</a> (defined in <code>css.js</code>).</p> | |||||
| <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#scss_*">normal</a>, <a href="../../test/index.html#verbose,scss_*">verbose</a>.</p> | |||||
| </article> | |||||
| @@ -196,5 +196,5 @@ | |||||
| "[tag ol][qualifier .roman] { [property list-style]: [variable simple-roman]; }"); | "[tag ol][qualifier .roman] { [property list-style]: [variable simple-roman]; }"); | ||||
| MT("counter-style-symbols", | MT("counter-style-symbols", | ||||
| "[tag ol] { [property list-style]: [atom symbols]([atom cyclic] [string \"*\"] [string \"\\2020\"] [string \"\\2022\"] [string \"\\A7\"]); }"); | |||||
| "[tag ol] { [property list-style]: [atom symbols]([atom cyclic] [string \"*\"] [string \"\\2020\"] [string \"\\2021\"] [string \"\\A7\"]); }"); | |||||
| })(); | })(); | ||||
| @@ -3,9 +3,9 @@ | |||||
| (function(mod) { | (function(mod) { | ||||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | if (typeof exports == "object" && typeof module == "object") // CommonJS | ||||
| mod(require("../../lib/codemirror"), require("../../xml/xml"), require("../../javascript/javascript"), require("../../css/css")); | |||||
| mod(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css")); | |||||
| else if (typeof define == "function" && define.amd) // AMD | else if (typeof define == "function" && define.amd) // AMD | ||||
| define(["../../lib/codemirror", "../../xml/xml", "../../javascript/javascript", "../../css/css"], mod); | |||||
| define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], mod); | |||||
| else // Plain browser env | else // Plain browser env | ||||
| mod(CodeMirror); | mod(CodeMirror); | ||||
| })(function(CodeMirror) { | })(function(CodeMirror) { | ||||
| @@ -0,0 +1,100 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: HTML mixed mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/selection/selection-pointer.js"></script> | |||||
| <script src="../xml/xml.js"></script> | |||||
| <script src="../javascript/javascript.js"></script> | |||||
| <script src="../css/css.js"></script> | |||||
| <script src="../vbscript/vbscript.js"></script> | |||||
| <script src="htmlmixed.js"></script> | |||||
| <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">HTML mixed</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>HTML mixed mode</h2> | |||||
| <form><textarea id="code" name="code"> | |||||
| <html style="color: green"> | |||||
| <!-- this is a comment --> | |||||
| <head> | |||||
| <title>Mixed HTML Example</title> | |||||
| <style type="text/css"> | |||||
| h1 {font-family: comic sans; color: #f0f;} | |||||
| div {background: yellow !important;} | |||||
| body { | |||||
| max-width: 50em; | |||||
| margin: 1em 2em 1em 5em; | |||||
| } | |||||
| </style> | |||||
| </head> | |||||
| <body> | |||||
| <h1>Mixed HTML Example</h1> | |||||
| <script> | |||||
| function jsFunc(arg1, arg2) { | |||||
| if (arg1 && arg2) document.body.innerHTML = "achoo"; | |||||
| } | |||||
| </script> | |||||
| </body> | |||||
| </html> | |||||
| </textarea></form> | |||||
| <script> | |||||
| // Define an extended mixed-mode that understands vbscript and | |||||
| // leaves mustache/handlebars embedded templates in html mode | |||||
| var mixedMode = { | |||||
| name: "htmlmixed", | |||||
| scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i, | |||||
| mode: null}, | |||||
| {matches: /(text|application)\/(x-)?vb(a|script)/i, | |||||
| mode: "vbscript"}] | |||||
| }; | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| mode: mixedMode, | |||||
| selectionPointer: true | |||||
| }); | |||||
| </script> | |||||
| <p>The HTML mixed mode depends on the XML, JavaScript, and CSS modes.</p> | |||||
| <p>It takes an optional mode configuration | |||||
| option, <code>tags</code>, which can be used to add custom | |||||
| behavior for specific tags. When given, it should be an object | |||||
| mapping tag names (for example <code>script</code>) to arrays or | |||||
| three-element arrays. Those inner arrays indicate [attributeName, | |||||
| valueRegexp, <a href="../../doc/manual.html#option_mode">modeSpec</a>] | |||||
| specifications. For example, you could use <code>["type", /^foo$/, | |||||
| "foo"]</code> to map the attribute <code>type="foo"</code> to | |||||
| the <code>foo</code> mode. When the first two fields are null | |||||
| (<code>[null, null, "mode"]</code>), the given mode is used for | |||||
| any such tag that doesn't match any of the previously given | |||||
| attributes. For example:</p> | |||||
| <pre>var myModeSpec = { | |||||
| name: "htmlmixed", | |||||
| tags: { | |||||
| style: [["type", /^text/(x-)?scss$/, "text/x-scss"], | |||||
| [null, null, "css"]], | |||||
| custom: [[null, null, "customMode"]] | |||||
| } | |||||
| }</pre> | |||||
| <p><strong>MIME types defined:</strong> <code>text/html</code> | |||||
| (redefined, only takes effect if you load this parser after the | |||||
| XML parser).</p> | |||||
| </article> | |||||
| @@ -0,0 +1,114 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: JavaScript mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/edit/matchbrackets.js"></script> | |||||
| <script src="../../addon/comment/continuecomment.js"></script> | |||||
| <script src="../../addon/comment/comment.js"></script> | |||||
| <script src="javascript.js"></script> | |||||
| <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">JavaScript</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>JavaScript mode</h2> | |||||
| <div><textarea id="code" name="code"> | |||||
| // Demo code (the actual new parser character stream implementation) | |||||
| function StringStream(string) { | |||||
| this.pos = 0; | |||||
| this.string = string; | |||||
| } | |||||
| StringStream.prototype = { | |||||
| done: function() {return this.pos >= this.string.length;}, | |||||
| peek: function() {return this.string.charAt(this.pos);}, | |||||
| next: function() { | |||||
| if (this.pos < this.string.length) | |||||
| return this.string.charAt(this.pos++); | |||||
| }, | |||||
| eat: function(match) { | |||||
| var ch = this.string.charAt(this.pos); | |||||
| if (typeof match == "string") var ok = ch == match; | |||||
| else var ok = ch && match.test ? match.test(ch) : match(ch); | |||||
| if (ok) {this.pos++; return ch;} | |||||
| }, | |||||
| eatWhile: function(match) { | |||||
| var start = this.pos; | |||||
| while (this.eat(match)); | |||||
| if (this.pos > start) return this.string.slice(start, this.pos); | |||||
| }, | |||||
| backUp: function(n) {this.pos -= n;}, | |||||
| column: function() {return this.pos;}, | |||||
| eatSpace: function() { | |||||
| var start = this.pos; | |||||
| while (/\s/.test(this.string.charAt(this.pos))) this.pos++; | |||||
| return this.pos - start; | |||||
| }, | |||||
| match: function(pattern, consume, caseInsensitive) { | |||||
| if (typeof pattern == "string") { | |||||
| function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} | |||||
| if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { | |||||
| if (consume !== false) this.pos += str.length; | |||||
| return true; | |||||
| } | |||||
| } | |||||
| else { | |||||
| var match = this.string.slice(this.pos).match(pattern); | |||||
| if (match && consume !== false) this.pos += match[0].length; | |||||
| return match; | |||||
| } | |||||
| } | |||||
| }; | |||||
| </textarea></div> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| continueComments: "Enter", | |||||
| extraKeys: {"Ctrl-Q": "toggleComment"} | |||||
| }); | |||||
| </script> | |||||
| <p> | |||||
| JavaScript mode supports several configuration options: | |||||
| <ul> | |||||
| <li><code>json</code> which will set the mode to expect JSON | |||||
| data rather than a JavaScript program.</li> | |||||
| <li><code>jsonld</code> which will set the mode to expect | |||||
| <a href="http://json-ld.org">JSON-LD</a> linked data rather | |||||
| than a JavaScript program (<a href="json-ld.html">demo</a>).</li> | |||||
| <li><code>typescript</code> which will activate additional | |||||
| syntax highlighting and some other things for TypeScript code | |||||
| (<a href="typescript.html">demo</a>).</li> | |||||
| <li><code>statementIndent</code> which (given a number) will | |||||
| determine the amount of indentation to use for statements | |||||
| continued on a new line.</li> | |||||
| <li><code>wordCharacters</code>, a regexp that indicates which | |||||
| characters should be considered part of an identifier. | |||||
| Defaults to <code>/[\w$]/</code>, which does not handle | |||||
| non-ASCII identifiers. Can be set to something more elaborate | |||||
| to improve Unicode support.</li> | |||||
| </ul> | |||||
| </p> | |||||
| <p><strong>MIME types defined:</strong> <code>text/javascript</code>, <code>application/json</code>, <code>application/ld+json</code>, <code>text/typescript</code>, <code>application/typescript</code>.</p> | |||||
| </article> | |||||
| @@ -0,0 +1,72 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: JSON-LD mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/edit/matchbrackets.js"></script> | |||||
| <script src="../../addon/comment/continuecomment.js"></script> | |||||
| <script src="../../addon/comment/comment.js"></script> | |||||
| <script src="javascript.js"></script> | |||||
| <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |||||
| <div id="nav"> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"/></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">JSON-LD</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>JSON-LD mode</h2> | |||||
| <div><textarea id="code" name="code"> | |||||
| { | |||||
| "@context": { | |||||
| "name": "http://schema.org/name", | |||||
| "description": "http://schema.org/description", | |||||
| "image": { | |||||
| "@id": "http://schema.org/image", | |||||
| "@type": "@id" | |||||
| }, | |||||
| "geo": "http://schema.org/geo", | |||||
| "latitude": { | |||||
| "@id": "http://schema.org/latitude", | |||||
| "@type": "xsd:float" | |||||
| }, | |||||
| "longitude": { | |||||
| "@id": "http://schema.org/longitude", | |||||
| "@type": "xsd:float" | |||||
| }, | |||||
| "xsd": "http://www.w3.org/2001/XMLSchema#" | |||||
| }, | |||||
| "name": "The Empire State Building", | |||||
| "description": "The Empire State Building is a 102-story landmark in New York City.", | |||||
| "image": "http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg", | |||||
| "geo": { | |||||
| "latitude": "40.75", | |||||
| "longitude": "73.98" | |||||
| } | |||||
| } | |||||
| </textarea></div> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| matchBrackets: true, | |||||
| autoCloseBrackets: true, | |||||
| mode: "application/ld+json", | |||||
| lineWrapping: true | |||||
| }); | |||||
| </script> | |||||
| <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> | |||||
| </article> | |||||
| @@ -0,0 +1,61 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: TypeScript mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="javascript.js"></script> | |||||
| <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">TypeScript</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>TypeScript mode</h2> | |||||
| <div><textarea id="code" name="code"> | |||||
| class Greeter { | |||||
| greeting: string; | |||||
| constructor (message: string) { | |||||
| this.greeting = message; | |||||
| } | |||||
| greet() { | |||||
| return "Hello, " + this.greeting; | |||||
| } | |||||
| } | |||||
| var greeter = new Greeter("world"); | |||||
| var button = document.createElement('button') | |||||
| button.innerText = "Say Hello" | |||||
| button.onclick = function() { | |||||
| alert(greeter.greet()) | |||||
| } | |||||
| document.body.appendChild(button) | |||||
| </textarea></div> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "text/typescript" | |||||
| }); | |||||
| </script> | |||||
| <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> | |||||
| </article> | |||||
| @@ -0,0 +1,64 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: PHP mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="../../addon/edit/matchbrackets.js"></script> | |||||
| <script src="../htmlmixed/htmlmixed.js"></script> | |||||
| <script src="../xml/xml.js"></script> | |||||
| <script src="../javascript/javascript.js"></script> | |||||
| <script src="../css/css.js"></script> | |||||
| <script src="../clike/clike.js"></script> | |||||
| <script src="php.js"></script> | |||||
| <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">PHP</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>PHP mode</h2> | |||||
| <form><textarea id="code" name="code"> | |||||
| <?php | |||||
| $a = array('a' => 1, 'b' => 2, 3 => 'c'); | |||||
| echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]"; | |||||
| function hello($who) { | |||||
| return "Hello $who!"; | |||||
| } | |||||
| ?> | |||||
| <p>The program says <?= hello("World") ?>.</p> | |||||
| <script> | |||||
| alert("And here is some JS code"); // also colored | |||||
| </script> | |||||
| </textarea></form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| lineNumbers: true, | |||||
| matchBrackets: true, | |||||
| mode: "application/x-httpd-php", | |||||
| indentUnit: 4, | |||||
| indentWithTabs: true | |||||
| }); | |||||
| </script> | |||||
| <p>Simple HTML/PHP mode based on | |||||
| the <a href="../clike/">C-like</a> mode. Depends on XML, | |||||
| JavaScript, CSS, HTMLMixed, and C-like modes.</p> | |||||
| <p><strong>MIME types defined:</strong> <code>application/x-httpd-php</code> (HTML with PHP code), <code>text/x-php</code> (plain, non-wrapped PHP code).</p> | |||||
| </article> | |||||
| @@ -3,9 +3,9 @@ | |||||
| (function(mod) { | (function(mod) { | ||||
| if (typeof exports == "object" && typeof module == "object") // CommonJS | if (typeof exports == "object" && typeof module == "object") // CommonJS | ||||
| mod(require("../../lib/codemirror"), require("../../htmlmixed/htmlmixed"), require("../../clike/clike")); | |||||
| mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike")); | |||||
| else if (typeof define == "function" && define.amd) // AMD | else if (typeof define == "function" && define.amd) // AMD | ||||
| define(["../../lib/codemirror", "../../htmlmixed/htmlmixed", "../../clike/clike"], mod); | |||||
| define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], mod); | |||||
| else // Plain browser env | else // Plain browser env | ||||
| mod(CodeMirror); | mod(CodeMirror); | ||||
| })(function(CodeMirror) { | })(function(CodeMirror) { | ||||
| @@ -0,0 +1,86 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: SQL Mode for CodeMirror</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css" /> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="sql.js"></script> | |||||
| <link rel="stylesheet" href="../../addon/hint/show-hint.css" /> | |||||
| <script src="../../addon/hint/show-hint.js"></script> | |||||
| <script src="../../addon/hint/sql-hint.js"></script> | |||||
| <style> | |||||
| .CodeMirror { | |||||
| border-top: 1px solid black; | |||||
| border-bottom: 1px solid black; | |||||
| } | |||||
| </style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">SQL Mode for CodeMirror</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>SQL Mode for CodeMirror</h2> | |||||
| <form> | |||||
| <textarea id="code" name="code">-- SQL Mode for CodeMirror | |||||
| SELECT SQL_NO_CACHE DISTINCT | |||||
| @var1 AS `val1`, @'val2', @global.'sql_mode', | |||||
| 1.1 AS `float_val`, .14 AS `another_float`, 0.09e3 AS `int_with_esp`, | |||||
| 0xFA5 AS `hex`, x'fa5' AS `hex2`, 0b101 AS `bin`, b'101' AS `bin2`, | |||||
| DATE '1994-01-01' AS `sql_date`, { T "1994-01-01" } AS `odbc_date`, | |||||
| 'my string', _utf8'your string', N'her string', | |||||
| TRUE, FALSE, UNKNOWN | |||||
| FROM DUAL | |||||
| -- space needed after '--' | |||||
| # 1 line comment | |||||
| /* multiline | |||||
| comment! */ | |||||
| LIMIT 1 OFFSET 0; | |||||
| </textarea> | |||||
| </form> | |||||
| <p><strong>MIME types defined:</strong> | |||||
| <code><a href="?mime=text/x-sql">text/x-sql</a></code>, | |||||
| <code><a href="?mime=text/x-mysql">text/x-mysql</a></code>, | |||||
| <code><a href="?mime=text/x-mariadb">text/x-mariadb</a></code>, | |||||
| <code><a href="?mime=text/x-cassandra">text/x-cassandra</a></code>, | |||||
| <code><a href="?mime=text/x-plsql">text/x-plsql</a></code>, | |||||
| <code><a href="?mime=text/x-mssql">text/x-mssql</a></code>, | |||||
| <code><a href="?mime=text/x-hive">text/x-hive</a></code>, | |||||
| <code><a href="?mime=text/x-pgsql">text/x-pgsql</a></code>, | |||||
| <code><a href="?mime=text/x-gql">text/x-gql</a></code>. | |||||
| </p> | |||||
| <script> | |||||
| window.onload = function() { | |||||
| var mime = 'text/x-mariadb'; | |||||
| // get mime type | |||||
| if (window.location.href.indexOf('mime=') > -1) { | |||||
| mime = window.location.href.substr(window.location.href.indexOf('mime=') + 5); | |||||
| } | |||||
| window.editor = CodeMirror.fromTextArea(document.getElementById('code'), { | |||||
| mode: mime, | |||||
| indentWithTabs: true, | |||||
| smartIndent: true, | |||||
| lineNumbers: true, | |||||
| matchBrackets : true, | |||||
| autofocus: true, | |||||
| extraKeys: {"Ctrl-Space": "autocomplete"}, | |||||
| hintOptions: {tables: { | |||||
| users: {name: null, score: null, birthDate: null}, | |||||
| countries: {name: null, population: null, size: null} | |||||
| }} | |||||
| }); | |||||
| }; | |||||
| </script> | |||||
| </article> | |||||
| @@ -0,0 +1,61 @@ | |||||
| <!doctype html> | |||||
| <title>CodeMirror: XML mode</title> | |||||
| <meta charset="utf-8"/> | |||||
| <link rel=stylesheet href="../../doc/docs.css"> | |||||
| <link rel="stylesheet" href="../../lib/codemirror.css"> | |||||
| <script src="../../lib/codemirror.js"></script> | |||||
| <script src="xml.js"></script> | |||||
| <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |||||
| <div id=nav> | |||||
| <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> | |||||
| <ul> | |||||
| <li><a href="../../index.html">Home</a> | |||||
| <li><a href="../../doc/manual.html">Manual</a> | |||||
| <li><a href="https://github.com/codemirror/codemirror">Code</a> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><a href="../index.html">Language modes</a> | |||||
| <li><a class=active href="#">XML</a> | |||||
| </ul> | |||||
| </div> | |||||
| <article> | |||||
| <h2>XML mode</h2> | |||||
| <form><textarea id="code" name="code"> | |||||
| <html style="color: green"> | |||||
| <!-- this is a comment --> | |||||
| <head> | |||||
| <title>HTML Example</title> | |||||
| </head> | |||||
| <body> | |||||
| The indentation tries to be <em>somewhat &quot;do what | |||||
| I mean&quot;</em>... but might not match your style. | |||||
| </body> | |||||
| </html> | |||||
| </textarea></form> | |||||
| <script> | |||||
| var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |||||
| mode: "text/html", | |||||
| lineNumbers: true | |||||
| }); | |||||
| </script> | |||||
| <p>The XML mode supports these configuration parameters:</p> | |||||
| <dl> | |||||
| <dt><code>htmlMode (boolean)</code></dt> | |||||
| <dd>This switches the mode to parse HTML instead of XML. This | |||||
| means attributes do not have to be quoted, and some elements | |||||
| (such as <code>br</code>) do not require a closing tag.</dd> | |||||
| <dt><code>matchClosing (boolean)</code></dt> | |||||
| <dd>Controls whether the mode checks that close tags match the | |||||
| corresponding opening tag, and highlights mismatches as errors. | |||||
| Defaults to true.</dd> | |||||
| <dt><code>alignCDATA (boolean)</code></dt> | |||||
| <dd>Setting this to true will force the opening tag of CDATA | |||||
| blocks to not be indented.</dd> | |||||
| </dl> | |||||
| <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p> | |||||
| </article> | |||||
| @@ -141,7 +141,7 @@ else if ($action == 'setup') { | |||||
| } | } | ||||
| } | } | ||||
| $prvdir = "<table cellpadding='1' cellspacing='1'>\r\n"; | $prvdir = "<table cellpadding='1' cellspacing='1'>\r\n"; | ||||
| $prvdir .= "<tr style='background:#F8FCF1'><th width='270'>目录</td><th align='center'>可写</td></tr>\r\n"; | |||||
| $prvdir .= "<tr style='background:#FBFCE2'><th width='270'>目录</td><th align='center'>可写</td></tr>\r\n"; | |||||
| foreach ($prvdirs as $k => $v) { | foreach ($prvdirs as $k => $v) { | ||||
| if ($v) $cw = '√'; | if ($v) $cw = '√'; | ||||
| else $cw = "<span class='text-danger'>×</span>"; | else $cw = "<span class='text-danger'>×</span>"; | ||||
| @@ -84,7 +84,7 @@ if ($action == 'upload') { | |||||
| $win->AddHidden("action", 'upload'); | $win->AddHidden("action", 'upload'); | ||||
| $msg = "<table width='900' cellspacing='0' cellpadding='0'> | $msg = "<table width='900' cellspacing='0' cellpadding='0'> | ||||
| <tr> | <tr> | ||||
| <td width='260' >文件格式:</td> | |||||
| <td width='260'>文件格式:</td> | |||||
| <td> | <td> | ||||
| <label><input type='radio' name='filetype' value='0' checked='checked'> 正常的模块包</label> | <label><input type='radio' name='filetype' value='0' checked='checked'> 正常的模块包</label> | ||||
| <label><input type='radio' name='filetype' value='1'> 经过zip压缩的模块包</label> | <label><input type='radio' name='filetype' value='1'> 经过zip压缩的模块包</label> | ||||
| @@ -61,7 +61,7 @@ function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid') | |||||
| $printhead = "<form name='form3' action=\"search_keywords_main.php\" method=\"post\"> | $printhead = "<form name='form3' action=\"search_keywords_main.php\" method=\"post\"> | ||||
| <input name=\"dopost\" type=\"hidden\" value=\"\"> | <input name=\"dopost\" type=\"hidden\" value=\"\"> | ||||
| <table width='98%' cellpadding='1' cellspacing='1' style='margin-bottom:10px' align='center' class='table maintable'> | <table width='98%' cellpadding='1' cellspacing='1' style='margin-bottom:10px' align='center' class='table maintable'> | ||||
| <tr align='center' bgcolor='#F8FCF1' > | |||||
| <tr align='center' bgcolor='#FBFCE2'> | |||||
| <td width='5%'>选择</td> | <td width='5%'>选择</td> | ||||
| <td width='6%'><a href='javascript:;' onclick=\"ReloadPage('aid')\">ID</a></td> | <td width='6%'><a href='javascript:;' onclick=\"ReloadPage('aid')\">ID</a></td> | ||||
| <td width='20%'>关键词</td> | <td width='20%'>关键词</td> | ||||
| @@ -79,7 +79,7 @@ function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid') | |||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetArray()) { | while ($row = $dsql->GetArray()) { | ||||
| $line = " | $line = " | ||||
| <tr align='center' onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <tr align='center' onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td><input name=\"aids[]\" type=\"checkbox\" class=\"np\" value=\"{$row['aid']}\" /></td> | <td><input name=\"aids[]\" type=\"checkbox\" class=\"np\" value=\"{$row['aid']}\" /></td> | ||||
| <td>{$row['aid']}</td> | <td>{$row['aid']}</td> | ||||
| <td><input name='keyword' type='text' id='keyword{$row['aid']}' value='{$row['keyword']}' style='width:93%;'></td> | <td><input name='keyword' type='text' id='keyword{$row['aid']}' value='{$row['keyword']}' style='width:93%;'></td> | ||||
| @@ -94,8 +94,8 @@ if (isset($dopost) && $dopost == 'getone') { | |||||
| $ddd = $row['dd'] + $ddd; | $ddd = $row['dd'] + $ddd; | ||||
| $ccd = $row['cc'] + $ccd; | $ccd = $row['cc'] + $ccd; | ||||
| $msg = "<table width='100%' align='center' cellpadding='3' cellspacing='1'> | $msg = "<table width='100%' align='center' cellpadding='3' cellspacing='1'> | ||||
| <tr align='center' bgcolor='#F8FCF1'> | |||||
| <td width='18%' >管理员</td> | |||||
| <tr align='center' bgcolor='#FBFCE2'> | |||||
| <td width='18%'>管理员</td> | |||||
| <td width='18%'>文档与点击</td> | <td width='18%'>文档与点击</td> | ||||
| <td width='16%'>季度</td> | <td width='16%'>季度</td> | ||||
| <td width='16%'>当月</td> | <td width='16%'>当月</td> | ||||
| @@ -97,7 +97,7 @@ else if ($dopost == 'search') { | |||||
| $configstr = <<<EOT | $configstr = <<<EOT | ||||
| <table width="100%" cellspacing="1" cellpadding="1" id="tdSearch"> | <table width="100%" cellspacing="1" cellpadding="1" id="tdSearch"> | ||||
| <tbody> | <tbody> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="300">参数说明</td> | <td width="300">参数说明</td> | ||||
| <td>参数值</td> | <td>参数值</td> | ||||
| <td width="220">变量名</td> | <td width="220">变量名</td> | ||||
| @@ -13,7 +13,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="#f8f8f8">当前位置 > 搜索结果</td> | <td bgcolor="#f8f8f8">当前位置 > 搜索结果</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td align="left">"<span class="text-danger"><?php echo $keyword; ?></span>"的搜索结果</td> | <td align="left">"<span class="text-danger"><?php echo $keyword; ?></span>"的搜索结果</td> | ||||
| </tr> | </tr> | ||||
| <tr align="center"> | <tr align="center"> | ||||
| @@ -58,16 +58,15 @@ | |||||
| } | } | ||||
| .typetab ul li { | .typetab ul li { | ||||
| float: left; | float: left; | ||||
| margin: 5px 5px 0px; | |||||
| width: 64px; | width: 64px; | ||||
| height: 26px; | height: 26px; | ||||
| line-height: 26px; | line-height: 26px; | ||||
| background: url(../static/web/img/adtype_link.gif) no-repeat scroll 0px 0px; | |||||
| background: #f8f8f8; | |||||
| text-align: center; | text-align: center; | ||||
| cursor: pointer; | cursor: pointer; | ||||
| } | } | ||||
| .typetab ul .act { | .typetab ul .act { | ||||
| background: url(../static/web/img/adtype_act.gif) no-repeat scroll 0px 0px; | |||||
| background:#FBFCE2; | |||||
| } | } | ||||
| .i_table { | .i_table { | ||||
| border: 1px solid #eee; | border: 1px solid #eee; | ||||
| @@ -33,7 +33,7 @@ | |||||
| </form> | </form> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="8%">编号</td> | <td width="8%">编号</td> | ||||
| <td width="20%">分类</td> | <td width="20%">分类</td> | ||||
| <td width="20%">广告名称</td> | <td width="20%">广告名称</td> | ||||
| @@ -43,7 +43,7 @@ | |||||
| <td width="18%">管理</td> | <td width="18%">管理</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.aid/}</td> | <td>{dede:field.aid/}</td> | ||||
| <td>{dede:field.clsname function='TestType(@me,1)'/}</td> | <td>{dede:field.clsname function='TestType(@me,1)'/}</td> | ||||
| <td>{dede:field.adname/}</td> | <td>{dede:field.adname/}</td> | ||||
| @@ -14,7 +14,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="#f8f8f8" colspan="7"><input type="hidden" name="dopost" value="save">广告分类管理<a href="ad_main.php" class="btn btn-success btn-sm ml-2">广告管理</a></td> | <td bgcolor="#f8f8f8" colspan="7"><input type="hidden" name="dopost" value="save">广告分类管理<a href="ad_main.php" class="btn btn-success btn-sm ml-2">广告管理</a></td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="9%" align="center">类型ID</td> | <td width="9%" align="center">类型ID</td> | ||||
| <td width="55%" align="center">广告分类</td> | <td width="55%" align="center">广告分类</td> | ||||
| <td width="36%" align="center">状态</td> | <td width="36%" align="center">状态</td> | ||||
| @@ -36,7 +36,7 @@ | |||||
| } | } | ||||
| ?> | ?> | ||||
| <input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td colspan="5" bgcolor="#f8f8f8">新增一个广告类型:</td> | <td colspan="5" bgcolor="#f8f8f8">新增一个广告类型:</td> | ||||
| </tr> | </tr> | ||||
| <tr align="center"> | <tr align="center"> | ||||
| @@ -72,8 +72,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规内容</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规内容</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -84,8 +84,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -72,8 +72,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规内容</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">图集图片</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规内容</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">图集图片</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -84,8 +84,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">图集图片</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">图集图片</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -48,8 +48,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="900" cellpadding="0" cellspacing="0"> | <table width="900" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td></td> | <td></td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -61,8 +61,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -45,8 +45,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -57,8 +57,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -49,7 +49,7 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="900" cellpadding="0" cellspacing="0"> | <table width="900" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td></td> | <td></td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -46,7 +46,7 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td width="84"></td> | <td width="84"></td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -52,14 +52,14 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="900" cellpadding="0" cellspacing="0"> | <table width="900" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td><a href="javascript:;" class="btn btn-success btn-sm" onClick="ShowHide('getone')">单页采集</a></td> | <td><a href="javascript:;" class="btn btn-success btn-sm" onClick="ShowHide('getone')">单页采集</a></td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" align="center" cellpadding="0" cellspacing="0" bgcolor="#F8FCF1" id="getone" class="table table-borderless" style="<?php if(empty($geturl)) echo 'display:none'; ?>;margin:0"> | |||||
| <table width="98%" align="center" cellpadding="0" cellspacing="0" id="getone" class="table table-borderless" style="<?php if(empty($geturl)) echo 'display:none'; ?>;margin:0"> | |||||
| <form name="getonepage" action="article_add.php" method="get"> | <form name="getonepage" action="article_add.php" method="get"> | ||||
| <input type="hidden" name="channelid" value="<?php echo $channelid; ?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid; ?>"> | ||||
| <input type="hidden" name="cid" value="<?php echo $cid; ?>"> | <input type="hidden" name="cid" value="<?php echo $cid; ?>"> | ||||
| @@ -67,8 +67,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="100%" cellpadding="0" cellspacing="0"> | <table width="100%" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="260"><a name="downurl"></a>采集单个网页:</td> | |||||
| <td width="360" align="center"><input type="text" name="geturl" id="geturl" style="width:260px" value="<?php echo $geturl; ?>"></td> | |||||
| <td width="120">采集单个网页:</td> | |||||
| <td width="270" align="center"><input type="text" name="geturl" id="geturl" value="<?php echo $geturl; ?>" style="width:260px"></td> | |||||
| <td> | <td> | ||||
| <button type="submit" class="btn btn-success btn-sm" name="Submit3">抓取</button> | <button type="submit" class="btn btn-success btn-sm" name="Submit3">抓取</button> | ||||
| <button type="button" class="btn btn-success btn-sm" name="setrule" onClick="OpenMyWinCoOne('article_coonepage_rule.php')">规则管理</button> | <button type="button" class="btn btn-success btn-sm" name="setrule" onClick="OpenMyWinCoOne('article_coonepage_rule.php')">规则管理</button> | ||||
| @@ -287,7 +287,7 @@ table{border-collapse:separate} | |||||
| <td> | <td> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif"><a href='javascript:ShowHideT("adset")'>高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2"><a href='javascript:ShowHideT("adset")'>高级参数</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -99,7 +99,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <form name="form2"> | <form name="form2"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="8%">ID</td> | <td width="8%">ID</td> | ||||
| <td width="8%">选择</td> | <td width="8%">选择</td> | ||||
| <td width="20%">网址</td> | <td width="20%">网址</td> | ||||
| @@ -57,7 +57,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" align="center"> | |||||
| <td bgcolor="#FBFCE2" align="center"> | |||||
| <button type="submit" name="Submit" class="btn btn-success btn-sm">开始执行分析</button> | <button type="submit" name="Submit" class="btn btn-success btn-sm">开始执行分析</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -50,8 +50,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -62,8 +62,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -59,7 +59,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="8%">选择</td> | <td width="8%">选择</td> | ||||
| <td width="25%">关键词</td> | <td width="25%">关键词</td> | ||||
| <td width="35%">链接网址</td> | <td width="35%">链接网址</td> | ||||
| @@ -69,7 +69,7 @@ | |||||
| <form name="form3" action="article_keywords_main.php" method="post"> | <form name="form3" action="article_keywords_main.php" method="post"> | ||||
| <input type="hidden" name="dopost" value="saveall"> | <input type="hidden" name="dopost" value="saveall"> | ||||
| {dede:datalist empty='<tr><td colspan="5"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="5"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="aids[]" value="{dede:field.aid/}" checked='1'></td> | <td><input type="checkbox" name="aids[]" value="{dede:field.aid/}" checked='1'></td> | ||||
| <td><input type="hidden" value="{dede:field.keyword/}" name="keyword_{dede:field.aid/}"> {dede:field.keyword/}</td> | <td><input type="hidden" value="{dede:field.keyword/}" name="keyword_{dede:field.aid/}"> {dede:field.keyword/}</td> | ||||
| <td> | <td> | ||||
| @@ -55,7 +55,7 @@ | |||||
| <input type="hidden" name="channelid" value="<?php echo $channelid; ?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid; ?>"> | ||||
| <input type="hidden" name="maintable" value="<?php echo $maintable; ?>"> | <input type="hidden" name="maintable" value="<?php echo $maintable; ?>"> | ||||
| <input type="hidden" name="titles" value=""> | <input type="hidden" name="titles" value=""> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="10%">选择</td> | <td width="10%">选择</td> | ||||
| <td width="10%">重复数量</td> | <td width="10%">重复数量</td> | ||||
| <td width="80%">文档标题</td> | <td width="80%">文档标题</td> | ||||
| @@ -65,7 +65,7 @@ | |||||
| { | { | ||||
| if($row['dd']==1 ) break; | if($row['dd']==1 ) break; | ||||
| ?> | ?> | ||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#EFEFEF';" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#EFEFEF';" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td> | <td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td> | ||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| @@ -57,7 +57,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" align="center"> | |||||
| <td bgcolor="#FBFCE2" align="center"> | |||||
| <button type="submit" name="Submit" class="btn btn-success btn-sm">分析标题重复的文档</button> | <button type="submit" name="Submit" class="btn btn-success btn-sm">分析标题重复的文档</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -65,7 +65,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" align="center"> | |||||
| <td bgcolor="#FBFCE2" align="center"> | |||||
| <button type="submit" name="Submit" class="btn btn-success btn-sm">开始生成点卡</button> | <button type="submit" name="Submit" class="btn btn-success btn-sm">开始生成点卡</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -59,7 +59,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="8%">选择</td> | <td width="8%">选择</td> | ||||
| <td width="28%">卡号</td> | <td width="28%">卡号</td> | ||||
| <td width="18%">点卡类型</td> | <td width="18%">点卡类型</td> | ||||
| @@ -70,7 +70,7 @@ | |||||
| </tr> | </tr> | ||||
| <form name="form1"> | <form name="form1"> | ||||
| {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="aids" value="{dede:field.aid/}"></td> | <td><input type="checkbox" name="aids" value="{dede:field.aid/}"></td> | ||||
| <td>{dede:field.cardid/}</td> | <td>{dede:field.cardid/}</td> | ||||
| <td><?php echo $TypeNames[$fields['ctid']]?></td> | <td><?php echo $TypeNames[$fields['ctid']]?></td> | ||||
| @@ -15,7 +15,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="f8f8f8" colspan="4">点卡产品分类</td> | <td bgcolor="f8f8f8" colspan="4">点卡产品分类</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="30%" align="center">产品名称</td> | <td width="30%" align="center">产品名称</td> | ||||
| <td width="27%" align="center">点数(金币数)</td> | <td width="27%" align="center">点数(金币数)</td> | ||||
| <td width="30%" align="center">价格</td> | <td width="30%" align="center">价格</td> | ||||
| @@ -40,7 +40,7 @@ | |||||
| } | } | ||||
| ?> | ?> | ||||
| <input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td colspan="4" bgcolor="#f8f8f8">新增一个点卡产品类型:</td> | <td colspan="4" bgcolor="#f8f8f8">新增一个点卡产品类型:</td> | ||||
| </tr> | </tr> | ||||
| <tr align="center"> | <tr align="center"> | ||||
| @@ -145,9 +145,9 @@ | |||||
| <td colspan="2" bgcolor="#fff" align="left"> | <td colspan="2" bgcolor="#fff" align="left"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规选项</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级选项</a></td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规选项</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级选项</a></td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -158,9 +158,9 @@ | |||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | <td colspan="2" bgcolor="#fff" style="text-align:left"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级选项</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级选项</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -171,9 +171,9 @@ | |||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | <td colspan="2" bgcolor="#fff" style="text-align:left"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级选项</td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">栏目内容</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级选项</td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">栏目内容</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -107,7 +107,7 @@ | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="84" cellpadding="0" cellspacing="0"> | <table width="84" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规选项</td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规选项</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -211,7 +211,7 @@ | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table id="addQuick" width="850" cellpadding="3" cellspacing="1"> | <table id="addQuick" width="850" cellpadding="3" cellspacing="1"> | ||||
| <tbody> | <tbody> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="60">排序</td> | <td width="60">排序</td> | ||||
| <td width="170">顶级栏目名称</td> | <td width="170">顶级栏目名称</td> | ||||
| <td width="370">子栏目(用"目录名称1,目录名称2"这样表示多个栏目)</td> | <td width="370">子栏目(用"目录名称1,目录名称2"这样表示多个栏目)</td> | ||||
| @@ -241,7 +241,7 @@ | |||||
| </table> | </table> | ||||
| <table id="addQuickRel" width="302" cellpadding="3" cellspacing="1" style="display:none"> | <table id="addQuickRel" width="302" cellpadding="3" cellspacing="1" style="display:none"> | ||||
| <tbody> | <tbody> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="60">排序</td> | <td width="60">排序</td> | ||||
| <td width="170">栏目名称</td> | <td width="170">栏目名称</td> | ||||
| <td align="center"><button type="button" id="addrel" class="btn btn-success btn-sm">添加</button></td> | <td align="center"><button type="button" id="addrel" class="btn btn-success btn-sm">添加</button></td> | ||||
| @@ -126,9 +126,9 @@ | |||||
| <td colspan="2" bgcolor="#fff" align="left"> | <td colspan="2" bgcolor="#fff" align="left"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规选项</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级选项</a></td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规选项</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级选项</a></td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -139,9 +139,9 @@ | |||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | <td colspan="2" bgcolor="#fff" style="text-align:left"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级选项</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级选项</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem3()">栏目内容</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -152,9 +152,9 @@ | |||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | <td colspan="2" bgcolor="#fff" style="text-align:left"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级选项</td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">栏目内容</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规选项</a></td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级选项</td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">栏目内容</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -22,7 +22,7 @@ | |||||
| 注意事项:这个版本中att对应的字段是SET类型字段,因此为了数据安全起见不允许用户增加其它类型,但调用时允许使用组合条件,如:att='c,p'表示推荐图片新闻 | 注意事项:这个版本中att对应的字段是SET类型字段,因此为了数据安全起见不允许用户增加其它类型,但调用时允许使用组合条件,如:att='c,p'表示推荐图片新闻 | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="15%" align="center">ID</td> | <td width="15%" align="center">ID</td> | ||||
| <td width="15%">排序</td> | <td width="15%">排序</td> | ||||
| <td width="70%">属性名称</td> | <td width="70%">属性名称</td> | ||||
| @@ -132,12 +132,12 @@ | |||||
| echo $typeOptions; | echo $typeOptions; | ||||
| echo "</select>"; | echo "</select>"; | ||||
| echo "<hr>"; | echo "<hr>"; | ||||
| echo "标题关键词:<input id='movekeyword' type='text' name='keyword' value='' ></span>"; | |||||
| echo "标题关键词:<input id='movekeyword' type='text' name='keyword' value=''></span>"; | |||||
| ?> | ?> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"> | |||||
| <button type="button" name="b112" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button> | <button type="button" name="b112" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始操作</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -67,7 +67,7 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan="7" style="margin-left:10px;background:#f8f8f8">{dede:global.positionname/}文档列表</td> | <td colspan="7" style="margin-left:10px;background:#f8f8f8">{dede:global.positionname/}文档列表</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="12%">文档图片</td> | <td width="12%">文档图片</td> | ||||
| <td width="32%">文档标题</td> | <td width="32%">文档标题</td> | ||||
| <td width="16%">类目</td> | <td width="16%">类目</td> | ||||
| @@ -74,7 +74,7 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan="10" style="background:#f8f8f8">{dede:global.positionname/}文档列表</td> | <td colspan="10" style="background:#f8f8f8">{dede:global.positionname/}文档列表</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">ID</td> | <td width="6%">ID</td> | ||||
| <td width="6%">选择</td> | <td width="6%">选择</td> | ||||
| <td width="30%">文章标题</td> | <td width="30%">文章标题</td> | ||||
| @@ -87,7 +87,7 @@ | |||||
| <td width="10%">操作</td> | <td width="10%">操作</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="10"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="10"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | ||||
| <td align="left"><span id="arc{dede:field.id/}"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></span>{dede:field.flag function='IsCommendArchives(@me)'/}</td> | <td align="left"><span id="arc{dede:field.id/}"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></span>{dede:field.flag function='IsCommendArchives(@me)'/}</td> | ||||
| @@ -121,7 +121,7 @@ | |||||
| <td colspan="9" style="margin-left:10px;background:#f8f8f8">文章列表</td> | <td colspan="9" style="margin-left:10px;background:#f8f8f8">文章列表</td> | ||||
| </tr> | </tr> | ||||
| <form name="form2"> | <form name="form2"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">ID</td> | <td width="6%">ID</td> | ||||
| <td width="4%">选择</td> | <td width="4%">选择</td> | ||||
| <td width="30%">文章标题</td> | <td width="30%">文章标题</td> | ||||
| @@ -133,7 +133,7 @@ | |||||
| <td width="10%">属性</td> | <td width="10%">属性</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | ||||
| <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td> | <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td> | ||||
| @@ -53,7 +53,7 @@ | |||||
| <td bgcolor="#f8f8f8" colspan="9">文章列表</td> | <td bgcolor="#f8f8f8" colspan="9">文章列表</td> | ||||
| </tr> | </tr> | ||||
| <form name="form2"> | <form name="form2"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">ID</td> | <td width="6%">ID</td> | ||||
| <td width="4%">选择</td> | <td width="4%">选择</td> | ||||
| <td width="30%">文章标题</td> | <td width="30%">文章标题</td> | ||||
| @@ -77,7 +77,7 @@ | |||||
| <td>{dede:field.flag function="IsCommendArchives(@me)"/}</td> | <td>{dede:field.flag function="IsCommendArchives(@me)"/}</td> | ||||
| </tr> | </tr> | ||||
| {/dede:datalist} | {/dede:datalist} | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td colspan="9"> | <td colspan="9"> | ||||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | ||||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | ||||
| @@ -85,7 +85,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr align="right" bgcolor="#F8FCF1"> | |||||
| <tr align="right" bgcolor="#FBFCE2"> | |||||
| <td height="36" colspan="9" align="center">{dede:pagelist listsize='6'/}</td> | <td height="36" colspan="9" align="center">{dede:pagelist listsize='6'/}</td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -162,7 +162,7 @@ | |||||
| <td bgcolor="#f8f8f8" colspan="9">{dede:global.positionname/}文档列表</td> | <td bgcolor="#f8f8f8" colspan="9">{dede:global.positionname/}文档列表</td> | ||||
| </tr> | </tr> | ||||
| <form name="form2"> | <form name="form2"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">ID</td> | <td width="6%">ID</td> | ||||
| <td width="6%">选择</td> | <td width="6%">选择</td> | ||||
| <td width="30%">文章标题</td> | <td width="30%">文章标题</td> | ||||
| @@ -174,7 +174,7 @@ | |||||
| <td width="10%">操作</td> | <td width="10%">操作</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.aid/}"></td> | <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.aid/}"></td> | ||||
| <td align="left"><a href="archives_do.php?aid={dede:field.aid/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a></td> | <td align="left"><a href="archives_do.php?aid={dede:field.aid/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a></td> | ||||
| @@ -74,7 +74,7 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="100%" cellpadding="1" cellspacing="1" align="center"> | <table width="100%" cellpadding="1" cellspacing="1" align="center"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="28%">表单提示文字</td> | <td width="28%">表单提示文字</td> | ||||
| <td width="18%">数据字段名</td> | <td width="18%">数据字段名</td> | ||||
| <td width="20%">数据类型</td> | <td width="20%">数据类型</td> | ||||
| @@ -24,7 +24,7 @@ | |||||
| { | { | ||||
| $allowhtml = array('htmltext'); | $allowhtml = array('htmltext'); | ||||
| $fields['sta'] = $fields['ifcheck'] == 1 ? '已审核':'未审核'; | $fields['sta'] = $fields['ifcheck'] == 1 ? '已审核':'未审核'; | ||||
| echo '<tr bgcolor="#F8FCF1"><td width="18%"><input type="checkbox" name="id[]" value="'.$fields['id'].'"></td><td><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">'.$fields['id'].'</a> '.$fields['sta'].'</td><td width="12%" align="center"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a></td></tr>'; | |||||
| echo '<tr bgcolor="#FBFCE2"><td width="18%"><input type="checkbox" name="id[]" value="'.$fields['id'].'"></td><td><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">'.$fields['id'].'</a> '.$fields['sta'].'</td><td width="12%" align="center"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a></td></tr>'; | |||||
| foreach($fieldlist as $field=>$fielddata) | foreach($fieldlist as $field=>$fielddata) | ||||
| { | { | ||||
| if($fields[$field]=='') continue; | if($fields[$field]=='') continue; | ||||
| @@ -23,14 +23,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td>diyid</td> | <td>diyid</td> | ||||
| <td>名称</td> | <td>名称</td> | ||||
| <td>表名</td> | <td>表名</td> | ||||
| <td>管理</td> | <td>管理</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr bgcolor="white"><td colspan="4"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr bgcolor="white"><td colspan="4"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.diyid/}</td> | <td>{dede:field.diyid/}</td> | ||||
| <td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}">{dede:field.name/}</a></td> | <td><a href="diy_list.php?action=list&diyid={dede:field.diyid/}">{dede:field.name/}</a></td> | ||||
| <td>{dede:field.table/}</td> | <td>{dede:field.table/}</td> | ||||
| @@ -59,7 +59,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="#f8f8f8" colspan="8">文章错误管理</td> | <td bgcolor="#f8f8f8" colspan="8">文章错误管理</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="5%">选择</td> | <td width="5%">选择</td> | ||||
| <td width="7%">编号</td> | <td width="7%">编号</td> | ||||
| <td width="12%">挑错人</td> | <td width="12%">挑错人</td> | ||||
| @@ -70,7 +70,7 @@ | |||||
| <td width="15%">修改建议</td> | <td width="15%">修改建议</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#F8FCF1';" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#FBFCE2';" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td> | <td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td> | ||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td>{dede:field.mid function='username(@me)'/}</td> | <td>{dede:field.mid function='username(@me)'/}</td> | ||||
| @@ -90,7 +90,7 @@ | |||||
| {dede:datalist empty='<tr><td><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td><center>暂无内容</center></td></tr>'} | ||||
| <tr> | <tr> | ||||
| <td style="padding:0"> | <td style="padding:0"> | ||||
| <table width="100%" cellpadding="0" cellspacing="1" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';" class="table table-borderless"> | |||||
| <table width="100%" cellpadding="0" cellspacing="1" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';" class="table table-borderless"> | |||||
| <tr> | <tr> | ||||
| <td width="8%">选择 <input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td> | <td width="8%">选择 <input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td> | ||||
| <td width="10%">用户:{dede:field.username/}</td> | <td width="10%">用户:{dede:field.username/}</td> | ||||
| @@ -67,7 +67,7 @@ | |||||
| { | { | ||||
| if(preg_match("#^_(.*)$#i",$file)) continue; | if(preg_match("#^_(.*)$#i",$file)) continue; | ||||
| if(preg_match("#^\.(.*)$#i",$file)) continue; | if(preg_match("#^\.(.*)$#i",$file)) continue; | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/dir.gif'>$file</a></td> | <a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/dir.gif'>$file</a></td> | ||||
| <td></td> | <td></td> | ||||
| @@ -82,7 +82,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(gif|png)#i",$file)) | else if(preg_match("#\.(gif|png)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/gif.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/gif.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -97,7 +97,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(jpg)#i",$file)) | else if(preg_match("#\.(jpg)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/jpg.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/jpg.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -112,7 +112,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(swf|fla|fly)#i",$file)) | else if(preg_match("#\.(swf|fla|fly)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/flash.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/flash.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -127,7 +127,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(zip|rar|tar.gz)#i",$file)) | else if(preg_match("#\.(zip|rar|tar.gz)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/zip.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/zip.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -142,7 +142,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(exe)#i",$file)) | else if(preg_match("#\.(exe)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/exe.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/exe.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -157,7 +157,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(mp3|wma)#i",$file)) | else if(preg_match("#\.(mp3|wma)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/mp3.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/mp3.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -172,7 +172,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(wmv|api)#i",$file)) | else if(preg_match("#\.(wmv|api)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/wmv.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/wmv.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -187,7 +187,7 @@ | |||||
| } | } | ||||
| else if(preg_match("#\.(rm|rmvb)#i",$file)) | else if(preg_match("#\.(rm|rmvb)#i",$file)) | ||||
| { | { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/rm.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/rm.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -203,7 +203,7 @@ | |||||
| else if(preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) | else if(preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) | ||||
| { | { | ||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/txt.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/txt.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -237,7 +237,7 @@ | |||||
| else if(preg_match("#\.(php)#i",$file)) | else if(preg_match("#\.(php)#i",$file)) | ||||
| { | { | ||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/php.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/php.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -254,7 +254,7 @@ | |||||
| else if(preg_match("#\.(js)#i",$file)) | else if(preg_match("#\.(js)#i",$file)) | ||||
| { | { | ||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/js.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/js.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -271,7 +271,7 @@ | |||||
| else if(preg_match("#\.(css)#i",$file)) | else if(preg_match("#\.(css)#i",$file)) | ||||
| { | { | ||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td> | <td> | ||||
| <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/css.gif'>$file</a></td> | <a href='$activeurl/$file' target='_blank'><img src='../static/web/img/css.gif'>$file</a></td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| @@ -285,7 +285,7 @@ | |||||
| </tr>"; | </tr>"; | ||||
| $files[] = $line; | $files[] = $line; | ||||
| } else { | } else { | ||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F8FCF1';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| $line = "\n<tr onMouseMove=\"javascript:this.bgColor='#FBFCE2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||||
| <td><a href='$activeurl/$file' target='_blank'>$file</td> | <td><a href='$activeurl/$file' target='_blank'>$file</td> | ||||
| <td>$filesize KB</td> | <td>$filesize KB</td> | ||||
| <td align='center'>$filetime</td> | <td align='center'>$filetime</td> | ||||
| @@ -131,7 +131,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td style="background:#F8FCF1">列表样式:这里是定义自由列表模板里的{dede:freelist/}标记的样式和属性</td> | |||||
| <td style="background:#FBFCE2">列表样式:这里是定义自由列表模板里的{dede:freelist/}标记的样式和属性</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td> | <td> | ||||
| @@ -119,7 +119,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td style="background:#F8FCF1">列表样式:这里是定义自由列表模板里的{dede:freelist/}标记的样式和属性</td> | |||||
| <td style="background:#FBFCE2">列表样式:这里是定义自由列表模板里的{dede:freelist/}标记的样式和属性</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td>限定栏目: | <td>限定栏目: | ||||
| @@ -73,7 +73,7 @@ | |||||
| <form name="form1" method="post" action="friendlink_edit.php" onSubmit="return checkSubmit();"> | <form name="form1" method="post" action="friendlink_edit.php" onSubmit="return checkSubmit();"> | ||||
| <input type="hidden" name="dopost" value="delall"> | <input type="hidden" name="dopost" value="delall"> | ||||
| <input type="hidden" name="allid" value=""> | <input type="hidden" name="allid" value=""> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">选择</td> | <td width="6%">选择</td> | ||||
| <td width="23%">网站名称</td> | <td width="23%">网站名称</td> | ||||
| <td width="12%">网站Logo</td> | <td width="12%">网站Logo</td> | ||||
| @@ -84,7 +84,7 @@ | |||||
| <td width="15%">管理</td> | <td width="15%">管理</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type='checkbox' name='aids' value='{dede:field.id/}'></td> | <td><input type='checkbox' name='aids' value='{dede:field.id/}'></td> | ||||
| <td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}<br><i>地址:{dede:field.url/}</i> </td> | <td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}<br><i>地址:{dede:field.url/}</i> </td> | ||||
| <td>{dede:field.logo function="GetPic(@me)"/}</td> | <td>{dede:field.logo function="GetPic(@me)"/}</td> | ||||
| @@ -20,7 +20,7 @@ | |||||
| <a href="../apps/flink.php?dopost=add" target="_blank" class="btn btn-success btn-sm">外部申请表单</a> | <a href="../apps/flink.php?dopost=add" target="_blank" class="btn btn-success btn-sm">外部申请表单</a> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="4%" align="center">类型ID</td> | <td width="4%" align="center">类型ID</td> | ||||
| <td width="60%" align="center">网站名称</td> | <td width="60%" align="center">网站名称</td> | ||||
| <td width="36%" align="center">状态</td> | <td width="36%" align="center">状态</td> | ||||
| @@ -43,7 +43,7 @@ | |||||
| } | } | ||||
| ?> | ?> | ||||
| <input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td colspan="3" bgcolor="#f8f8f8">新增一个网站类型:</td> | <td colspan="3" bgcolor="#f8f8f8">新增一个网站类型:</td> | ||||
| </tr> | </tr> | ||||
| <tr align="center"> | <tr align="center"> | ||||
| @@ -80,7 +80,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="8%">选择</td> | <td width="8%">选择</td> | ||||
| <td width="11%">管理员</td> | <td width="11%">管理员</td> | ||||
| <td width="15%">访问文件</td> | <td width="15%">访问文件</td> | ||||
| @@ -91,7 +91,7 @@ | |||||
| </tr> | </tr> | ||||
| <form name="form1"> | <form name="form1"> | ||||
| {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="logs" id="logs" value="{dede:field.lid/}"></td> | <td><input type="checkbox" name="logs" id="logs" value="{dede:field.lid/}"></td> | ||||
| <td>{dede:field.userid/}</td> | <td>{dede:field.userid/}</td> | ||||
| <td><input type="text" value="{dede:field.filename/}" name="t0" style="width:100px"></td> | <td><input type="text" value="{dede:field.filename/}" name="t0" style="width:100px"></td> | ||||
| @@ -84,7 +84,7 @@ | |||||
| <td><input type="text" name="startid" id="startid" value="0" style="width:60px"></td> | <td><input type="text" name="startid" id="startid" value="0" style="width:60px"></td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button></td> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button></td> | |||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr> | <tr> | ||||
| @@ -51,7 +51,7 @@ | |||||
| <td> <input type="text" name="pagesize" id="pagesize" value="20" style="width:60px"> 个文件</td> | <td> <input type="text" name="pagesize" id="pagesize" value="20" style="width:60px"> 个文件</td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"> | |||||
| <button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button> | <button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button> | ||||
| <button type="button" name="b113" class="btn btn-success btn-sm" onClick="document.form2.submit();">查看所有文档</button> | <button type="button" name="b113" class="btn btn-success btn-sm" onClick="document.form2.submit();">查看所有文档</button> | ||||
| </td> | </td> | ||||
| @@ -35,7 +35,7 @@ | |||||
| <td><input type="text" name="pagesize" id="pagesize" value="100" size="8"> 个文件</td> | <td><input type="text" name="pagesize" id="pagesize" value="100" size="8"> 个文件</td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"><button type="button" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始更新</button></td> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"><button type="button" onClick="document.form1.submit();" class="btn btn-success btn-sm">开始更新</button></td> | |||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr> | <tr> | ||||
| @@ -116,7 +116,7 @@ | |||||
| } | } | ||||
| ?> | ?> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"> | |||||
| <button name="view" class="btn btn-success btn-sm" type="button" id="view" onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览首页</button> | <button name="view" class="btn btn-success btn-sm" type="button" id="view" onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览首页</button> | ||||
| <button type="button" onclick="htmlSubmit()" class="btn btn-success btn-sm" name="Submit">开始更新</button> | <button type="button" onclick="htmlSubmit()" class="btn btn-success btn-sm" name="Submit">开始更新</button> | ||||
| </td> | </td> | ||||
| @@ -50,7 +50,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"> | |||||
| <button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button> | <button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -26,7 +26,7 @@ | |||||
| <td>为了安全起见,专题目录建议设置仅可读写权限,发布专题后需要手动更新,默认文件为:<?php echo $cfg_cmspath.$cfg_special."/index.html"?></td> | <td>为了安全起见,专题目录建议设置仅可读写权限,发布专题后需要手动更新,默认文件为:<?php echo $cfg_cmspath.$cfg_special."/index.html"?></td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button></td> | |||||
| <td bgcolor="#FBFCE2" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button></td> | |||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr> | <tr> | ||||
| @@ -69,7 +69,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="2" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.action='makehtml_taglist_action.php';onTagSubmit();">生成标签</button></td> | |||||
| <td bgcolor="#FBFCE2" colspan="2" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" onClick="document.form1.action='makehtml_taglist_action.php';onTagSubmit();">生成标签</button></td> | |||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr> | <tr> | ||||
| @@ -97,7 +97,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="8%">选择</td> | <td width="8%">选择</td> | ||||
| <td width="28%">文件标题</td> | <td width="28%">文件标题</td> | ||||
| <td width="10%">文件大小</td> | <td width="10%">文件大小</td> | ||||
| @@ -108,7 +108,7 @@ | |||||
| </tr> | </tr> | ||||
| <form name="form1"> | <form name="form1"> | ||||
| {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="aids" id="aids{dede:field.aid/}" value="{dede:field.aid/}"></td> | <td><input type="checkbox" name="aids" id="aids{dede:field.aid/}" value="{dede:field.aid/}"></td> | ||||
| <td><a href="{dede:field.url/}" title="{dede:field.url/}" target="_blank">{dede:field.title/}</a></td> | <td><a href="{dede:field.url/}" title="{dede:field.url/}" target="_blank">{dede:field.title/}</a></td> | ||||
| <td>{dede:field.filesize function='GetFileSize(@me)'/}</td> | <td>{dede:field.filesize function='GetFileSize(@me)'/}</td> | ||||
| @@ -73,7 +73,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">选择</td> | <td width="6%">选择</td> | ||||
| <td width="6%">mid</td> | <td width="6%">mid</td> | ||||
| <td width="10%">登录名</td> | <td width="10%">登录名</td> | ||||
| @@ -85,7 +85,7 @@ | |||||
| <td>操作</td> | <td>操作</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><input type="checkbox" name="mid" id="mid" value="{dede:field.mid/}"></td> | <td><input type="checkbox" name="mid" id="mid" value="{dede:field.mid/}"></td> | ||||
| <td>{dede:field.mid/}</td> | <td>{dede:field.mid/}</td> | ||||
| <td> | <td> | ||||
| @@ -86,7 +86,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="8%" align="center">选择</td> | <td width="8%" align="center">选择</td> | ||||
| <td width="20%" align="center">订单号</td> | <td width="20%" align="center">订单号</td> | ||||
| <td align="center">产品名称</td> | <td align="center">产品名称</td> | ||||
| @@ -98,7 +98,7 @@ | |||||
| </tr> | </tr> | ||||
| <form name="form1"> | <form name="form1"> | ||||
| {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td align="center"><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td> | <td align="center"><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td> | ||||
| <td align="center"><?php echo $fields['buyid']?></td> | <td align="center"><?php echo $fields['buyid']?></td> | ||||
| <td align="center"><?php echo $fields['pname'].'('.$fields['oldinfo'].')'; ?></td> | <td align="center"><?php echo $fields['pname'].'('.$fields['oldinfo'].')'; ?></td> | ||||
| @@ -38,7 +38,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="#f8f8f8" colspan="7"><span class="current" id="cate_1">短信列表</span> <a href="member_pmall.php">群发短信</a> <a href="member_pmone.php">单独短信</a></td> | <td bgcolor="#f8f8f8" colspan="7"><span class="current" id="cate_1">短信列表</span> <a href="member_pmall.php">群发短信</a> <a href="member_pmone.php">单独短信</a></td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="10%" align="center">发送时间</td> | <td width="10%" align="center">发送时间</td> | ||||
| <td width="20%" align="center">标题</td> | <td width="20%" align="center">标题</td> | ||||
| <td width="5%" align="center">已读</td> | <td width="5%" align="center">已读</td> | ||||
| @@ -48,7 +48,7 @@ | |||||
| <td width="10%" align="center">操作</td> | <td width="10%" align="center">操作</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.sendtime function='GetDateMk(@me)'/}</td> | <td>{dede:field.sendtime function='GetDateMk(@me)'/}</td> | ||||
| <td>{dede:field.subject function='dede_htmlspecialchars(@me)'/}</td> | <td>{dede:field.subject function='dede_htmlspecialchars(@me)'/}</td> | ||||
| <td>{dede:field.hasview function='IsReader(@me)'/}</td> | <td>{dede:field.hasview function='IsReader(@me)'/}</td> | ||||
| @@ -15,7 +15,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="#f8f8f8" colspan="6">会员管理 > 会员级别设置</td> | <td bgcolor="#f8f8f8" colspan="6">会员管理 > 会员级别设置</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td colspan="6">级别名称和级别值:(注册会员这个级别不能删除,否则会员系统将会无法正常使用某些功能)</td> | <td colspan="6">级别名称和级别值:(注册会员这个级别不能删除,否则会员系统将会无法正常使用某些功能)</td> | ||||
| </tr> | </tr> | ||||
| <tr align="center"> | <tr align="center"> | ||||
| @@ -52,7 +52,7 @@ | |||||
| } | } | ||||
| ?> | ?> | ||||
| <input type="hidden" name="idend" value="<?php echo $k; ?>"> | <input type="hidden" name="idend" value="<?php echo $k; ?>"> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td colspan="6">新增一个级别:由于会员升级是以级别值由低向高升级的,因此增加组别时需注意此值的设置,如果您增加新的会员组的级别值低于10,将自动被视为普通的注册会员</td> | <td colspan="6">新增一个级别:由于会员升级是以级别值由低向高升级的,因此增加组别时需注意此值的设置,如果您增加新的会员组的级别值低于10,将自动被视为普通的注册会员</td> | ||||
| </tr> | </tr> | ||||
| <tr align="center"> | <tr align="center"> | ||||
| @@ -31,16 +31,16 @@ | |||||
| </table> | </table> | ||||
| <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable"> | <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable"> | ||||
| <tr> | <tr> | ||||
| <td width="6%" align="center" bgcolor="#F8FCF1"><input type="checkbox" name="chkall" id="chkall" onClick="CheckAll(this.form)"> 删</td> | |||||
| <td width="23%" align="center" bgcolor="#F8FCF1">积分大于</td> | |||||
| <td width="30%" align="center" bgcolor="#F8FCF1">星星数</td> | |||||
| <td width="23%" align="center" bgcolor="#F8FCF1">级别头衔</td> | |||||
| <td width="30%" align="center" bgcolor="#F8FCF1">是否默认</td> | |||||
| <td width="6%" align="center" bgcolor="#FBFCE2"><input type="checkbox" name="chkall" id="chkall" onClick="CheckAll(this.form)"> 删</td> | |||||
| <td width="23%" align="center" bgcolor="#FBFCE2">积分大于</td> | |||||
| <td width="30%" align="center" bgcolor="#FBFCE2">星星数</td> | |||||
| <td width="23%" align="center" bgcolor="#FBFCE2">级别头衔</td> | |||||
| <td width="30%" align="center" bgcolor="#FBFCE2">是否默认</td> | |||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| foreach($Scores as $v){ | foreach($Scores as $v){ | ||||
| ?> | ?> | ||||
| <tr onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td align="center"><input type="checkbox" name="Ids-<?php echo $v['id']?>" id="Ids-<?php echo $v['id']?>" value="1"></td> | <td align="center"><input type="checkbox" name="Ids-<?php echo $v['id']?>" id="Ids-<?php echo $v['id']?>" value="1"></td> | ||||
| <td align="center"><input type="text" name="integral-<?php echo $v['id']?>" id="integral-<?php echo $v['id']?>" value="<?php echo $v['integral']?>" style="width:160px"></td> | <td align="center"><input type="text" name="integral-<?php echo $v['id']?>" id="integral-<?php echo $v['id']?>" value="<?php echo $v['integral']?>" style="width:160px"></td> | ||||
| <td align="center"><input type="text" name="icon-<?php echo $v['id']?>" id="icon-<?php echo $v['id']?>" value="<?php echo $v['icon']?>" style="width:60px"></td> | <td align="center"><input type="text" name="icon-<?php echo $v['id']?>" id="icon-<?php echo $v['id']?>" value="<?php echo $v['icon']?>" style="width:60px"></td> | ||||
| @@ -25,7 +25,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="22%" align="center">产品名称</td> | <td width="22%" align="center">产品名称</td> | ||||
| <td width="23%" align="center">会员级别</td> | <td width="23%" align="center">会员级别</td> | ||||
| <td width="21%" align="center">产品价格</td> | <td width="21%" align="center">产品价格</td> | ||||
| @@ -37,7 +37,7 @@ | |||||
| </div> | </div> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td align="center" width="16%">模块名称</td> | <td align="center" width="16%">模块名称</td> | ||||
| <td align="center" width="12%">发布时间</td> | <td align="center" width="12%">发布时间</td> | ||||
| <td align="center" width="10%">编码</td> | <td align="center" width="10%">编码</td> | ||||
| @@ -50,7 +50,7 @@ | |||||
| foreach($modules as $k=>$v) | foreach($modules as $k=>$v) | ||||
| { | { | ||||
| ?> | ?> | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td><?php echo $v['name']; ?></td> | <td><?php echo $v['name']; ?></td> | ||||
| <td><?php echo $v['time']; ?></td> | <td><?php echo $v['time']; ?></td> | ||||
| <td> | <td> | ||||
| @@ -76,8 +76,8 @@ | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">基本设置</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">字段管理</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">基本设置</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">字段管理</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -88,8 +88,8 @@ | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">基本设置</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">字段管理</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">基本设置</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">字段管理</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -253,7 +253,7 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan='2'> | <td colspan='2'> | ||||
| <table width="100%" cellpadding="1" cellspacing="1" align="center"> | <table width="100%" cellpadding="1" cellspacing="1" align="center"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="28%">表单提示文字</td> | <td width="28%">表单提示文字</td> | ||||
| <td width="18%">数据字段名</td> | <td width="18%">数据字段名</td> | ||||
| <td width="20%">数据类型</td> | <td width="20%">数据类型</td> | ||||
| @@ -288,7 +288,7 @@ | |||||
| foreach($dtp->CTags as $ctag) | foreach($dtp->CTags as $ctag) | ||||
| { | { | ||||
| ?> | ?> | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td> | <td> | ||||
| <?php | <?php | ||||
| $itname = $ctag->GetAtt('itemname'); | $itname = $ctag->GetAtt('itemname'); | ||||
| @@ -40,7 +40,7 @@ | |||||
| <span class="btn-text"><i class="fa fa-trash" title="删除"></i> 删除</span> | <span class="btn-text"><i class="fa fa-trash" title="删除"></i> 删除</span> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">id号</td> | <td width="6%">id号</td> | ||||
| <td width="16%">频道名称</td> | <td width="16%">频道名称</td> | ||||
| <td width="12%">识别id</td> | <td width="12%">识别id</td> | ||||
| @@ -54,7 +54,7 @@ | |||||
| <center>暂无内容</center> | <center>暂无内容</center> | ||||
| </td> | </td> | ||||
| </tr>'} | </tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td><a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit">{dede:field.typename/}</a></td> | <td><a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit">{dede:field.typename/}</a></td> | ||||
| <td>{dede:field.nid/}</td> | <td>{dede:field.nid/}</td> | ||||
| @@ -14,7 +14,7 @@ | |||||
| <tr> | <tr> | ||||
| <td bgcolor="#f8f8f8" colspan="6">自定义标记管理<a class="btn btn-success btn-sm ml-2" href="mytag_add.php">增加一个标记</a><a class="btn btn-success btn-sm" href="mytag_tag_guide.php">智能标记向导</a></td> | <td bgcolor="#f8f8f8" colspan="6">自定义标记管理<a class="btn btn-success btn-sm ml-2" href="mytag_add.php">增加一个标记</a><a class="btn btn-success btn-sm" href="mytag_tag_guide.php">智能标记向导</a></td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="10%">编号</td> | <td width="10%">编号</td> | ||||
| <td width="20%">标记名称</td> | <td width="20%">标记名称</td> | ||||
| <td width="15%">所属栏目</td> | <td width="15%">所属栏目</td> | ||||
| @@ -23,7 +23,7 @@ | |||||
| <td width="20%">管理</td> | <td width="20%">管理</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="6"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="6"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.aid/}</td> | <td>{dede:field.aid/}</td> | ||||
| <td>{dede:field.tagname/}</td> | <td>{dede:field.tagname/}</td> | ||||
| <td>{dede:field.typename function='TestType(@me)'/}</td> | <td>{dede:field.typename function='TestType(@me)'/}</td> | ||||
| @@ -158,12 +158,12 @@ | |||||
| <td><textarea name="innertext" cols="80" rows="6" id="myinnertext">·[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br></textarea></td> | <td><textarea name="innertext" cols="80" rows="6" id="myinnertext">·[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br></textarea></td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td>支持字段:id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,stime(pubdate 的"0000-00-00"格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示·Pubdate发布时间的调用参数 [field:pubdate function=MyDate('Y-m-d H:i:s',@me)/]</td> | |||||
| <td>支持字段:id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,stime(pubdate 的"0000-00-00"格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示·Pubdate发布时间的调用参数[field:pubdate function=MyDate('Y-m-d H:i:s',@me)/]</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="36"> | <td height="36"> | ||||
| <butto type="button"n name="Submit1" id="Submit1" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')" value="" class="coolbg np">生成模板调用标记</button> | |||||
| <button type="button" name="Submit2" id="Submit2" class="btn btn-success btn-sm" onClick="DoSubmit('savetag')" value="保存为自定义标记" class="coolbg np">生成模板调用标记</button> | |||||
| <button type="button" name="Submit1" id="Submit1" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')">生成模板调用标记</button> | |||||
| <button type="button" name="Submit2" id="Submit2" class="btn btn-success btn-sm" onClick="DoSubmit('savetag')">生成模板调用标签</button> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -15,14 +15,14 @@ | |||||
| <td width="30%" colspan="2">插件管理</td> | <td width="30%" colspan="2">插件管理</td> | ||||
| <td align="right" colspan="2">[<a href="module_main.php?moduletype=plus">安装新插件</a>]</td> | <td align="right" colspan="2">[<a href="module_main.php?moduletype=plus">安装新插件</a>]</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="10%">ID号</td> | <td width="10%">ID号</td> | ||||
| <td width="40%">插件名称</td> | <td width="40%">插件名称</td> | ||||
| <td width="20%">插件作者</td> | <td width="20%">插件作者</td> | ||||
| <td width="30%">管理</td> | <td width="30%">管理</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist empty='<tr><td colspan="4"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="4"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td>{dede:field.aid/}</td> | <td>{dede:field.aid/}</td> | ||||
| <td>{dede:field.plusname/}</td> | <td>{dede:field.plusname/}</td> | ||||
| <td>{dede:field.writer/}</td> | <td>{dede:field.writer/}</td> | ||||
| @@ -72,7 +72,7 @@ | |||||
| <td bgcolor="#f8f8f8" colspan="7">文档回收站</td> | <td bgcolor="#f8f8f8" colspan="7">文档回收站</td> | ||||
| </tr> | </tr> | ||||
| <form name="form2"> | <form name="form2"> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">ID</td> | <td width="6%">ID</td> | ||||
| <td width="4%">选择</td> | <td width="4%">选择</td> | ||||
| <td width="28%">文章标题</td> | <td width="28%">文章标题</td> | ||||
| @@ -101,7 +101,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="8%" align="center">选择</td> | <td width="8%" align="center">选择</td> | ||||
| <td width="25%" align="center">订单号</td> | <td width="25%" align="center">订单号</td> | ||||
| <td align="center">收货人</td> | <td align="center">收货人</td> | ||||
| @@ -116,7 +116,7 @@ | |||||
| </tr> | </tr> | ||||
| <form name="form1"> | <form name="form1"> | ||||
| {dede:datalist empty='<tr><td colspan="11"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="11"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||||
| <td align="center"><input type='checkbox' name='aids' value='<?php echo $fields['oid']?>'></td> | <td align="center"><input type='checkbox' name='aids' value='<?php echo $fields['oid']?>'></td> | ||||
| <td align="center"><?php echo $fields['oid']; ?></td> | <td align="center"><?php echo $fields['oid']; ?></td> | ||||
| <td align="center"><a href="javascript:OpenMyWinN('shops_operations_userinfo.php?oid=<?php echo $fields['oid']?>',800,600);"><?php echo $fields['consignee']?></a></td> | <td align="center"><a href="javascript:OpenMyWinN('shops_operations_userinfo.php?oid=<?php echo $fields['oid']?>',800,600);"><?php echo $fields['consignee']?></a></td> | ||||
| @@ -67,8 +67,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -79,8 +79,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -61,8 +61,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规参数</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -73,8 +73,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -77,8 +77,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规参数</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">专题文档</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">专题文档</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -89,8 +89,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">专题文档</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">专题文档</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -300,7 +300,7 @@ table{border-collapse:separate} | |||||
| $nodename = $nodeid = ''; | $nodename = $nodeid = ''; | ||||
| } | } | ||||
| ?> | ?> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="260">节点<?php echo $i?>名称:</td> | <td width="260">节点<?php echo $i?>名称:</td> | ||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
| @@ -74,8 +74,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">常规参数</td> | |||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">专题文档</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">常规参数</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">专题文档</a></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -86,8 +86,8 @@ table{border-collapse:separate} | |||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="168" cellpadding="0" cellspacing="0"> | <table width="168" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <td width="84" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||||
| <td width="84" height="28" align="center" background="../static/web/img/itemnote1.gif">专题文档</td> | |||||
| <td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||||
| <td width="84" height="28" align="center" bgcolor="#FBFCE2">专题文档</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -325,7 +325,7 @@ table{border-collapse:separate} | |||||
| $rownum = $ctag->GetAtt('rownum'); | $rownum = $ctag->GetAtt('rownum'); | ||||
| if(empty($rownum)) $rownum = 40; | if(empty($rownum)) $rownum = 40; | ||||
| ?> | ?> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="260">节点<?php echo $i?>名称:</td> | <td width="260">节点<?php echo $i?>名称:</td> | ||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
| @@ -372,7 +372,7 @@ table{border-collapse:separate} | |||||
| for($i;$i<=$cfg_specnote;$i++) | for($i;$i<=$cfg_specnote;$i++) | ||||
| { | { | ||||
| ?> | ?> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="90">节点<?php echo $i?>名称:</td> | <td width="90">节点<?php echo $i?>名称:</td> | ||||
| <td colspan="2"> | <td colspan="2"> | ||||
| <table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
| @@ -234,7 +234,7 @@ li{float:left;padding-right:10px;line-height:26px} | |||||
| <span class="float-left"><a href="stepselect_main.php">枚举组列表</a> > <a href="stepselect_main.php?egroup=<?php echo $egroup; ?>"><?php echo $selgroup; ?></a> > 子分类列表</span> | <span class="float-left"><a href="stepselect_main.php">枚举组列表</a> > <a href="stepselect_main.php?egroup=<?php echo $egroup; ?>"><?php echo $selgroup; ?></a> > 子分类列表</span> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">选择</td> | <td width="6%">选择</td> | ||||
| <td width="6%">编号</td> | <td width="6%">编号</td> | ||||
| <td width="20%">枚举名</td> | <td width="20%">枚举名</td> | ||||
| @@ -253,7 +253,7 @@ li{float:left;padding-right:10px;line-height:26px} | |||||
| <form name="form1" action="stepselect_main.php" method="post"> | <form name="form1" action="stepselect_main.php" method="post"> | ||||
| <input type="hidden" name="action" value="delenumAllSel"> | <input type="hidden" name="action" value="delenumAllSel"> | ||||
| {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'} | ||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#F8FCF1';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#FBFCE2';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
| <td><input type="checkbox" name="ids[]" value="{dede:field.id/}"></td> | <td><input type="checkbox" name="ids[]" value="{dede:field.id/}"></td> | ||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td> | <td> | ||||
| @@ -316,7 +316,7 @@ li{float:left;padding-right:10px;line-height:26px} | |||||
| <span class="float-left"><a href="stepselect_main.php">枚举组列表</a></span> | <span class="float-left"><a href="stepselect_main.php">枚举组列表</a></span> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="6%">选择</td> | <td width="6%">选择</td> | ||||
| <td width="6%">编号</td> | <td width="6%">编号</td> | ||||
| <td width="28%">组类别名</td> | <td width="28%">组类别名</td> | ||||
| @@ -326,7 +326,7 @@ li{float:left;padding-right:10px;line-height:26px} | |||||
| <td>操作</td> | <td>操作</td> | ||||
| </tr> | </tr> | ||||
| {dede:datalist} | {dede:datalist} | ||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#F8FCF1';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
| <tr align="center" onMouseMove="javascript:this.bgColor='#FBFCE2';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
| <td><input type="checkbox" name="ids[]" value="{dede:field.id/}"></td> | <td><input type="checkbox" name="ids[]" value="{dede:field.id/}"></td> | ||||
| <td>{dede:field.id/}</td> | <td>{dede:field.id/}</td> | ||||
| <td><a href="stepselect_main.php?egroup={dede:field.egroup/}">{dede:field.itemname/}</a></td> | <td><a href="stepselect_main.php?egroup={dede:field.egroup/}">{dede:field.itemname/}</a></td> | ||||
| @@ -30,7 +30,7 @@ | |||||
| <div class="alert alert-info mb-0">为了防止错误操作,系统不允许在管理界面删除超级管理员,如果确定要删除,请自行在数据表biz_admin中删除</div> | <div class="alert alert-info mb-0">为了防止错误操作,系统不允许在管理界面删除超级管理员,如果确定要删除,请自行在数据表biz_admin中删除</div> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td width="18%" align="center">登录ID</td> | <td width="18%" align="center">登录ID</td> | ||||
| <td width="13%" align="center">笔名</td> | <td width="13%" align="center">笔名</td> | ||||
| <td width="22%" align="center">级别</td> | <td width="22%" align="center">级别</td> | ||||
| @@ -28,7 +28,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" value="" onClick="document.form1.submit();">开始执行</button></td> | |||||
| <td bgcolor="#FBFCE2" align="center"><button type="button" name="b112" class="btn btn-success btn-sm" value="" onClick="document.form1.submit();">开始执行</button></td> | |||||
| </tr> | </tr> | ||||
| </form> | </form> | ||||
| <tr> | <tr> | ||||
| @@ -92,7 +92,7 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan="8">系统默认表:</td> | <td colspan="8">系统默认表:</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="5%">选择</td> | <td width="5%">选择</td> | ||||
| <td width="20%">表名</td> | <td width="20%">表名</td> | ||||
| <td width="8%">记录数</td> | <td width="8%">记录数</td> | ||||
| @@ -106,7 +106,7 @@ | |||||
| for($i=0; isset($dedeSysTables[$i]); $i++) | for($i=0; isset($dedeSysTables[$i]); $i++) | ||||
| { | { | ||||
| $t = $dedeSysTables[$i]; | $t = $dedeSysTables[$i]; | ||||
| echo "<tr align='center' >"; | |||||
| echo "<tr align='center'>"; | |||||
| ?> | ?> | ||||
| <td><input type="checkbox" name="tables" value="<?php echo $t; ?>" checked></td> | <td><input type="checkbox" name="tables" value="<?php echo $t; ?>" checked></td> | ||||
| <td><?php echo $t; ?></td> | <td><?php echo $t; ?></td> | ||||
| @@ -139,7 +139,7 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan="8">其它数据表:</td> | <td colspan="8">其它数据表:</td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="5%">选择</td> | <td width="5%">选择</td> | ||||
| <td width="20%">表名</td> | <td width="20%">表名</td> | ||||
| <td width="8%">记录数</td> | <td width="8%">记录数</td> | ||||
| @@ -88,7 +88,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1"> | |||||
| <tr bgcolor="#FBFCE2"> | |||||
| <td>替换方式:</td> | <td>替换方式:</td> | ||||
| <td> | <td> | ||||
| <label><input type="radio" name="rptype" id="ot1" value="replace" checked="1"> 普通替换</label> | <label><input type="radio" name="rptype" id="ot1" value="replace" checked="1"> 普通替换</label> | ||||
| @@ -119,7 +119,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" align="center" class="py-2"> | |||||
| <td bgcolor="#FBFCE2" align="center" class="py-2"> | |||||
| <button type="submit" name="Submit" class="btn btn-success btn-sm">开始替换数据</button> | <button type="submit" name="Submit" class="btn btn-success btn-sm">开始替换数据</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -76,7 +76,7 @@ | |||||
| <?php | <?php | ||||
| for($i=0;$i<count($filelists);$i++) | for($i=0;$i<count($filelists);$i++) | ||||
| { | { | ||||
| echo "<tr align='center' >"; | |||||
| echo "<tr align='center'>"; | |||||
| $mtd = "<td width='10%'><input name='bakfile' id='bakfile' type='checkbox' value='".$filelists[$i]."' checked='1'></td><td width='40%'>{$filelists[$i]}</td>"; | $mtd = "<td width='10%'><input name='bakfile' id='bakfile' type='checkbox' value='".$filelists[$i]."' checked='1'></td><td width='40%'>{$filelists[$i]}</td>"; | ||||
| echo $mtd; | echo $mtd; | ||||
| if(isset($filelists[$i+1])) | if(isset($filelists[$i+1])) | ||||
| @@ -91,7 +91,7 @@ | |||||
| } | } | ||||
| ?> | ?> | ||||
| <tr> | <tr> | ||||
| <td bgcolor="#F8FCF1" colspan="4"> | |||||
| <td bgcolor="#FBFCE2" colspan="4"> | |||||
| <label><input name="structfile" type="checkbox" id="structfile" value="<?php echo $structfile?>" checked="1"> 还原表结构信息(<?php echo $structfile?>)</label> | <label><input name="structfile" type="checkbox" id="structfile" value="<?php echo $structfile?>" checked="1"> 还原表结构信息(<?php echo $structfile?>)</label> | ||||
| <label><input name="delfile" type="checkbox" id="delfile" value="1"> 还原后删除备份文件</label> | <label><input name="delfile" type="checkbox" id="delfile" value="1"> 还原后删除备份文件</label> | ||||
| <button name="b1" type="button" id="b1" onClick="SelAll()" class="btn btn-success btn-sm">全选</button> | <button name="b1" type="button" id="b1" onClick="SelAll()" class="btn btn-success btn-sm">全选</button> | ||||
| @@ -25,7 +25,7 @@ | |||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr bgcolor="#F8FCF1" align="center"> | |||||
| <tr bgcolor="#FBFCE2" align="center"> | |||||
| <td width="20%">等级</td> | <td width="20%">等级</td> | ||||
| <td width="45%">组名称</td> | <td width="45%">组名称</td> | ||||
| <td width="35%">管理</td> | <td width="35%">管理</td> | ||||