Commit 6dd8020e authored by 神楽坂玲奈's avatar 神楽坂玲奈

论坛界面大量修正,版主初步

parent e8ff0271
source 'https://rubygems.org'
source 'http://rubygems.org'
gem 'rails', '3.2.2'
gem "activerecord-import", ">= 0.2.0"
......
GEM
remote: https://rubygems.org/
remote: http://rubygems.org/
specs:
actionmailer (3.2.2)
actionpack (= 3.2.2)
......
app/assets/images/common/forum.gif

1.28 KB | W: | H:

app/assets/images/common/forum.gif

3.25 KB | W: | H:

app/assets/images/common/forum.gif
app/assets/images/common/forum.gif
app/assets/images/common/forum.gif
app/assets/images/common/forum.gif
  • 2-up
  • Swipe
  • Onion skin
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
//= require jquery.markitup
//= require jquery.markitup.set
\ No newline at end of file
var BROWSER = {};var USERAGENT = navigator.userAgent.toLowerCase();BROWSER.ie = window.ActiveXObject && USERAGENT.indexOf('msie') != -1 && USERAGENT.substr(USERAGENT.indexOf('msie') + 5, 3);BROWSER.firefox = document.getBoxObjectFor && USERAGENT.indexOf('firefox') != -1 && USERAGENT.substr(USERAGENT.indexOf('firefox') + 8, 3);BROWSER.chrome = window.MessageEvent && !document.getBoxObjectFor && USERAGENT.indexOf('chrome') != -1 && USERAGENT.substr(USERAGENT.indexOf('chrome') + 7, 10);BROWSER.opera = window.opera && opera.version();BROWSER.safari = window.openDatabase && USERAGENT.indexOf('safari') != -1 && USERAGENT.substr(USERAGENT.indexOf('safari') + 7, 8);BROWSER.other = !BROWSER.ie && !BROWSER.firefox && !BROWSER.chrome && !BROWSER.opera && !BROWSER.safari;BROWSER.firefox = BROWSER.chrome ? 1 : BROWSER.firefox;var DISCUZCODE = [];DISCUZCODE['num'] = '-1';DISCUZCODE['html'] = [];var CSSLOADED = [];var JSMENU = [];JSMENU['active'] = [];JSMENU['timer'] = [];JSMENU['drag'] = [];JSMENU['layer'] = 0;JSMENU['zIndex'] = {'win':200,'menu':300,'prompt':400,'dialog':500};JSMENU['float'] = '';var AJAX = [];AJAX['debug'] = 0;AJAX['url'] = [];AJAX['stack'] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];var clipboardswfdata = '';var CURRENTSTYPE = null;var discuz_uid = isUndefined(discuz_uid) ? 0 : discuz_uid;var creditnotice = isUndefined(creditnotice) ? '' : creditnotice;var cookiedomain = isUndefined(cookiedomain) ? '' : cookiedomain;var cookiepath = isUndefined(cookiepath) ? '' : cookiepath;if(BROWSER.firefox && window.HTMLElement) {HTMLElement.prototype.__defineSetter__('outerHTML', function(sHTML) {var r = this.ownerDocument.createRange();r.setStartBefore(this);var df = r.createContextualFragment(sHTML);this.parentNode.replaceChild(df,this);return sHTML;});HTMLElement.prototype.__defineGetter__('outerHTML', function() {var attr;var attrs = this.attributes;var str = '<' + this.tagName.toLowerCase();for(var i = 0;i < attrs.length;i++){attr = attrs[i];if(attr.specified)str += ' ' + attr.name + '="' + attr.value + '"';}if(!this.canHaveChildren) {return str + '>';}return str + '>' + this.innerHTML + '</' + this.tagName.toLowerCase() + '>';});HTMLElement.prototype.__defineGetter__('canHaveChildren', function() {switch(this.tagName.toLowerCase()) {case 'area':case 'base':case 'basefont':case 'col':case 'frame':case 'hr':case 'img':case 'br':case 'input':case 'isindex':case 'link':case 'meta':case 'param':return false;}return true;});HTMLElement.prototype.click = function(){var evt = this.ownerDocument.createEvent('MouseEvents');evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);this.dispatchEvent(evt);};}function $(id) {return document.getElementById(id);}function display(id) {$(id).style.display = $(id).style.display == '' ? 'none' : '';}function isUndefined(variable) {return typeof variable == 'undefined' ? true : false;}function in_array(needle, haystack) {if(typeof needle == 'string' || typeof needle == 'number') {for(var i in haystack) {if(haystack[i] == needle) {return true;}}}return false;}function trim(str) {return (str + '').replace(/(\s+)$/g, '').replace(/^\s+/g, '');}function strlen(str) {return (BROWSER.ie && str.indexOf('\n') != -1) ? str.replace(/\r?\n/g, '_').length : str.length;}function mb_strlen(str) {var len = 0;for(var i = 0; i < str.length; i++) {len += str.charCodeAt(i) < 0 || str.charCodeAt(i) > 255 ? (charset == 'utf-8' ? 3 : 2) : 1;}return len;}function mb_cutstr(str, maxlen, dot) {var len = 0;var ret = '';var dot = !dot ? '...' : '';maxlen = maxlen - dot.length;for(var i = 0; i < str.length; i++) {len += str.charCodeAt(i) < 0 || str.charCodeAt(i) > 255 ? (charset == 'utf-8' ? 3 : 2) : 1;if(len > maxlen) {ret += dot;break;}ret += str.substr(i, 1);}return ret;}function checkall(form, prefix, checkall) {var checkall = checkall ? checkall : 'chkall';count = 0;for(var i = 0; i < form.elements.length; i++) {var e = form.elements[i];if(e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {e.checked = form.elements[checkall].checked;if(e.checked) {count++;}}}return count;}function doane(event) {e = event ? event : window.event;if(!e) return;if(BROWSER.ie) {e.returnValue = false;e.cancelBubble = true;} else if(e) {e.stopPropagation();e.preventDefault();}}function _attachEvent(obj, evt, func, eventobj) {eventobj = !eventobj ? obj : eventobj;if(obj.addEventListener) {obj.addEventListener(evt, func, false);} else if(eventobj.attachEvent) {obj.attachEvent('on' + evt, func);}}function _detachEvent(obj, evt, func, eventobj) {eventobj = !eventobj ? obj : eventobj;if(obj.removeEventListener) {obj.removeEventListener(evt, func, false);} else if(eventobj.detachEvent) {obj.detachEvent('on' + evt, func);}}function setcookie(cookieName, cookieValue, seconds, path, domain, secure) {var expires = new Date();expires.setTime(expires.getTime() + seconds * 1000);domain = !domain ? cookiedomain : domain;path = !path ? cookiepath : path;document.cookie = escape(cookieName) + '=' + escape(cookieValue)+ (expires ? '; expires=' + expires.toGMTString() : '')+ (path ? '; path=' + path : '/')+ (domain ? '; domain=' + domain : '')+ (secure ? '; secure' : '');}function getcookie(name) {var cookie_start = document.cookie.indexOf(name);var cookie_end = document.cookie.indexOf(";", cookie_start);return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));}function thumbImg(obj, method) {if(!obj) {return;}obj.onload = null;file = obj.src;zw = obj.offsetWidth;zh = obj.offsetHeight;if(zw < 2) {if(!obj.id) {obj.id = 'img_' + Math.random();}setTimeout("thumbImg($('" + obj.id + "'), " + method + ")", 100);return;}zr = zw / zh;method = !method ? 0 : 1;if(method) {fixw = obj.getAttribute('_width');fixh = obj.getAttribute('_height');if(zw > fixw) {zw = fixw;zh = zw / zr;}if(zh > fixh) {zh = fixh;zw = zh * zr;}} else {var widthary = imagemaxwidth.split('%');if(widthary.length > 1) {fixw = $('wrap').clientWidth - 200;if(widthary[0]) {fixw = fixw * widthary[0] / 100;} else if(widthary[1]) {fixw = fixw < widthary[1] ? fixw : widthary[1];}} else {fixw = widthary[0];}if(zw > fixw) {zw = fixw;zh = zw / zr;obj.style.cursor = 'pointer';if(!obj.onclick) {obj.onclick = function() {zoom(obj, obj.src);};}}}obj.width = zw;obj.height = zh;}function imgzoom() {}function attachimg() {}function setCopy(text, msg){if(BROWSER.ie) {clipboardData.setData('Text', text);if(msg) {showDialog(msg, 'notice');}} else {var msg = '<div style="text-decoration:underline;">点此复制到剪贴板</div>' +AC_FL_RunContent('id', 'clipboardswf', 'name', 'clipboardswf', 'devicefont', 'false', 'width', '120', 'height', '40', 'src', 'images/common/clipboard.swf', 'menu', 'false', 'allowScriptAccess', 'sameDomain', 'swLiveConnect', 'true', 'wmode', 'transparent', 'style' , 'margin-top:-20px');showDialog(msg, 'info');text = text.replace(/[\xA0]/g, ' ');clipboardswfdata = text;}}function getClipboardData() {window.document.clipboardswf.SetVariable('str', clipboardswfdata);}function saveData(ignoreempty) {var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty;var obj = $('postform') && (($('fwin_newthread') && $('fwin_newthread').style.display == '') || ($('fwin_reply') && $('fwin_reply').style.display == '')) ? $('postform') : ($('fastpostform') ? $('fastpostform') : $('postform'));if(!obj) return;var data = subject = message = '';for(var i = 0; i < obj.elements.length; i++) {var el = obj.elements[i];if(el.name != '' && (el.tagName == 'TEXTAREA' || el.tagName == 'INPUT' && (el.type == 'text' || el.type == 'checkbox' || el.type == 'radio')) && el.name.substr(0, 6) != 'attach') {var elvalue = el.value;if(el.name == 'subject') {subject = trim(elvalue);} else if(el.name == 'message') {if(typeof wysiwyg != 'undefined' && wysiwyg == 1) {elvalue = html2bbcode(editdoc.body.innerHTML);}message = trim(elvalue);}if((el.type == 'checkbox' || el.type == 'radio') && !el.checked) {continue;}if(trim(elvalue)) {data += el.name + String.fromCharCode(9) + el.tagName + String.fromCharCode(9) + el.type + String.fromCharCode(9) + elvalue + String.fromCharCode(9, 9);}}}if(!subject && !message && !ignoreempty) {return;}if(BROWSER.ie){with(document.documentElement) {setAttribute("value", data);save('Discuz');}} else if(window.sessionStorage){sessionStorage.setItem('Discuz', data);}}function switchAdvanceMode(url) {var obj = $('postform') && (($('fwin_newthread') && $('fwin_newthread').style.display == '') || ($('fwin_reply') && $('fwin_reply').style.display == '')) ? $('postform') : $('fastpostform');if(obj && obj.message.value != '') {saveData();url += '&cedit=yes';}location.href = url;return false;}function updatestring(str1, str2, clear) {str2 = '_' + str2 + '_';return clear ? str1.replace(str2, '') : (str1.indexOf(str2) == -1 ? str1 + str2 : str1);}function toggle_collapse(objname, noimg, complex, lang) {var obj = $(objname);if(obj) {obj.style.display = obj.style.display == '' ? 'none' : '';var collapsed = getcookie('discuz_collapse');collapsed = updatestring(collapsed, objname, !obj.style.display);setcookie('discuz_collapse', collapsed, (collapsed ? 2592000 : -2592000));}if(!noimg) {var img = $(objname + '_img');if(img.tagName != 'IMG') {if(img.className.indexOf('_yes') == -1) {img.className = img.className.replace(/_no/, '_yes');if(lang) {img.innerHTML = lang[0];}} else {img.className = img.className.replace(/_yes/, '_no');if(lang) {img.innerHTML = lang[1];}}} else {img.src = img.src.indexOf('_yes.gif') == -1 ? img.src.replace(/_no\.gif/, '_yes\.gif') : img.src.replace(/_yes\.gif/, '_no\.gif');}img.blur();}if(complex) {var objc = $(objname + '_c');if(objc) {objc.className = objc.className == 'c_header' ? 'c_header closenode' : 'c_header';}}}function sidebar_collapse(lang) {if(lang[0]) {toggle_collapse('sidebar', null, null, lang);$('wrap').className = $('wrap').className == 'wrap with_side s_clear' ? 'wrap s_clear' : 'wrap with_side s_clear';} else {var collapsed = getcookie('discuz_collapse');collapsed = updatestring(collapsed, 'sidebar', 1);setcookie('discuz_collapse', collapsed, (collapsed ? 2592000 : -2592000));location.reload();}}function loadcss(cssname) {if(!CSSLOADED[cssname]) {css = document.createElement('link');css.type = 'text/css';css.rel = 'stylesheet';css.href = 'forumdata/cache/style_' + STYLEID + '_' + cssname + '.css?' + VERHASH;var headNode = document.getElementsByTagName("head")[0];headNode.appendChild(css);CSSLOADED[cssname] = 1;}}function showMenu(v) {var ctrlid = isUndefined(v['ctrlid']) ? v : v['ctrlid'];var showid = isUndefined(v['showid']) ? ctrlid : v['showid'];var menuid = isUndefined(v['menuid']) ? showid + '_menu' : v['menuid'];var ctrlObj = $(ctrlid);var menuObj = $(menuid);if(!menuObj) return;var mtype = isUndefined(v['mtype']) ? 'menu' : v['mtype'];var evt = isUndefined(v['evt']) ? 'mouseover' : v['evt'];var pos = isUndefined(v['pos']) ? '43' : v['pos'];var layer = isUndefined(v['layer']) ? 1 : v['layer'];var duration = isUndefined(v['duration']) ? 2 : v['duration'];var timeout = isUndefined(v['timeout']) ? 250 : v['timeout'];var maxh = isUndefined(v['maxh']) ? 500 : v['maxh'];var cache = isUndefined(v['cache']) ? 1 : v['cache'];var drag = isUndefined(v['drag']) ? '' : v['drag'];var dragobj = drag && $(drag) ? $(drag) : menuObj;var fade = isUndefined(v['fade']) ? 0 : v['fade'];var cover = isUndefined(v['cover']) ? 0 : v['cover'];var zindex = isUndefined(v['zindex']) ? JSMENU['zIndex']['menu'] : v['zindex'];if(typeof JSMENU['active'][layer] == 'undefined') {JSMENU['active'][layer] = [];}if(evt == 'click' && in_array(menuid, JSMENU['active'][layer]) && mtype != 'win') {hideMenu(menuid, mtype);return;}if(mtype == 'menu') {hideMenu(layer, mtype);}if(ctrlObj) {if(!ctrlObj.initialized) {ctrlObj.initialized = true;ctrlObj.unselectable = true;ctrlObj.outfunc = typeof ctrlObj.onmouseout == 'function' ? ctrlObj.onmouseout : null;ctrlObj.onmouseout = function() {if(this.outfunc) this.outfunc();if(duration < 3 && !JSMENU['timer'][menuid]) JSMENU['timer'][menuid] = setTimeout('hideMenu(\'' + menuid + '\', \'' + mtype + '\')', timeout);};ctrlObj.overfunc = typeof ctrlObj.onmouseover == 'function' ? ctrlObj.onmouseover : null;ctrlObj.onmouseover = function(e) {doane(e);if(this.overfunc) this.overfunc();if(evt == 'click') {clearTimeout(JSMENU['timer'][menuid]);JSMENU['timer'][menuid] = null;} else {for(var i in JSMENU['timer']) {if(JSMENU['timer'][i]) {clearTimeout(JSMENU['timer'][i]);JSMENU['timer'][i] = null;}}}};}}var dragMenu = function(menuObj, e, op) {e = e ? e : window.event;if(op == 1) {if(in_array(BROWSER.ie ? e.srcElement.tagName : e.target.tagName, ['TEXTAREA', 'INPUT', 'BUTTON', 'SELECT'])) {return;}JSMENU['drag'] = [e.clientX, e.clientY];JSMENU['drag'][2] = parseInt(menuObj.style.left);JSMENU['drag'][3] = parseInt(menuObj.style.top);document.onmousemove = function(e) {try{dragMenu(menuObj, e, 2);}catch(err){}};document.onmouseup = function(e) {try{dragMenu(menuObj, e, 3);}catch(err){}};doane(e);} else if(op == 2 && JSMENU['drag'][0]) {var menudragnow = [e.clientX, e.clientY];menuObj.style.left = (JSMENU['drag'][2] + menudragnow[0] - JSMENU['drag'][0]) + 'px';menuObj.style.top = (JSMENU['drag'][3] + menudragnow[1] - JSMENU['drag'][1]) + 'px';doane(e);} else if(op == 3) {JSMENU['drag'] = [];document.onmousemove = null;document.onmouseup = null;}};if(!menuObj.initialized) {menuObj.initialized = true;menuObj.ctrlkey = ctrlid;menuObj.mtype = mtype;menuObj.layer = layer;menuObj.cover = cover;if(ctrlObj && ctrlObj.getAttribute('fwin')) {menuObj.scrolly = true;}menuObj.style.position = 'absolute';menuObj.style.zIndex = zindex + layer;menuObj.onclick = function(e) {if(!e || BROWSER.ie) {window.event.cancelBubble = true;return window.event;} else {e.stopPropagation();return e;}};if(duration < 3) {if(duration > 1) {menuObj.onmouseover = function() {clearTimeout(JSMENU['timer'][menuid]);JSMENU['timer'][menuid] = null;};}if(duration != 1) {menuObj.onmouseout = function() {JSMENU['timer'][menuid] = setTimeout('hideMenu(\'' + menuid + '\', \'' + mtype + '\')', timeout);};}}if(drag) {dragobj.style.cursor = 'move';dragobj.onmousedown = function(event) {try{dragMenu(menuObj, event, 1);}catch(e){}};}if(cover) {var coverObj = document.createElement('div');coverObj.id = menuid + '_cover';coverObj.style.position = 'absolute';coverObj.style.zIndex = menuObj.style.zIndex - 1;coverObj.style.left = coverObj.style.top = '0px';coverObj.style.width = '100%';coverObj.style.height = document.body.scrollHeight + 'px';coverObj.style.backgroundColor = '#000';coverObj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=50)';coverObj.style.opacity = 0.5;$('append_parent').appendChild(coverObj);}}menuObj.style.display = '';if(cover) $(menuid + '_cover').style.display = '';if(fade) {var O = 0;var fadeIn = function(O) {if(O == 100) {clearTimeout(fadeInTimer);return;}menuObj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + O + ')';menuObj.style.opacity = O / 100;O += 10;var fadeInTimer = setTimeout(function () {fadeIn(O);}, 50);};fadeIn(O);menuObj.fade = true;} else {menuObj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=100)';menuObj.style.opacity = 1;menuObj.fade = false;}setMenuPosition(showid, menuid, pos);if(maxh && menuObj.scrollHeight > maxh) {menuObj.style.height = maxh + 'px';if(BROWSER.opera) {menuObj.style.overflow = 'auto';} else {menuObj.style.overflowY = 'auto';}}if(!duration) {setTimeout('hideMenu(\'' + menuid + '\', \'' + mtype + '\')', timeout);}if(!in_array(menuid, JSMENU['active'][layer])) JSMENU['active'][layer].push(menuid);menuObj.cache = cache;if(layer > JSMENU['layer']) {JSMENU['layer'] = layer;}}function setMenuPosition(showid, menuid, pos) {var showObj = $(showid);var menuObj = menuid ? $(menuid) : $(showid + '_menu');if(isUndefined(pos)) pos = '43';var basePoint = parseInt(pos.substr(0, 1));var direction = parseInt(pos.substr(1, 1));var sxy = sx = sy = sw = sh = ml = mt = mw = mcw = mh = mch = bpl = bpt = 0;if(!menuObj || (basePoint > 0 && !showObj)) return;if(showObj) {sxy = fetchOffset(showObj);sx = sxy['left'];sy = sxy['top'];sw = showObj.offsetWidth;sh = showObj.offsetHeight;}mw = menuObj.offsetWidth;mcw = menuObj.clientWidth;mh = menuObj.offsetHeight;mch = menuObj.clientHeight;switch(basePoint) {case 1:bpl = sx;bpt = sy;break;case 2:bpl = sx + sw;bpt = sy;break;case 3:bpl = sx + sw;bpt = sy + sh;break;case 4:bpl = sx;bpt = sy + sh;break;}switch(direction) {case 0:menuObj.style.left = (document.body.clientWidth - menuObj.clientWidth) / 2 + 'px';mt = (document.documentElement.clientHeight - menuObj.clientHeight) / 2;break;case 1:ml = bpl - mw;mt = bpt - mh;break;case 2:ml = bpl;mt = bpt - mh;break;case 3:ml = bpl;mt = bpt;break;case 4:ml = bpl - mw;mt = bpt;break;}if(in_array(direction, [1, 4]) && ml < 0) {ml = bpl;if(in_array(basePoint, [1, 4])) ml += sw;} else if(ml + mw > document.documentElement.scrollLeft + document.body.clientWidth && sx >= mw) {ml = bpl - mw;if(in_array(basePoint, [2, 3])) ml -= sw;}if(in_array(direction, [1, 2]) && mt < 0) {mt = bpt;if(in_array(basePoint, [1, 2])) mt += sh;} else if(mt + mh > document.documentElement.scrollTop + document.documentElement.clientHeight && sy >= mh) {mt = bpt - mh;if(in_array(basePoint, [3, 4])) mt -= sh;}if(pos == '210') {ml += 69 - sw / 2;mt -= 5;if(showObj.tagName == 'TEXTAREA') {ml -= sw / 2;mt += sh / 2;}}if(direction == 0 || menuObj.scrolly) {if(BROWSER.ie && BROWSER.ie < 7) {if(direction == 0) mt += Math.max(document.documentElement.scrollTop, document.body.scrollTop);} else {if(menuObj.scrolly) mt -= Math.max(document.documentElement.scrollTop, document.body.scrollTop);menuObj.style.position = 'fixed';}}if(ml) menuObj.style.left = ml + 'px';if(mt) menuObj.style.top = mt + 'px';if(direction == 0 && BROWSER.ie && !document.documentElement.clientHeight) {menuObj.style.position = 'absolute';menuObj.style.top = (document.body.clientHeight - menuObj.clientHeight) / 2 + 'px';}if(menuObj.style.clip && !BROWSER.opera) {menuObj.style.clip = 'rect(auto, auto, auto, auto)';}}function fetchOffset(obj) {var left_offset = 0, top_offset = 0;if(obj.getBoundingClientRect){var rect = obj.getBoundingClientRect();var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop);var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);if(document.documentElement.dir == 'rtl') {scrollLeft = scrollLeft + document.documentElement.clientWidth - document.documentElement.scrollWidth;}left_offset = rect.left + scrollLeft - document.documentElement.clientLeft;top_offset = rect.top + scrollTop - document.documentElement.clientTop;}if(left_offset <= 0 || top_offset <= 0) {left_offset = obj.offsetLeft;top_offset = obj.offsetTop;while((obj = obj.offsetParent) != null) {left_offset += obj.offsetLeft;top_offset += obj.offsetTop;}}return { 'left' : left_offset, 'top' : top_offset };}function hideMenu(attr, mtype) {attr = isUndefined(attr) ? '' : attr;mtype = isUndefined(mtype) ? 'menu' : mtype;if(attr == '') {for(var i = 1; i <= JSMENU['layer']; i++) {hideMenu(i, mtype);}return;} else if(typeof attr == 'number') {for(var j in JSMENU['active'][attr]) {hideMenu(JSMENU['active'][attr][j], mtype);}return;} else if(typeof attr == 'string') {var menuObj = $(attr);if(!menuObj || (mtype && menuObj.mtype != mtype)) return;clearTimeout(JSMENU['timer'][attr]);var hide = function() {if(menuObj.cache) {menuObj.style.display = 'none';if(menuObj.cover) $(attr + '_cover').style.display = 'none';} else {menuObj.parentNode.removeChild(menuObj);if(menuObj.cover) $(attr + '_cover').parentNode.removeChild($(attr + '_cover'));}var tmp = [];for(var k in JSMENU['active'][menuObj.layer]) {if(attr != JSMENU['active'][menuObj.layer][k]) tmp.push(JSMENU['active'][menuObj.layer][k]);}JSMENU['active'][menuObj.layer] = tmp;};if(menuObj.fade) {var O = 100;var fadeOut = function(O) {if(O == 0) {clearTimeout(fadeOutTimer);hide();return;}menuObj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + O + ')';menuObj.style.opacity = O / 100;O -= 10;var fadeOutTimer = setTimeout(function () {fadeOut(O);}, 50);};fadeOut(O);} else {hide();}}}function showPrompt(ctrlid, evt, msg, timeout, negligible) {var menuid = ctrlid ? ctrlid + '_pmenu' : 'ntcwin';var duration = timeout ? 0 : 3;if(!$(menuid)) {var div = document.createElement('div');div.id = menuid;div.className = ctrlid ? 'promptmenu up' : 'ntcwin';div.style.display = 'none';$('append_parent').appendChild(div);if(ctrlid) {msg = '<div id="' + ctrlid + '_prompt" class="promptcontent"><ul><li>' + msg + '</li></ul></div>';} else {msg = negligible ? msg : '<span style="font-style: normal;">' + msg + '</span>';msg = '<table cellspacing="0" cellpadding="0" class="popupcredit"><tr><td class="pc_l">&nbsp;</td><td class="pc_c"><div class="pc_inner">' + msg +(negligible ? '<a class="pc_btn" href="javascript:;" onclick="display(\'ntcwin\');setcookie(\'discuz_creditnoticedisable\', 1, 31536000);" title="不要再提示我"><img src="' + IMGDIR + '/popupcredit_btn.gif" alt="不要再提示我" /></a>' : '') +'</td><td class="pc_r">&nbsp;</td></tr></table>';}div.innerHTML = msg;}if(ctrlid) {if($(ctrlid).evt !== false) {var prompting = function() {showMenu({'mtype':'prompt','ctrlid':ctrlid,'evt':evt,'menuid':menuid,'pos':'210'});};if(evt == 'click') {$(ctrlid).onclick = prompting;} else {$(ctrlid).onmouseover = prompting;}}showMenu({'mtype':'prompt','ctrlid':ctrlid,'evt':evt,'menuid':menuid,'pos':'210','duration':duration,'timeout':timeout,'fade':1,'zindex':JSMENU['zIndex']['prompt']});$(ctrlid).unselectable = false;} else {showMenu({'mtype':'prompt','pos':'00','menuid':menuid,'duration':duration,'timeout':timeout,'fade':1,'zindex':JSMENU['zIndex']['prompt']});}}function showCreditPrompt() {var notice = getcookie('discuz_creditnotice').split('D');if(notice.length < 2 || notice[9] != discuz_uid || getcookie('discuz_creditnoticedisable')) {return;}var creditnames = creditnotice.split(',');var creditinfo = [];var s = '';var e;for(var i in creditnames) {e = creditnames[i].split('|');creditinfo[e[0]] = [e[1], e[2]];}for(i = 1; i <= 8; i++) {if(notice[i] != 0 && creditinfo[i]) {s += '<span>' + creditinfo[i][0] + (notice[i] > 0 ? '<em>+' : '<em class="desc">') + notice[i] + '</em>' + creditinfo[i][1] + '</span>';}}s && showPrompt(null, null, s, 2000, 1);setcookie('discuz_creditnotice', '', -2592000);}function showDialog(msg, mode, t, func, cover) {cover = isUndefined(cover) ? (mode == 'info' ? 0 : 1) : cover;mode = in_array(mode, ['confirm', 'notice', 'info']) ? mode : 'alert';var menuid = 'fwin_dialog';var menuObj = $(menuid);if(menuObj) hideMenu('fwin_dialog', 'dialog');menuObj = document.createElement('div');menuObj.style.display = 'none';menuObj.className = 'fwinmask';menuObj.id = menuid;$('append_parent').appendChild(menuObj);var s = '<table cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l"></td><td class="m_c"><div class="fcontent' + (mode == 'info' ? '' : ' alert_win') + '"><h3 class="float_ctrl"><em>';s += t ? t : '提示信息';s += '</em><span><a href="javascript:;" class="float_close" onclick="hideMenu(\'' + menuid + '\', \'dialog\')" title="关闭">关闭</a></span></h3>';if(mode == 'info') {s += msg ? msg : '';} else {s += '<hr class="shadowline" />';s += '<div class="postbox"><div class="' + (mode == 'alert' ? 'alert_error' : 'alert_info') + '"><p>' + msg + '</p></div>';s += '<div class="alert_btn"><input type="button" id="fwin_dialog_submit" value="&nbsp;确定&nbsp;" />';s += mode == 'confirm' ? '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" onclick="hideMenu(\'' + menuid + '\', \'dialog\')" value="&nbsp;取消&nbsp;" />' : '';s += '</div></div>';}s += '</div></td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>';menuObj.innerHTML = s;if($('fwin_dialog_submit')) $('fwin_dialog_submit').onclick = function() {if(typeof func == 'function') func();else eval(func);hideMenu(menuid, 'dialog')};showMenu({'mtype':'dialog','menuid':menuid,'duration':3,'pos':'00','zindex':JSMENU['zIndex']['dialog'],'cache':0,'cover':cover});}function showWindow(k, url, mode, cache) {mode = isUndefined(mode) ? 'get' : mode;cache = isUndefined(cache) ? 1 : cache;var menuid = 'fwin_' + k;var menuObj = $(menuid);if(disallowfloat && disallowfloat.indexOf(k) != -1) {if(BROWSER.ie) url += (url.indexOf('?') != -1 ? '&' : '?') + 'referer=' + escape(location.href);location.href = url;return;}var fetchContent = function() {if(mode == 'get') {menuObj.url = url;url += (url.search(/\?/) > 0 ? '&' : '?') + 'infloat=yes&handlekey=' + k;ajaxget(url, 'fwin_content_' + k, null, '', '', function() {initMenu();show();});} else if(mode == 'post') {menuObj.act = $(url).action;ajaxpost(url, 'fwin_content_' + k, '', '', '', function() {initMenu();show();});}showDialog('', 'info', '<img src="' + IMGDIR + '/loading.gif"> 加载中...');};var initMenu = function() {var objs = menuObj.getElementsByTagName('*');for(var i = 0; i < objs.length; i++) {if(objs[i].id) {objs[i].setAttribute('fwin', k);}if(objs[i].className == 'float_ctrl') {if(!objs[i].id) objs[i].id = 'fctrl_' + k;drag = objs[i].id;}}};var show = function() {hideMenu('fwin_dialog', 'dialog');showMenu({'mtype':'win','menuid':menuid,'duration':3,'pos':'00','zindex':JSMENU['zIndex']['win'],'drag':typeof drag == 'undefined' ? '' : drag,'cache':cache});};if(!menuObj) {menuObj = document.createElement('div');menuObj.id = menuid;menuObj.className = 'fwinmask';menuObj.style.display = 'none';$('append_parent').appendChild(menuObj);menuObj.innerHTML = '<table cellpadding="0" cellspacing="0" class="fwin"><tr><td class="t_l"></td><td class="t_c"></td><td class="t_r"></td></tr><tr><td class="m_l"></td><td class="m_c" id="fwin_content_' + k + '">'+ '</td><td class="m_r"></td></tr><tr><td class="b_l"></td><td class="b_c"></td><td class="b_r"></td></tr></table>';fetchContent();} else if((mode == 'get' && url != menuObj.url) || (mode == 'post' && $(url).action != menuObj.act)) {fetchContent();} else {show();}doane();}function hideWindow(k) {hideMenu('fwin_' + k, 'win');hideMenu();hideMenu('', 'prompt');}function Ajax(recvType, waitId) {for(var stackId = 0; stackId < AJAX['stack'].length && AJAX['stack'][stackId] != 0; stackId++);AJAX['stack'][stackId] = 1;var aj = new Object();aj.loading = '加载中...';aj.recvType = recvType ? recvType : 'XML';aj.waitId = waitId ? $(waitId) : null;aj.resultHandle = null;aj.sendString = '';aj.targetUrl = '';aj.stackId = 0;aj.stackId = stackId;aj.setLoading = function(loading) {if(typeof loading !== 'undefined' && loading !== null) aj.loading = loading;};aj.setRecvType = function(recvtype) {aj.recvType = recvtype;};aj.setWaitId = function(waitid) {aj.waitId = typeof waitid == 'object' ? waitid : $(waitid);};aj.createXMLHttpRequest = function() {var request = false;if(window.XMLHttpRequest) {request = new XMLHttpRequest();if(request.overrideMimeType) {request.overrideMimeType('text/xml');}} else if(window.ActiveXObject) {var versions = ['Microsoft.XMLHTTP', 'MSXML.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.7.0', 'Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP'];for(var i=0; i<versions.length; i++) {try {request = new ActiveXObject(versions[i]);if(request) {return request;}} catch(e) {}}}return request;};aj.XMLHttpRequest = aj.createXMLHttpRequest();aj.showLoading = function() {if(aj.waitId && (aj.XMLHttpRequest.readyState != 4 || aj.XMLHttpRequest.status != 200)) {aj.waitId.style.display = '';aj.waitId.innerHTML = '<span><img src="' + IMGDIR + '/loading.gif"> ' + aj.loading + '</span>';}};aj.processHandle = function() {if(aj.XMLHttpRequest.readyState == 4 && aj.XMLHttpRequest.status == 200) {for(k in AJAX['url']) {if(AJAX['url'][k] == aj.targetUrl) {AJAX['url'][k] = null;}}if(aj.waitId) {aj.waitId.style.display = 'none';}if(aj.recvType == 'HTML') {aj.resultHandle(aj.XMLHttpRequest.responseText, aj);} else if(aj.recvType == 'XML') {if(aj.XMLHttpRequest.responseXML.lastChild) {aj.resultHandle(aj.XMLHttpRequest.responseXML.lastChild.firstChild.nodeValue, aj);} else {if(AJAX['debug']) {var error = mb_cutstr(aj.XMLHttpRequest.responseText.replace(/\r?\n/g, '\\n').replace(/"/g, '\\\"'), 200);aj.resultHandle('<root>ajaxerror<script type="text/javascript" reload="1">showDialog(\'Ajax Error: \\n' + error + '\');</script></root>', aj);}}}AJAX['stack'][aj.stackId] = 0;}};aj.get = function(targetUrl, resultHandle) {setTimeout(function(){aj.showLoading()}, 250);if(in_array(targetUrl, AJAX['url'])) {return false;} else {AJAX['url'].push(targetUrl);}aj.targetUrl = targetUrl;aj.XMLHttpRequest.onreadystatechange = aj.processHandle;aj.resultHandle = resultHandle;var attackevasive = isUndefined(attackevasive) ? 0 : attackevasive;var delay = attackevasive & 1 ? (aj.stackId + 1) * 1001 : 100;if(window.XMLHttpRequest) {setTimeout(function(){aj.XMLHttpRequest.open('GET', aj.targetUrl);aj.XMLHttpRequest.send(null);}, delay);} else {setTimeout(function(){aj.XMLHttpRequest.open("GET", targetUrl, true);aj.XMLHttpRequest.send();}, delay);}};aj.post = function(targetUrl, sendString, resultHandle) {setTimeout(function(){aj.showLoading()}, 250);if(in_array(targetUrl, AJAX['url'])) {return false;} else {AJAX['url'].push(targetUrl);}aj.targetUrl = targetUrl;aj.sendString = sendString;aj.XMLHttpRequest.onreadystatechange = aj.processHandle;aj.resultHandle = resultHandle;aj.XMLHttpRequest.open('POST', targetUrl);aj.XMLHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');aj.XMLHttpRequest.send(aj.sendString);};return aj;}function newfunction(func){var args = [];for(var i=1; i<arguments.length; i++) args.push(arguments[i]);return function(event){doane(event);window[func].apply(window, args);return false;}}function evalscript(s) {if(s.indexOf('<script') == -1) return s;var p = /<script[^\>]*?>([^\x00]*?)<\/script>/ig;var arr = [];while(arr = p.exec(s)) {var p1 = /<script[^\>]*?src=\"([^\>]*?)\"[^\>]*?(reload=\"1\")?(?:charset=\"([\w\-]+?)\")?><\/script>/i;var arr1 = [];arr1 = p1.exec(arr[0]);if(arr1) {appendscript(arr1[1], '', arr1[2], arr1[3]);} else {p1 = /<script(.*?)>([^\x00]+?)<\/script>/i;arr1 = p1.exec(arr[0]);appendscript('', arr1[2], arr1[1].indexOf('reload=') != -1);}}return s;}function appendscript(src, text, reload, charset) {var id = hash(src + text);var evalscripts = [];if(!reload && in_array(id, evalscripts)) return;if(reload && $(id)) {$(id).parentNode.removeChild($(id));}evalscripts.push(id);var scriptNode = document.createElement("script");scriptNode.type = "text/javascript";scriptNode.id = id;scriptNode.charset = charset ? charset : (BROWSER.firefox ? document.characterSet : document.charset);try {if(src) {scriptNode.src = src;} else if(text){scriptNode.text = text;}$('append_parent').appendChild(scriptNode);} catch(e) {}}function stripscript(s) {return s.replace(/<script.*?>.*?<\/script>/ig, '');}function ajaxupdateevents(obj, tagName) {tagName = tagName ? tagName : 'A';var objs = obj.getElementsByTagName(tagName);for(k in objs) {var o = objs[k];ajaxupdateevent(o);}}function ajaxupdateevent(o) {if(typeof o == 'object' && o.getAttribute) {if(o.getAttribute('ajaxtarget')) {if(!o.id) o.id = Math.random();var ajaxevent = o.getAttribute('ajaxevent') ? o.getAttribute('ajaxevent') : 'click';var ajaxurl = o.getAttribute('ajaxurl') ? o.getAttribute('ajaxurl') : o.href;_attachEvent(o, ajaxevent, newfunction('ajaxget', ajaxurl, o.getAttribute('ajaxtarget'), o.getAttribute('ajaxwaitid'), o.getAttribute('ajaxloading'), o.getAttribute('ajaxdisplay')));if(o.getAttribute('ajaxfunc')) {o.getAttribute('ajaxfunc').match(/(\w+)\((.+?)\)/);_attachEvent(o, ajaxevent, newfunction(RegExp.$1, RegExp.$2));}}}}function ajaxget(url, showid, waitid, loading, display, recall) {waitid = typeof waitid == 'undefined' || waitid === null ? showid : waitid;var x = new Ajax();x.setLoading(loading);x.setWaitId(waitid);x.display = typeof display == 'undefined' || display == null ? '' : display;x.showId = $(showid);if(x.showId) x.showId.orgdisplay = typeof x.showId.orgdisplay === 'undefined' ? x.showId.style.display : x.showId.orgdisplay;if(url.substr(strlen(url) - 1) == '#') {url = url.substr(0, strlen(url) - 1);x.autogoto = 1;}var url = url + '&inajax=1&ajaxtarget=' + showid;x.get(url, function(s, x) {var evaled = false;if(s.indexOf('ajaxerror') != -1) {evalscript(s);evaled = true;}if(!evaled && (typeof ajaxerror == 'undefined' || !ajaxerror)) {if(x.showId) {x.showId.style.display = x.showId.orgdisplay;x.showId.style.display = x.display;x.showId.orgdisplay = x.showId.style.display;ajaxinnerhtml(x.showId, s);ajaxupdateevents(x.showId);if(x.autogoto) scroll(0, x.showId.offsetTop);}}ajaxerror = null;if(typeof recall == 'function') {recall();} else {eval(recall);}if(!evaled) evalscript(s);});}function ajaxpost(formid, showid, waitid, showidclass, submitbtn, recall) {var waitid = typeof waitid == 'undefined' || waitid === null ? showid : (waitid !== '' ? waitid : '');var showidclass = !showidclass ? '' : showidclass;var ajaxframeid = 'ajaxframe';var ajaxframe = $(ajaxframeid);var formtarget = $(formid).target;var handleResult = function() {var s = '';var evaled = false;showloading('none');try {if(BROWSER.ie) {s = $(ajaxframeid).contentWindow.document.XMLDocument.text;} else {s = $(ajaxframeid).contentWindow.document.documentElement.firstChild.nodeValue;}} catch(e) {if(AJAX['debug']) {var error = mb_cutstr($(ajaxframeid).contentWindow.document.body.innerText.replace(/\r?\n/g, '\\n').replace(/"/g, '\\\"'), 200);s = '<root>ajaxerror<script type="text/javascript" reload="1">showDialog(\'Ajax Error: \\n' + error + '\');</script></root>';}}if(s != '' && s.indexOf('ajaxerror') != -1) {evalscript(s);evaled = true;}if(showidclass) {$(showid).className = showidclass;if(submitbtn) {submitbtn.disabled = false;}}if(!evaled && (typeof ajaxerror == 'undefined' || !ajaxerror)) {ajaxinnerhtml($(showid), s);}ajaxerror = null;if($(formid)) $(formid).target = formtarget;if(typeof recall == 'function') {recall();} else {eval(recall);}if(!evaled) evalscript(s);ajaxframe.loading = 0;$('append_parent').removeChild(ajaxframe);};if(!ajaxframe) {if (BROWSER.ie) {ajaxframe = document.createElement('<iframe name="' + ajaxframeid + '" id="' + ajaxframeid + '"></iframe>');} else {ajaxframe = document.createElement('iframe');ajaxframe.name = ajaxframeid;ajaxframe.id = ajaxframeid;}ajaxframe.style.display = 'none';ajaxframe.loading = 1;$('append_parent').appendChild(ajaxframe);} else if(ajaxframe.loading) {return false;}_attachEvent(ajaxframe, 'load', handleResult);showloading();$(formid).target = ajaxframeid;$(formid).action += '&inajax=1';$(formid).submit();return false;}function ajaxmenu(ctrlObj, timeout, cache, duration, pos, recall) {var ctrlid = ctrlObj.id;if(!ctrlid) {ctrlid = ctrlObj.id = 'ajaxid_' + Math.random();}var menuid = ctrlid + '_menu';var menu = $(menuid);if(isUndefined(timeout)) timeout = 3000;if(isUndefined(cache)) cache = 1;if(isUndefined(pos)) pos = '43';if(isUndefined(duration)) duration = timeout > 0 ? 0 : 3;var func = function() {showMenu({'ctrlid':ctrlid,'duration':duration,'timeout':timeout,'pos':pos,'cache':cache,'layer':2});if(typeof recall == 'function') {recall();} else {eval(recall);}};if(menu) {if(menu.style.display == '') {hideMenu(menuid);} else {func();}} else {menu = document.createElement('div');menu.id = menuid;menu.style.display = 'none';menu.className = 'popupmenu_popup';menu.innerHTML = '<div class="popupmenu_option" id="' + menuid + '_content"></div>';$('append_parent').appendChild(menu);ajaxget(!isUndefined(ctrlObj.href) ? ctrlObj.href : ctrlObj.attributes['href'].value, menuid + '_content', 'ajaxwaitid', '', '', func);}}function hash(string, length) {var length = length ? length : 32;var start = 0;var i = 0;var result = '';filllen = length - string.length % length;for(i = 0; i < filllen; i++){string += "0";}while(start < string.length) {result = stringxor(result, string.substr(start, length));start += length;}return result;}function stringxor(s1, s2) {var s = '';var hash = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';var max = Math.max(s1.length, s2.length);for(var i=0; i<max; i++) {var k = s1.charCodeAt(i) ^ s2.charCodeAt(i);s += hash.charAt(k % 52);}return s;}function showloading(display, waiting) {var display = display ? display : 'block';var waiting = waiting ? waiting : '页面加载中...';$('ajaxwaitid').innerHTML = waiting;$('ajaxwaitid').style.display = display;}function ajaxinnerhtml(showid, s) {if(showid.tagName != 'TBODY') {showid.innerHTML = s;} else {while(showid.firstChild) {showid.firstChild.parentNode.removeChild(showid.firstChild);}var div1 = document.createElement('DIV');div1.id = showid.id+'_div';div1.innerHTML = '<table><tbody id="'+showid.id+'_tbody">'+s+'</tbody></table>';$('append_parent').appendChild(div1);var trs = div1.getElementsByTagName('TR');var l = trs.length;for(var i=0; i<l; i++) {showid.appendChild(trs[0]);}var inputs = div1.getElementsByTagName('INPUT');var l = inputs.length;for(var i=0; i<l; i++) {showid.appendChild(inputs[0]);}div1.parentNode.removeChild(div1);}}function AC_GetArgs(args, classid, mimeType) {var ret = new Object();ret.embedAttrs = new Object();ret.params = new Object();ret.objAttrs = new Object();for (var i = 0; i < args.length; i = i + 2){var currArg = args[i].toLowerCase();switch (currArg){case "classid":break;case "pluginspage":ret.embedAttrs[args[i]] = 'http://www.macromedia.com/go/getflashplayer';break;case "src":ret.embedAttrs[args[i]] = args[i+1];ret.params["movie"] = args[i+1];break;case "codebase":ret.objAttrs[args[i]] = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblclick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":case "id":ret.objAttrs[args[i]] = args[i+1];break;case "width":case "height":case "align":case "vspace": case "hspace":case "class":case "title":case "accesskey":case "name":case "tabindex":ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];break;default:ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];}}ret.objAttrs["classid"] = classid;if(mimeType) {ret.embedAttrs["type"] = mimeType;}return ret;}function AC_DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) {var versionStr = -1;if(navigator.plugins != null && navigator.plugins.length > 0 && (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"])) {var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;var descArray = flashDescription.split(" ");var tempArrayMajor = descArray[2].split(".");var versionMajor = tempArrayMajor[0];var versionMinor = tempArrayMajor[1];var versionRevision = descArray[3];if(versionRevision == "") {versionRevision = descArray[4];}if(versionRevision[0] == "d") {versionRevision = versionRevision.substring(1);} else if(versionRevision[0] == "r") {versionRevision = versionRevision.substring(1);if(versionRevision.indexOf("d") > 0) {versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));}}versionStr = versionMajor + "." + versionMinor + "." + versionRevision;} else if(BROWSER.ie && !BROWSER.opera) {try {var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");versionStr = axo.GetVariable("$version");} catch (e) {}}if(versionStr == -1 ) {return false;} else if(versionStr != 0) {if(BROWSER.ie && !BROWSER.opera) {tempArray = versionStr.split(" ");tempString = tempArray[1];versionArray = tempString.split(",");} else {versionArray = versionStr.split(".");}var versionMajor = versionArray[0];var versionMinor = versionArray[1];var versionRevision = versionArray[2];return versionMajor > parseFloat(reqMajorVer) || (versionMajor == parseFloat(reqMajorVer)) && (versionMinor > parseFloat(reqMinorVer) || versionMinor == parseFloat(reqMinorVer) && versionRevision >= parseFloat(reqRevision));}}function AC_FL_RunContent() {var str = '';if(AC_DetectFlashVer(9,0,124)) {var ret = AC_GetArgs(arguments, "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash");if(BROWSER.ie && !BROWSER.opera) {str += '<object ';for (var i in ret.objAttrs) {str += i + '="' + ret.objAttrs[i] + '" ';}str += '>';for (var i in ret.params) {str += '<param name="' + i + '" value="' + ret.params[i] + '" /> ';}str += '</object>';} else {str += '<embed ';for (var i in ret.embedAttrs) {str += i + '="' + ret.embedAttrs[i] + '" ';}str += '></embed>';}} else {str = '此内容需要 Adobe Flash Player 9.0.124 或更高版本<br /><a href="http://www.adobe.com/go/getflashplayer/" target="_blank"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="下载 Flash Player" /></a>';}return str;}function simulateSelect(selectId) {var selectObj = $(selectId);var defaultopt = defaultv = '';var menuObj = document.createElement('div');var ul = document.createElement('ul');var handleKeyDown = function(e) {e = BROWSER.ie ? event : e;if(e.keyCode == 40 || e.keyCode == 38) doane(e);};for(var i = 0; i < selectObj.options.length; i++) {var li = document.createElement('li');li.innerHTML = selectObj.options[i].innerHTML;li.k_id = i;li.k_value = selectObj.options[i].value;if(selectObj.options[i].selected) {defaultopt = selectObj.options[i].innerHTML;defaultv = selectObj.options[i].value;li.className = 'current';selectObj.setAttribute('selecti', i);}li.onclick = function() {if($(selectId + '_ctrl').innerHTML != this.innerHTML) {var lis = menuObj.getElementsByTagName('li');lis[$(selectId).getAttribute('selecti')].className = '';this.className = 'current';$(selectId + '_ctrl').innerHTML = this.innerHTML;$(selectId).setAttribute('selecti', this.k_id);$(selectId).options.length = 0;$(selectId).options[0] = new Option('', this.k_value);eval(selectObj.getAttribute('change'));}hideMenu(menuObj.id);return false;};ul.appendChild(li);}selectObj.options.length = 0;selectObj.options[0]= new Option('', defaultv);selectObj.style.display = 'none';selectObj.outerHTML += '<a href="javascript:;" hidefocus="true" id="' + selectId + '_ctrl" tabindex="1">' + defaultopt + '</a>';menuObj.id = selectId + '_ctrl_menu';menuObj.className = 'select_menu';menuObj.style.display = 'none';menuObj.appendChild(ul);$('append_parent').appendChild(menuObj);$(selectId + '_ctrl').onclick = function(e) {$(selectId + '_ctrl_menu').style.width = (BROWSER.ie ? Math.max($(selectId + '_ctrl').clientWidth, parseInt($(selectId + '_ctrl').currentStyle.width)) : $(selectId + '_ctrl').clientWidth) + 'px';showMenu({'ctrlid':(selectId == 'loginfield' ? 'account' : selectId + '_ctrl'),'menuid':selectId + '_ctrl_menu','evt':'click','pos':'13'});doane(e);};$(selectId + '_ctrl').onfocus = menuObj.onfocus = function() {_attachEvent(document.body, 'keydown', handleKeyDown);};$(selectId + '_ctrl').onblur = menuObj.onblur = function() {_detachEvent(document.body, 'keydown', handleKeyDown);};$(selectId + '_ctrl').onkeyup = function(e) {e = e ? e : window.event;value = e.keyCode;if(value == 40 || value == 38) {if(menuObj.style.display == 'none') {$(selectId + '_ctrl').click();} else {lis = menuObj.getElementsByTagName('li');selecti = selectObj.getAttribute('selecti');lis[selecti].className = '';if(value == 40) {selecti = parseInt(selecti) + 1;} else if(value == 38) {selecti = parseInt(selecti) - 1;}if(selecti < 0) {selecti = lis.length - 1} else if(selecti > lis.length - 1) {selecti = 0;}lis[selecti].className = 'current';selectObj.setAttribute('selecti', selecti);lis[selecti].parentNode.scrollTop = lis[selecti].offsetTop;}} else if(value == 13) {var lis = menuObj.getElementsByTagName('li');lis[selectObj.getAttribute('selecti')].click();} else if(value == 27) {hideMenu(menuObj.id);}};}function detectCapsLock(e, obj) {var valueCapsLock = e.keyCode ? e.keyCode : e.which;var valueShift = e.shiftKey ? e.shiftKey : (valueCapsLock == 16 ? true : false);this.clearDetect = function () {obj.className = 'txt';};obj.className = (valueCapsLock >= 65 && valueCapsLock <= 90 && !valueShift || valueCapsLock >= 97 && valueCapsLock <= 122 && valueShift) ? 'capslock txt' : 'txt';if(BROWSER.ie) {event.srcElement.onblur = this.clearDetect;} else {e.target.onblur = this.clearDetect;}}function switchTab(prefix, current, total) {for(i = 1; i <= total;i++) {$(prefix + '_' + i).className = '';$(prefix + '_c_' + i).style.display = 'none';}$(prefix + '_' + current).className = 'current';$(prefix + '_c_' + current).style.display = '';}function keyPageScroll(e, prev, next, url, page) {e = e ? e : window.event;var tagname = BROWSER.ie ? e.srcElement.tagName : e.target.tagName;if(tagname == 'INPUT' || tagname == 'TEXTAREA') return;actualCode = e.keyCode ? e.keyCode : e.charCode;if(next && actualCode == 39) {window.location = url + '&page=' + (page + 1);}if(prev && actualCode == 37) {window.location = url + '&page=' + (page - 1);}}function showselect(obj, inpid, t, rettype) {if(!obj.id) {var t = !t ? 0 : t;var rettype = !rettype ? 0 : rettype;obj.id = 'calendarexp_' + Math.random();div = document.createElement('div');div.id = obj.id + '_menu';div.style.display = 'none';div.className = 'showselect_menu';$('append_parent').appendChild(div);s = '';if(!t) {s += showselect_row(inpid, '一天', 1, 0, rettype);s += showselect_row(inpid, '一周', 7, 0, rettype);s += showselect_row(inpid, '一个月', 30, 0, rettype);s += showselect_row(inpid, '三个月', 90, 0, rettype);s += showselect_row(inpid, '自定义', -2);} else {if($(t)) {var lis = $(t).getElementsByTagName('LI');for(i = 0;i < lis.length;i++) {s += '<a href="javascript:;" onclick="$(\'' + inpid + '\').value = this.innerHTML">' + lis[i].innerHTML + '</a><br />';}s += showselect_row(inpid, '自定义', -1);} else {s += '<a href="javascript:;" onclick="$(\'' + inpid + '\').value = \'0\'">永久</a><br />';s += showselect_row(inpid, '7 天', 7, 1, rettype);s += showselect_row(inpid, '14 天', 14, 1, rettype);s += showselect_row(inpid, '一个月', 30, 1, rettype);s += showselect_row(inpid, '三个月', 90, 1, rettype);s += showselect_row(inpid, '半年', 182, 1, rettype);s += showselect_row(inpid, '一年', 365, 1, rettype);s += showselect_row(inpid, '自定义', -1);}}$(div.id).innerHTML = s;}showMenu({'ctrlid':obj.id,'evt':'click'});if(BROWSER.ie && BROWSER.ie < 7) {doane(event);}}function showselect_row(inpid, s, v, notime, rettype) {if(v >= 0) {if(!rettype) {var notime = !notime ? 0 : 1;t = today.getTime();t += 86400000 * v;d = new Date();d.setTime(t);return '<a href="javascript:;" onclick="$(\'' + inpid + '\').value = \'' + d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate() + (!notime ? ' ' + d.getHours() + ':' + d.getMinutes() : '') + '\'">' + s + '</a><br />';} else {return '<a href="javascript:;" onclick="$(\'' + inpid + '\').value = \'' + v + '\'">' + s + '</a><br />';}} else if(v == -1) {return '<a href="javascript:;" onclick="$(\'' + inpid + '\').focus()">' + s + '</a><br />';} else if(v == -2) {return '<a href="javascript:;" onclick="$(\'' + inpid + '\').onclick()">' + s + '</a><br />';}}function showColorBox(ctrlid, layer, k) {if(!$(ctrlid + '_menu')) {var menu = document.createElement('div');menu.id = ctrlid + '_menu';menu.className = 'popupmenu_popup colorbox';menu.unselectable = true;menu.style.display = 'none';var coloroptions = ['Black', 'Sienna', 'DarkOliveGreen', 'DarkGreen', 'DarkSlateBlue', 'Navy', 'Indigo', 'DarkSlateGray', 'DarkRed', 'DarkOrange', 'Olive', 'Green', 'Teal', 'Blue', 'SlateGray', 'DimGray', 'Red', 'SandyBrown', 'YellowGreen','SeaGreen', 'MediumTurquoise','RoyalBlue', 'Purple', 'Gray', 'Magenta', 'Orange', 'Yellow', 'Lime', 'Cyan', 'DeepSkyBlue', 'DarkOrchid', 'Silver', 'Pink', 'Wheat', 'LemonChiffon', 'PaleGreen', 'PaleTurquoise', 'LightBlue', 'Plum', 'White'];var str = '';for(var i = 0; i < 40; i++) {str += '<input type="button" style="background-color: ' + coloroptions[i] + '" onclick="'+ (typeof wysiwyg == 'undefined' ? 'seditor_insertunit(\'' + k + '\', \'[color=' + coloroptions[i] + ']\', \'[/color]\')' : (ctrlid == editorid + '_cmd_table_param_4' ? '$(\'' + ctrlid + '\').value=\'' + coloroptions[i] + '\';hideMenu(2)' : 'discuzcode(\'forecolor\', \'' + coloroptions[i] + '\')'))+ '" title="' + coloroptions[i] + '" />' + (i < 39 && (i + 1) % 8 == 0 ? '<br />' : '');}menu.innerHTML = str;$('append_parent').appendChild(menu);}showMenu({'ctrlid':ctrlid,'evt':'click','layer':layer});}function announcement() {var ann = new Object();ann.anndelay = 3000;ann.annst = 0;ann.annstop = 0;ann.annrowcount = 0;ann.anncount = 0;ann.annlis = $('annbody').getElementsByTagName("LI");ann.annrows = new Array();ann.announcementScroll = function () {if(this.annstop) { this.annst = setTimeout(function () { ann.announcementScroll(); }, this.anndelay);return; }if(!this.annst) {var lasttop = -1;for(i = 0;i < this.annlis.length;i++) {if(lasttop != this.annlis[i].offsetTop) {if(lasttop == -1) lasttop = 0;this.annrows[this.annrowcount] = this.annlis[i].offsetTop - lasttop;this.annrowcount++;}lasttop = this.annlis[i].offsetTop;}if(this.annrows.length == 1) {$('ann').onmouseover = $('ann').onmouseout = null;} else {this.annrows[this.annrowcount] = this.annrows[1];$('annbodylis').innerHTML += $('annbodylis').innerHTML;this.annst = setTimeout(function () { ann.announcementScroll(); }, this.anndelay);$('ann').onmouseover = function () { ann.annstop = 1; };$('ann').onmouseout = function () { ann.annstop = 0; };}this.annrowcount = 1;return;}if(this.annrowcount >= this.annrows.length) {$('annbody').scrollTop = 0;this.annrowcount = 1;this.annst = setTimeout(function () { ann.announcementScroll(); }, this.anndelay);} else {this.anncount = 0;this.announcementScrollnext(this.annrows[this.annrowcount]);}};ann.announcementScrollnext = function (time) {$('annbody').scrollTop++;this.anncount++;if(this.anncount != time) {this.annst = setTimeout(function () { ann.announcementScrollnext(time); }, 10);} else {this.annrowcount++;this.annst = setTimeout(function () { ann.announcementScroll(); }, this.anndelay);}};ann.announcementScroll();}function removeindexheats() {return confirm('您确认要把此主题从热点主题中移除么?');}function smilies_show(id, smcols, seditorkey) {if(seditorkey && !$(seditorkey + 'smilies_menu')) {var div = document.createElement("div");div.id = seditorkey + 'smilies_menu';div.style.display = 'none';div.className = 'smilieslist';$('append_parent').appendChild(div);var div = document.createElement("div");div.id = id;div.style.overflow = 'hidden';$(seditorkey + 'smilies_menu').appendChild(div);}if(typeof smilies_type == 'undefined') {var scriptNode = document.createElement("script");scriptNode.type = "text/javascript";scriptNode.charset = charset ? charset : (BROWSER.firefox ? document.characterSet : document.charset);scriptNode.src = 'forumdata/cache/smilies_var.js?' + VERHASH;$('append_parent').appendChild(scriptNode);if(BROWSER.ie) {scriptNode.onreadystatechange = function() {smilies_onload(id, smcols, seditorkey);};} else {scriptNode.onload = function() {smilies_onload(id, smcols, seditorkey);};}} else {smilies_onload(id, smcols, seditorkey);}}function smilies_onload(id, smcols, seditorkey) {seditorkey = !seditorkey ? '' : seditorkey;smile = getcookie('smile').split('D');if(typeof smilies_type == 'object') {if(smile[0] && smilies_array[smile[0]]) {CURRENTSTYPE = smile[0];} else {for(i in smilies_array) {CURRENTSTYPE = i; break;}}smiliestype = '<div class="smiliesgroup"><ul>';for(i in smilies_type) {if(smilies_type[i][0]) {smiliestype += '<li><a href="javascript:;" hidefocus="true" ' + (CURRENTSTYPE == i ? 'class="current"' : '') + ' id="'+seditorkey+'stype_'+i+'" onclick="smilies_switch(\'' + id + '\', \'' + smcols + '\', '+i+', 1, \'' + seditorkey + '\');if(CURRENTSTYPE) {$(\''+seditorkey+'stype_\'+CURRENTSTYPE).className=\'\';}this.className=\'current\';CURRENTSTYPE='+i+';doane(event);">'+smilies_type[i][0]+'</a></li>';}}smiliestype += '</ul></div>';$(id).innerHTML = smiliestype + '<div id="' + id + '_data"></div><div class="smilieslist_page" id="' + id + '_page"></div>';smilies_switch(id, smcols, CURRENTSTYPE, smile[1], seditorkey);}}function smilies_switch(id, smcols, type, page, seditorkey) {page = page ? page : 1;if(!smilies_array[type] || !smilies_array[type][page]) return;setcookie('smile', type + 'D' + page, 31536000);smiliesdata = '<table id="' + id + '_table" cellpadding="0" cellspacing="0"><tr>';j = k = 0;img = [];for(i in smilies_array[type][page]) {if(j >= smcols) {smiliesdata += '<tr>';j = 0;}s = smilies_array[type][page][i];smilieimg = 'images/smilies/' + smilies_type[type][1] + '/' + s[2];img[k] = new Image();img[k].src = smilieimg;smiliesdata += s && s[0] ? '<td onmouseover="smilies_preview(\'' + seditorkey + '\', \'' + id + '\', this, ' + s[5] + ')" onclick="' + (typeof wysiwyg != 'undefined' ? 'insertSmiley(' + s[0] + ')': 'seditor_insertunit(\'' + seditorkey + '\', \'' + s[1].replace(/'/, '\\\'') + '\')') +'" id="' + seditorkey + 'smilie_' + s[0] + '_td"><img id="smilie_' + s[0] + '" width="' + s[3] +'" height="' + s[4] +'" src="' + smilieimg + '" alt="' + s[1] + '" />' : '<td>';j++;k++;}smiliesdata += '</table>';smiliespage = '';if(smilies_array[type].length > 2) {prevpage = ((prevpage = parseInt(page) - 1) < 1) ? smilies_array[type].length - 1 : prevpage;nextpage = ((nextpage = parseInt(page) + 1) == smilies_array[type].length) ? 1 : nextpage;smiliespage = '<div class="pags_act"><a href="javascript:;" onclick="smilies_switch(\'' + id + '\', \'' + smcols + '\', ' + type + ', ' + prevpage + ', \'' + seditorkey + '\');doane(event);">上页</a>' +'<a href="javascript:;" onclick="smilies_switch(\'' + id + '\', \'' + smcols + '\', ' + type + ', ' + nextpage + ', \'' + seditorkey + '\');doane(event);">下页</a></div>' +page + '/' + (smilies_array[type].length - 1);}$(id + '_data').innerHTML = smiliesdata;$(id + '_page').innerHTML = smiliespage;}function smilies_preview(seditorkey, id, obj, w) {var menu = $('smilies_preview');if(!menu) {menu = document.createElement('div');menu.id = 'smilies_preview';menu.className = 'smilies_preview';menu.style.display = 'none';$('append_parent').appendChild(menu);}menu.innerHTML = '<img width="' + w + '" src="' + obj.childNodes[0].src + '" />';mpos = fetchOffset($(id + '_data'));spos = fetchOffset(obj);pos = spos['left'] >= mpos['left'] + $(id + '_data').offsetWidth / 2 ? '13' : '24';showMenu({'ctrlid':obj.id,'showid':id + '_data','menuid':menu.id,'pos':pos,'layer':3});}function seditor_ctlent(event, script) {if(event.ctrlKey && event.keyCode == 13 || event.altKey && event.keyCode == 83) {eval(script);}}function seditor_insertunit(key, text, textend, moveend) {$(key + 'message').focus();textend = isUndefined(textend) ? '' : textend;moveend = isUndefined(textend) ? 0 : moveend;startlen = strlen(text);endlen = strlen(textend);if(!isUndefined($(key + 'message').selectionStart)) {var opn = $(key + 'message').selectionStart + 0;if(textend != '') {text = text + $(key + 'message').value.substring($(key + 'message').selectionStart, $(key + 'message').selectionEnd) + textend;}$(key + 'message').value = $(key + 'message').value.substr(0, $(key + 'message').selectionStart) + text + $(key + 'message').value.substr($(key + 'message').selectionEnd);if(!moveend) {$(key + 'message').selectionStart = opn + strlen(text) - endlen;$(key + 'message').selectionEnd = opn + strlen(text) - endlen;}} else if(document.selection && document.selection.createRange) {var sel = document.selection.createRange();if(textend != '') {text = text + sel.text + textend;}sel.text = text.replace(/\r?\n/g, '\r\n');if(!moveend) {sel.moveStart('character', -endlen);sel.moveEnd('character', -endlen);}sel.select();} else {$(key + 'message').value += text;}hideMenu(2);if(BROWSER.ie) {doane();}}function parseurl(str, mode, parsecode) {if(isUndefined(parsecode)) parsecode = true;if(parsecode) str= str.replace(/\s*\[code\]([\s\S]+?)\[\/code\]\s*/ig, function($1, $2) {return codetag($2);});str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k|thunder|synacast):\/\/))([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');str = str.replace(/([^\w>=\]"'\/@]|^)((www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');str = str.replace(/([^\w->=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');if(parsecode) {for(var i = 0; i <= DISCUZCODE['num']; i++) {str = str.replace("[\tDISCUZ_CODE_" + i + "\t]", DISCUZCODE['html'][i]);}}return str;}function codetag(text) {DISCUZCODE['num']++;if(typeof wysiwyg != 'undefined' && wysiwyg) text = text.replace(/<br[^\>]*>/ig, '\n').replace(/<(\/|)[A-Za-z].*?>/ig, '');DISCUZCODE['html'][DISCUZCODE['num']] = '[code]' + text + '[/code]';return '[\tDISCUZ_CODE_' + DISCUZCODE['num'] + '\t]';}function pmchecknew() {ajaxget('pm.php?checknewpm=' + Math.random(), 'myprompt_check', 'ajaxwaitid');}function showimmestatus(imme) {var lang = {'Online':'MSN 在线','Busy':'MSN 忙碌','Away':'MSN 离开','Offline':'MSN 脱机'};$('imme_status_' + imme.id.substr(0, imme.id.indexOf('@'))).innerHTML = lang[imme.statusText];}if(typeof IN_ADMINCP == 'undefined') {if(discuz_uid && !getcookie('checkpm')) {_attachEvent(window, 'load', pmchecknew, document);}if(creditnotice != '' && getcookie('discuz_creditnotice') && !getcookie('discuz_creditnoticedisable')) {_attachEvent(window, 'load', showCreditPrompt, document);}}if(BROWSER.ie) {document.documentElement.addBehavior("#default#userdata");}
\ No newline at end of file
Markup language:
BBCode
Description:
A basic BBCode markup set with Bold, Italic, Underline, Picture, Link, Size, List, Quotes, Code, Clean button, Preview button.
Install:
- Download the zip file
- Unzip it in your markItUp! sets folder
- Modify your JS link to point at this set.js
- Modify your CSS link to point at this style.css
\ No newline at end of file
// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2011 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
var mySettings = {
onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>'},
onTab: {keepDefault:false, replaceWith:' '},
markupSet: [
{name:'Bold', key:'B', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },
{name:'Italic', key:'I', openWith:'(!(<em>|!|<i>)!)', closeWith:'(!(</em>|!|</i>)!)' },
{name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
{separator:'---------------' },
{name:'Bulleted List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>\n', closeBlockWith:'\n</ul>'},
{name:'Numeric List', openWith:' <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>\n', closeBlockWith:'\n</ol>'},
{separator:'---------------' },
{name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
{name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
{separator:'---------------' },
{name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
{name:'Preview', className:'preview', call:'preview'}
]
}
/* -------------------------------------------------------------------
// markItUp!
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp .markItUpButton1 a {
background-image:url(images/bold.png);
}
.markItUp .markItUpButton2 a {
background-image:url(images/italic.png);
}
.markItUp .markItUpButton3 a {
background-image:url(images/stroke.png);
}
.markItUp .markItUpButton4 a {
background-image:url(images/list-bullet.png);
}
.markItUp .markItUpButton5 a {
background-image:url(images/list-numeric.png);
}
.markItUp .markItUpButton6 a {
background-image:url(images/picture.png);
}
.markItUp .markItUpButton7 a {
background-image:url(images/link.png);
}
.markItUp .markItUpButton8 a {
background-image:url(images/clean.png);
}
.markItUp .preview a {
background-image:url(images/preview.png);
}
/* -------------------------------------------------------------------
// markItUp! Universal MarkUp Engine, JQuery plugin
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp * {
margin:0px; padding:0px;
outline:none;
}
.markItUp a:link,
.markItUp a:visited {
color:#000;
text-decoration:none;
}
.markItUp {
width:700px;
margin:5px 0 5px 0;
border:5px solid #F5F5F5;
}
.markItUpContainer {
border:1px solid #3C769D;
background:#FFF url(images/bg-container.png) repeat-x top left;
padding:5px 5px 2px 5px;
font:11px Verdana, Arial, Helvetica, sans-serif;
}
.markItUpEditor {
font:12px 'Courier New', Courier, monospace;
padding:5px 5px 5px 35px;
border:3px solid #3C769D;
width:643px;
height:320px;
background:#FFF url(images/bg-editor.png) no-repeat;
clear:both;
line-height:18px;
overflow:auto;
}
.markItUpPreviewFrame {
overflow:auto;
background-color:#FFFFFF;
border:1px solid #3C769D;
width:99.9%;
height:300px;
margin:5px 0;
}
.markItUpFooter {
width:100%;
cursor:n-resize;
}
.markItUpResizeHandle {
overflow:hidden;
width:22px; height:5px;
margin-left:auto;
margin-right:auto;
background-image:url(images/handle.png);
cursor:n-resize;
}
/***************************************************************************************/
/* first row of buttons */
.markItUpHeader ul li {
list-style:none;
float:left;
position:relative;
}
.markItUpHeader ul li ul{
display:none;
}
.markItUpHeader ul li:hover > ul{
display:block;
}
.markItUpHeader ul .markItUpDropMenu {
background:transparent url(images/menu.png) no-repeat 115% 50%;
margin-right:5px;
}
.markItUpHeader ul .markItUpDropMenu li {
margin-right:0px;
}
.markItUpHeader ul .markItUpSeparator {
margin:0 10px;
width:1px;
height:16px;
overflow:hidden;
background-color:#CCC;
}
.markItUpHeader ul ul .markItUpSeparator {
width:auto; height:1px;
margin:0px;
}
/* next rows of buttons */
.markItUpHeader ul ul {
display:none;
position:absolute;
top:18px; left:0px;
background:#F5F5F5;
border:1px solid #3C769D;
height:inherit;
}
.markItUpHeader ul ul li {
float:none;
border-bottom:1px solid #3C769D;
}
.markItUpHeader ul ul .markItUpDropMenu {
background:#F5F5F5 url(images/submenu.png) no-repeat 100% 50%;
}
/* next rows of buttons */
.markItUpHeader ul ul ul {
position:absolute;
top:-1px; left:150px;
}
.markItUpHeader ul ul ul li {
float:none;
}
.markItUpHeader ul a {
display:block;
width:16px; height:16px;
text-indent:-10000px;
background-repeat:no-repeat;
padding:3px;
margin:0px;
}
.markItUpHeader ul ul a {
display:block;
padding-left:0px;
text-indent:0;
width:120px;
padding:5px 5px 5px 25px;
background-position:2px 50%;
}
.markItUpHeader ul ul a:hover {
color:#FFF;
background-color:#3C769D;
}
/***************************************************************************************/
.html .markItUpEditor {
background-image:url(images/bg-editor-html.png);
}
.markdown .markItUpEditor {
background-image:url(images/bg-editor-markdown.png);
}
.textile .markItUpEditor {
background-image:url(images/bg-editor-textile.png);
}
.bbcode .markItUpEditor {
background-image:url(images/bg-editor-bbcode.png);
}
.wiki .markItUpEditor,
.dotclear .markItUpEditor {
background-image:url(images/bg-editor-wiki.png);
}
\ No newline at end of file
/* preview style examples */
body {
background-color:#EFEFEF;
font:70% Verdana, Arial, Helvetica, sans-serif;
}
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>markItUp! preview template</title>
<link rel="stylesheet" type="text/css" href="~/templates/preview.css" />
</head>
<body>
<!-- content -->
</body>
</html>
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
//= require jquery.markitup
//= require jquery.markitup.set
\ No newline at end of file
// Place all the styles related to the cards controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
//= require markitup
//= require markitup.set
#topic_name{
width:300px;
height:25px;
margin:0 0 10px 20px;
border:0px;
border-radius:5px;
box-shadow:0 0 5px #a7a7a7;
}
#topic_name:focus{
box-shadow:0 0 5px #5785A7 !important;
}
#topic_name:hover{
box-shadow:0 0 5px #939393;
}
#footer{
margin:auto;
text-align:left;
width:900px;
}
#nav {
padding-top: 22px;
padding-left: 170px;
width:728px;
height:36px;
background:#DCE1E8 image-url("navbg.png") no-repeat;
float:left;
margin:auto;
}
#nav a{
float:left;
width:88px;
height:36px;
background: image-url("common/menu_bg.gif") no-repeat;
padding-top: 12px;
color:white;
}
#nav li.current a {
background:image-url("common/menu_h_bg.gif") no-repeat;
color:#333;
height:36px;
font-weight:bold;
font-size:14px;
}
* {
word-wrap:break-word;
}
html,body {
border:0 !important;
}
body {
background:#EBEBEB image-url("common/bodybg.gif") repeat-x 0 90px;
text-align:center;
}
body,td,input,textarea,select,button {
color:#444;
font:12px/1.6em Verdana,Helvetica,Arial,sans-serif;
}
input,select,button {
vertical-align:middle;
}
textarea {
resize:none;
}
body,ul,li,dl,dd,p,h1,h2,h3,h4,h5,h6,form,fieldset {
margin:0;
padding:0;
}
h1,h2,h3,h4,h5,h6 {
font-size:1em;
}
ul li {
list-style:none;
}
a {
text-decoration:none;
color:#000;
}
a:hover {
text-decoration:underline;
}
.lightlink,.lightlink a {
color:#09C;
}
a img {
border:none;
}
em,cite,strong,th {
text-align:left;
font-style:normal;
}
.emfont {
color:#F60;
}
table {
empty-cells:show;
border-collapse:collapse;
}
th {
font-weight:400;
}
.txt,.txtarea {
padding:2px;
*padding:0 2px;
height:16px;
*height:20px;
border:1px solid;
border-color:#999 #CCC #CCC #999;
background:#FFF;
}
.txtarea {
height:auto;
}
.checkbox,.radio {
margin:0;
width:15px;
}
.pipe {
margin:0 5px;
}
.lighttxt,.lighttxt a,.pipe {
color:#999;
}
.smalltext {
font-size:0.83em;
font-family:Verdana,Helvetica,Arial,sans-serif;
}
.noborder,.noborder td {
border:none !important;
}
.nobg {
background:none !important;
}
.right {
float:right;
}
.left {
float:left;
}
.onerror,.onright {
clear:both;
padding:2px 2px 2px 22px;
background:image-url("check_error.gif") no-repeat 2px 2px;
}
.onright {
background:image-url("check_right.gif") no-repeat 2px 2px;
}
.notice {
clear:both;
margin:5px 0;
padding:3px 5px 3px 20px;
background:image-url("common/notice.gif") no-repeat 2px 6px;
}
.nodata {
margin:99px auto;
text-align:center;
color:#999;
font-size:16px;
font-weight:700;
}
#ajaxwaitid {
display:none;
position:absolute;
z-index:100;
top:0;
right:0;
width:100px;
height:1.6em;
background:#D00;
line-height:1.6em;
color:#FFF;
overflow:hidden;
}
#checksecanswer img,#checksecanswer3 img,#checkseccodeverify img,#checkseccodeverify3 img,.warning img {
vertical-align:middle;
}
.s_clear:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.s_clear {
zoom:1;
}
hr {
clear:both;
margin:1em 0;
border:0 solid #E6E7E1;
background:transparent;
}
.solidline {
border-top:1px solid #FFF;
border-bottom-width:1px;
}
.dashline {
height:0px;
border-bottom-width:1px;
border-style:dashed;
}
.shadowline {
*margin:2px 0;
border-width:1px 0;
border-top-color:#C8DCEC;
border-bottom-color:#FFF;
}
.side .shadowline {
margin:5px 0;
*margin:2px 0;
}
.cornerlayger {
padding:6px 8px;
border:1px solid #09C;
background:#EBF2F8;
line-height:1.6em;
}
.minicorner {
margin-top:-1px;
height:6px;
background:image-url("common/attachinfobg.gif") no-repeat 50% 0;
}
.wrap {
text-align:left;
margin:0 auto;
}
#wrap {
padding-bottom:10px;
min-height:450px;
border:0 solid #00B2E8;
background-color:#FFF;
clear:both;
}
* html #wrap {
height:450px;
}
.wrap,#actions {
width:1024px;
}
#header {
margin-bottom:8px;
min-width:1024px;
width:100%;
border-bottom:1px solid #00B2E8;
background:#00A2D2 image-url("common/header.gif") repeat-x 0 100%;
}
#header .wrap {
position:relative;
padding:24px 0 22px;
}
#header h2 {
float:left;
}
#umenu {
position:absolute;
right:0;
top:0;
line-height:20px;
}
#umenu a {
margin:0 6px;
}
#umenu cite {
font-weight:700;
}
#umenu cite span a {
margin:0;
font-weight:400;
}
#myprompt.new {
padding-left:22px;
background:image-url("common/notice_newpm.gif") no-repeat 0 50%;
}
#myprompt_menu a.new {
color:#F60;
}
#myprompt_menu li {
float:left;
width:50%;
}
.promptmenu {
margin-left:-27px;
padding-top:10px;
width:250px;
background:transparent image-url("common/pm_ntc.gif") no-repeat 0 0;
text-align:left;
opacity:0.98;
}
.promptcontent {
padding-bottom:10px;
background:transparent image-url("common/pm_ntc.gif") no-repeat -250px 100%;
}
.promptmenu ul {
padding:0 10px;
border:solid #91C8E2;
border-width:0 2px;
background:#FEFEFE;
}
.promptmenu li {
border-bottom:1px solid #F4F4F4;
line-height:29px;
display:block;
width:100%;
color:#999;
overflow:hidden;
text-overflow:ellipsis;
-webkit-text-overflow:ellipsis;
-moz-text-overflow:ellipsis;
-o-text-overflow:ellipsis;
}
.promptmenu a:hover {
text-decoration:none;
color:#09C;
}
.up {
padding-top:0;
padding-bottom:10px;
width:150px;
background-position:-500px 100%;
}
.up .promptcontent {
padding-top:5px;
padding-bottom:0;
background-position:-650px 0;
}
.up li {
border-bottom:none;
line-height:160%;
}
#uchome_ntc {
padding:1px 10px 3px 15px;
*padding:2px 10px 2px 15px;
background:image-url("common/notify_bg_m.gif") no-repeat 0 50%;
color:#FFF !important;
}
#uchome_ntc a {
margin:0;
}
#umenu,#umenu a,#umenu .pipe {
color:#97F2FF;
}
#bottom {
padding:1em 0;
}
#rightinfo {
float:left;
}
#footlink {
float:right;
text-align:right;
}
#bottom,#bottom a {
color:#8691A2;
}
.content {
padding:20px 25px;
}
.content h1 {
margin-bottom:10px;
font-size:16px;
font-weight:400;
}
#actions {
margin:-8px auto 0;
background:image-url("common/icon_nav.gif") no-repeat 0 50%;
text-align:left;
text-indent:25px;
line-height:3em;
}
#actions,#actions a {
color:#333;
}
.mainbox table {
width:100%;
}
.blocktitle {
margin-bottom:0.5em;
font-size:16px;
font-weight:700;
}
.channelinfo {
clear:both;
margin:5px 0;
color:#666;
}
.channelinfo img {
vertical-align:middle;
}
.channelinfo .onerror {
* background-position:2px 0;
}
.pages_btns {
padding:5px 0 1em;
line-height:30px;
}
.pages,.pageback {
float:right;
padding:2px 0;
}
.pages a,.pages strong,.pageback a {
float:left;
padding:0 6px;
margin-right:2px;
height:26px;
border:1px solid;
line-height:26px;
overflow:hidden;
}
.pages a,.pageback a {
border-color:#E6E7E1;
background-color:#FFF;
color:#09C;
}
.pages a:hover,.pageback a:hover {
text-decoration:none;
}
.pages strong {
border-color:#09C;
background-color:#09C;
color:#FFF;
font-weight:700;
}
.pages a.prev,.pages a.next {
background-repeat:no-repeat;
}
.pages a.prev {
background-image:image-url("common/arrow_left.gif");
background-position:30% 50%;
padding:0;
width:22px;
overflow:hidden;
text-indent:-9999px;
}
.pages a.next {
padding-right:16px;
background-image:image-url("common/arrow_right.gif");
background-position:90% 50%;
}
.pageback a {
padding-left:16px;
background:#FFF image-url("common/arrow_left.gif") no-repeat 0 50%;
}
.pages a:hover,.pageback a,.pages a.next {
border-color:#09C;
}
.formtable {
width:100%;
}
.formtable th {
padding:5px 2px;
width:100px;
}
.formtable th a {
font-weight:400;
color:#09C;
text-decoration:underline;
}
.formtable td {
padding:5px 2px;
}
.formtable .sep_space th {
height:40px;
}
.formtable .txt {
width:270px;
}
.formtable .txtarea {
float:left;
margin:-1px 8px 0 0;
width:270px;
height:60px;
border-top-color:#CCC;
}
.float_typeid {
float:left;
margin-right:6px;
}
.float_typeid select {
float:left;
height:20px;
}
.float_typeid a {
display:block;
overflow:hidden;
padding:0 17px 0 4px;
width:73px;
height:20px;
text-decoration:none !important;
color:#444 !important;
border:1px solid;
border-color:#999 #CCC #CCC #999;
background:#FFF image-url("common/newarow.gif") no-repeat 100% 0;
}
* html .float_typeid a {
height:18px;
padding-top:2px;
}
.float_typeid a:hover,.float_typeid a:focus {
border:1px solid #09C;
background-position:100% -20px;
}
.float_typeid select {
width:94px;
}
.short_select a {
width:39px;
}
.short_select select {
width:60px;
}
.select_menu {
border:1px solid #09C;
background:#FFF image-url("common/newarow.gif") no-repeat 100% -20px;
text-align:left;
}
.select_menu ul {
margin:0 4px;
}
.select_menu li {
color:#444;
cursor:pointer;
}
.select_menu li:hover {
color:#09C;
}
.select_menu li.current {
color:#F60;
}
.commonlist li {
margin:4px 0;
}
.inlinelist li {
float:left;
width:33%;
}
.inlinelist li.wide {
width:49.5%;
}
.datalist {
zoom:1;
}
.datalist table {
margin-bottom:30px;
width:100%;
border:1px solid #E6E7E1;
}
.datalist th,.datalist td {
padding:4px 5px;
border:1px solid #E6E7E1;
font-weight:400;
}
.datalist th img {
vertical-align:top;
}
.datalist table .stat_subject {
border-right:none;
}
.datalist table .stat_num {
padding-right:15px;
text-align:right;
border-left:none;
}
.datalist .datatable {
margin-bottom:10px;
}
.datalist .datatable,.datalist .datatable th,.datalist .datatable td {
border-width:1px 0;
}
.datalist .fixtable {
table-layout:fixed;
}
.colplural,.colplural th,.colplural td,th.highlight,td.highlight {
background-color:#F5F5F5;
}
.avt_list li {
float:left;
margin-right:9px;
width:64px;
height:54px;
text-align:center;
}
.side .avt_list li {
margin:0;
width:33.3%
}
.postmessage .avt_list li {
height:70px;
}
.avt_uname li {
height:80px;
}
.avt_list img {
display:block;
margin:0 auto;
}
.avt_list p {
width:96%;
white-space:nowrap;
overflow:hidden;
}
.avt_list .cornerlayger p {
white-space:normal;
text-align:left;
}
.avt_list .minicorner {
background:image-url("common/attachinfobg.gif") no-repeat -30px 0;
}
.avt_title {
margin:8px;
}
.list {
border-top:3px solid #E6E7E1;
}
.content .list h3 {
padding-left:6px;
color:#666;
line-height:35px;
}
.list td,.list th {
height:50px;
padding:6px 0;
border-top:1px dashed #E6E7E1;
color:#666;
}
.list th {
background:image-url("common/forum.gif") 5px 10px no-repeat;
padding-left:45px !important;
}
.narrowlist th {
vertical-align:top;
}
.list th.new {
background-image:image-url("common/forum_new.gif");
}
.list th h2 em {
font-weight:400;
}
.list th h2 em strong {
color:#F60
}
.feed {
margin-bottom:10px;
}
.feed h3 {
margin:10px 0 10px 30px;
font-size:14px;
color:#999;
}
.feed a {
color:#09C;
}
.feed li {
border-bottom:1px dashed #E6E7E1;
}
.feed div {
padding:10px 30px;
background:image-url("common/alert.gif") no-repeat 0 12px;
position:relative;
}
.feed div div {
padding:0;
background:none;
}
.feed .f_icon {
background:none;
}
.feed .apptype {
position:absolute;
float:left;
display:inline;
margin:3px 0 0 -30px;
}
.feed .f_thread {
background-image:image-url("common/folder_new.gif");
}
.feed .f_reply {
background-image:image-url("topic/fastreply.gif");
}
.feed .f_quote {
background-image:image-url("topic/repquote.gif");
}
.feed .f_buddy {
background-image:image-url("common/user_link.gif");
}
.feed .f_pin {
background-image:image-url("common/pin_1.gif");
background-position:0 9px;
}
.feed .f_digest {
background-image:image-url("common/digest_1.gif");
}
.feed .f_rate {
background-image:image-url("common/agree.gif");
}
.feed .f_manage {
background-image:image-url("common/icon_manage.gif");
}
.feed .f_magic {
background-image:image-url("common/magic.gif");
}
.feed .f_trade {
background-image:image-url("common/tradesmall.gif");
}
.feed .f_activity {
background-image:image-url("common/activitysmall.gif");
}
.feed .f_reward {
background-image:image-url("common/rewardsmall.gif");
}
.feed .f_task {
background-image:image-url("common/icon_task.gif");
background-position:0 14px;
}
.feed .f_credit {
background-image:image-url("common/viewpay.gif");
}
.feed dfn {
position:absolute;
right:0;
top:14px;
*top:12px;
font-style:normal;
}
.feed dfn .deloption {
float:right;
margin:0;
}
.feed em,.feed em a,.feed .summary {
color:#999;
}
.feed .summary {
margin:12px 2em 6px;
}
.feed dt {
float:left;
color:#444;
}
.feed dd {
margin-bottom:6px;
}
.feed .il {
margin-left:2em;
white-space:nowrap;
}
a.to {
padding-right:1em;
background:image-url("common/arrow_right.gif") no-repeat 100% 50%;
}
.feed i {
margin:0 5px;
color:#999;
}
.f_thumb {
margin:5px 0;
}
.f_thumb img {
margin-right:4px;
padding:2px;
max-width:100px;
max-height:70px;
border:1px solid #E6E7E1
}
* html .f_thumb img {
width:100px;
height:70px;
}
.feed fieldset {
margin:10px 0;
padding:0 0 0 20px;
border:none;
background:image-url("common/icon_quote_m_s.gif") no-repeat 0 0;
}
.feed ins {
margin:0;
padding:0 20px 0 0;
display:inline;
background:image-url("common/icon_quote_m_e.gif") no-repeat 100% 100%;
line-height:1.6em;
color:#999;
text-decoration:none;
}
.folder {
width:25px;
text-align:center;
}
td.icon {
width:20px;
text-align:center;
}
.icon .solved {
filter:alpha(opacity=30);
opacity:0.3;
}
.subject label {
float:right;
}
.threadlist th a:hover,.subject a:hover {
color:#09C;
}
.datatable .subject {
padding:8px 5px;
}
.threadpages {
white-space:nowrap;
}
.threadpages a {
padding:2px 4px;
color:#444;
}
.threadpages a:hover {
background-color:#EBF2F8;
}
.forum,.author,.lastpost {
width:110px;
}
.lastpost,.lastpost cite,.lastpost em {
text-align:right;
}
.author cite,.lastpost cite {
display:block;
margin-bottom:-5px;
width:105px;
height:1.6em;
overflow:hidden;
}
thead .lastpost cite {
margin-bottom:0;
}
.author em,.lastpost em,.lastpost em a {
font-size:9px;
font-family:Arial,sans-serif;
color:#999;
}
.lastpost cite,.lastpost em {
display:block;
margin-right:5px;
}
.nums {
width:80px;
color:#999;
text-align:center;
}
thead .nums {
color:#444;
}
.nums strong {
padding-right:2px;
color:#09C;
font-weight:400;
}
.nums em {
padding-left:2px;
color:#444;
}
.forumnums {
width:90px;
padding-right:10px !important;
color:#999;
text-align:center;
}
.forumnums em {
color:#09C;
}
.forumlast {
width:225px;
text-align:left;
}
.num {
width:120px;
text-align:center;
color:red;
}
.threadlist td {
padding:0 !important;
}
.threadlist .colplural th,.threadlist .colplural td {
padding:7px 0 !important;
background:#EBF2F8;
}
.threadlist .colplural th {
padding:7px 5px !important;
}
.threadlist .colplural a {
color:#09C;
font-family:Tahoma,sans-serif;
}
.threadlist .colplural a:hover {
text-decoration:underline;
}
.threadlist .colplural .order_active {
padding-right:8px;
background:image-url("common/order.gif") no-repeat 100% 50%;
}
.itemfilter {
line-height:18px;
}
.itemfilter * {
float:left;
height:18px;
overflow:hidden;
}
.itemfilter li {
margin-right:5px;
}
.itemfilter .current a {
margin-right:2px;
background:image-url("common/btn_block.gif") no-repeat 0 -161px;
}
.itemfilter .current a:hover {
text-decoration:none;
}
.itemfilter span {
cursor:pointer;
}
.itemfilter .current span {
padding:0 5px;
background:image-url("common/btn_block.gif") no-repeat 100% -179px;
color:#FFF;
}
.threadlist th em {
margin-right:4px;
}
.threadlist th em,.threadlist th em a {
color:#09C;
}
.threadlist th .attach {
vertical-align:middle;
}
* html .threadlist th .attach {
vertical-align:baseline;
}
.threadlist th a {
text-decoration:none;
}
.dropmenu {
padding-right:15px;
background:image-url("common/arrow_down.gif") 100% 50% no-repeat;
cursor:pointer;
}
.popupmenu_popup {
overflow:hidden;
padding:10px;
text-align:left;
border:1px solid #CBD8E4;
background:#FEFEFE;
}
.popupmenu_popup li {
margin:3px 0;
line-height:20px;
}
.headermenu_popup {
width:100px;
}
.headermenu_popup li {
width:100px;
border-bottom:1px solid #E6E7E1;
}
.headermenu_popup a:hover {
text-decoration:none;
color:#09C;
}
.headermenu_popup .active {
font-weight:700;
}
.titlemenu_popup {
padding:0;
}
.titlemenu_popup li {
margin:0;
}
.titlemenu_popup a {
display:block;
padding:3px 8px;
}
* html .titlemenu_popup a {
display:inline-block;
}
.titlemenu_popup .current a {
background:#F1F5FA;
}
.filter_popup {
width:5em;
}
.filter_popup li {
width:60px;
}
.showselect_menu {
margin-bottom:0.8em;
padding:5px;
text-align:left;
border:1px solid #CBD8E4;
background:#FEFEFE;
}
.headactions .popupmenu_popup a,.headactions .popupmenu_popup strong {
color:#666;
background:none;
white-space:nowrap;
}
.headactions .popupmenu_popup {
overflow:visible;
}
.hasdropdownbtn {
}.hasdropdownbtn input {
float:left;
width:129px;
}
.hasdropdownbtn .spmediuminput {
width:115px;
}
.dropdownbtn {
float:left;
overflow:hidden;
text-indent:-9999px;
width:20px;
height:20px;
border-width:1px 1px 1px 0;
border-style:solid;
border-color:#999 #CCC #CCC #999;
background:#FFF image-url("common/newarow.gif") no-repeat 0 0;
}
.dropdownbtn:hover {
background-position:0 -20px;
}
#themes {
position:absolute;
right:0px;
bottom:-25px;
}
#themes li {
float:left;
padding-left:5px;
}
#themes a {
float:left;
width:8px;
height:8px;
border:1px solid #DDD;
background:#FFF;
line-height:100px;
overflow:hidden;
}
#themes a:hover,#themes .current a {
border-color:#FFF;
}
#themes .current a {
margin-top:-1px;
border-width:2px;
}
.headactions {
float:right;
line-height:1em;
padding:12px 0 0;
}
.headactions img {
vertical-align:middle;
cursor:pointer;
padding:0 5px;
}
.headactions a {
margin-left:4px;
}
.mainbox .headactions {
color:#999;
}
.mainbox .headactions strong {
font-weight:700;
}
.msgfix {
overflow:hidden;
}
.side {
width:170px;
}
.postauthor .avatar img {
background:image-url("common/midavt_shadow.gif") repeat-x scroll 0 100% #FFFFFF;
padding:5px 5px 8px;
max-height:160px;
max-width:130px;
}
.sideinner .txt {
margin:6px 0;
}
.side li.current a {
font-weight:700;
color:#444;
text-decoration:none;
}
.with_side {
background:#FFF url("/images/common/sidebg.gif") repeat-y 100% 0;
}
.with_side .main {
float:left;
overflow:hidden;
margin-left:-180px;
width:100%;
}
.with_side .content {
margin-left:180px;
width:auto;
}
.with_side .side {
float:right;
padding-bottom:20px;
width:180px;
}
.with_side .side h2 {
margin:20px 25px 10px;
color:#999;
font-size:14px;
}
.with_side .side a {
color:#09C;
text-decoration:underline;
}
.sideinner {
padding:0 25px;
}
.sideinner .tabs {
margin:5px 0;
}
.sideinner .tabs li {
line-height:2em;
}
.numbg {
float:right;
text-align:center;
width:35px;
height:2em;
background:image-url("common/numbg.gif") no-repeat 0 50%;
color:#FFF;
font-weight:700;
}
.special {
background:none;
}
.special .main {
float:right;
}
.special .side {
float:left;
}
.sidebox {
overflow:hidden;
margin:5px 10px 10px;
}
.sidebox h4 {
margin-bottom:4px;
color:#09C;
}
.fwinmask {
}.fwin {
overflow-x:hidden;
margin:0 auto;
text-align:left;
}
.t_l,.t_c,.t_r,.m_l,.m_r,.b_l,.b_c,.b_r {
overflow:hidden;
opacity:0.9;
filter:alpha(opacity=90);
background:#CBD8E4;
}
.t_l,.t_r,.b_l,.b_r {
width:8px;
height:8px;
}
.t_c,.b_c {
height:8px;
}
.m_l,.m_r {
width:8px;
}
.m_c {
background:#F1F5FA;
}
.fcontent {
margin:15px;
}
.float_ctrl {
margin-bottom:15px;
height:20px;
line-height:20px;
}
.float_ctrl em {
float:left;
font-size:14px;
font-weight:700;
color:#09C;
}
.float_ctrl em a {
text-decoration:none;
}
.float_ctrl .needverify {
margin-left:8px;
padding-left:13px;
width:45px;
height:21px;
line-height:21px;
background:image-url("common/re_unsolved.gif") no-repeat 0 0;
font-size:12px;
color:#666;
font-weight:400;
}
.float_ctrl .onerror,.float_ctrl .onright {
white-space:nowrap;
height:auto;
line-height:140%;
color:#444;
font-size:12px;
font-weight:400;
}
.float_ctrl span {
float:right;
color:#999;
}
.float_ctrl span a,.float_ctrl strong {
float:left;
text-decoration:none;
margin-left:8px;
font-weight:400;
color:#444;
}
.float_ctrl span a:hover {
color:#999;
}
.float_close {
float:left;
width:20px;
height:20px;
overflow:hidden;
text-indent:-9999px;
background:image-url("common/newclose.gif") no-repeat 0 0;
}
.float_close:hover {
background-position:0 -20px;
}
.floatwrap {
overflow:auto;
overflow-x:hidden;
margin-bottom:10px;
height:280px;
}
.fcontent li {
list-style:none;
}
.fcontent a {
color:#09C;
text-decoration:underline;
}
.fcontent .list {
margin:0 auto;
width:570px;
border-top:3px solid #E6E7E1;
border-bottom:3px solid #E6E7E1;
}
.fcontent .list th,.fcontent .list td {
padding:3px !important;
height:auto;
border-bottom:1px dashed #E6E7E1;
}
.fcontent .list .btns th,.fcontent .list .btns td {
border-bottom:none;
}
.fcontent .list th {
width:150px;
background:none;
}
.postbox {
clear:both;
}
.moreconf {
margin-top:10px;
}
.moreconf button,.moreconf a {
margin-right:3px;
}
.loginform {
float:left;
margin-bottom:10px;
*margin-bottom:-10px;
padding:20px 0;
width:280px;
border-right:1px solid #D3E8F2;
}
.regsec {
margin-bottom:10px;
}
.channelinfo .onerror,.channelinfo .onright {
background-position:2px 0;
}
.loginform label {
clear:both;
overflow:hidden;
display:block;
margin:0 0 10px;
line-height:22px;
}
.loginform .txt {
width:170px;
}
.loginform select {
width:175px;
}
.fsubmit {
clear:both;
margin-top:8px;
}
.fsubmit .submit {
margin-right:8px;
}
.loginform label em,.fsubmit em {
float:left;
width:60px;
}
.fsubmit .regpre {
*margin-top:4px;
}
.nolabelform .txt {
width:230px;
}
.clause {
overflow:auto;
margin-bottom:10px;
width:470px;
height:240px;
}
.selectinput {
float:none;
margin:0 0 10px;
width:234px;
height:20px;
background-color:#FFF;
border:1px solid;
border-color:#999 #CCC #CCC #999;
}
.selectinput a {
float:left;
padding-right:0;
width:61px;
border:none;
}
.selectinput a:hover,.selectinput a:focus {
border:none;
}
.selectinput .txt {
float:left;
width:160px;
border:none;
}
.selecttype {
float:none;
margin:10px 0;
clear:both;
}
.selecttype a,.selecttype a:hover,.selecttype a:focus {
padding-right:0;
width:230px;
background-color:transparent;
border-color:#F1F5FA;
color:#999 !important;
}
.loginpsw label {
float:left;
padding-left:4px;
width:61px;
line-height:150%;
}
.capslock {
background:image-url("common/capslock.gif") no-repeat 98% 50%;
}
.logininfo {
float:left;
overflow:visible;
margin:87px 25px 10px 40px;
}
.logininfo h4 {
margin-bottom:10px;
font-weight:400;
font-size:14px;
}
.multinfo {
margin-top:53px;
}
.switchnav {
float:left;
white-space:nowrap;
overflow:hidden;
width:480px;
}
.postboardlist {
overflow:hidden;
margin:9px 0;
width:597px;
border-width:1px 0 1px 1px;
border-style:solid;
border-color:#CBD8E4;
background:#FFF;
}
.postboardlist li {
float:left;
overflow-x:hidden;
overflow-y:auto;
padding:5px;
width:188px;
height:300px;
border-right:1px solid #CBD8E4;
}
.postboardlist p {
height:25px;
line-height:25px;
}
.postboardlist a {
display:block;
white-space:nowrap;
overflow:hidden;
padding:0 4px;
text-decoration:none;
color:#444;
}
.postboardlist a:hover {
text-decoration:none;
background-color:#F5F5F5;
}
.postboardlist .highlightlink {
color:#09C;
}
.hassubboard {
background:image-url("common/arrow_right.gif") right center no-repeat;
}
.pbl_selected a,.pbl_selected a:hover {
background-color:#09C;
color:#FFF !important;
font-weight:700;
}
.nofloat {
height:auto !important;
height:410px;
min-height:410px;
background-color:#EBF2F8;
}
.nofloat .fcontent {
margin:15px auto;
width:600px;
}
.nofloat .loginform {
height:auto;
}
.nofloat .clause {
width:auto;
height:auto;
}
.fcontent .float_postinfo {
width:568px;
}
.c_header {
overflow:hidden;
margin-bottom:10px;
}
* html .c_header {
zoom:1;
}
.c_header h2,.c_header h3 {
float:left;
padding-right:15px;
background:#FFF;
font-size:14px;
cursor:pointer;
}
.c_header h3 {
background:#FFF image-url("common/arrow_down_big.gif") no-repeat 100% 5px;
color:#09C;
}
.searchfaq h3 {
background:none;
cursor:auto;
}
.c_header .noarrow {
background:none;
cursor:auto;
}
.c_header h3 a {
color:#09C;
}
.c_header h3 span {
font-size:12px;
font-weight:400;
color:#666;
}
.c_header h2 em,.c_header h3 em {
margin-left:8px;
font-size:12px;
color:#999;
font-weight:400;
}
.c_header_action {
float:right;
}
.c_header .c_header_ctrlbtn {
display:none;
}
.c_header .c_header_ext {
display:block;
}
.closenode {
background:image-url("common/dashline.gif") repeat-x 0 10px;
}
.closenode h3 {
background-image:image-url("common/arrow_right_big.gif");
}
.closenode .c_header_ctrlbtn {
display:block;
background-color:#FFF;
color:#666;
cursor:pointer;
}
.closenode .c_header_ext {
display:none;
}
.itemtitle {
clear:both;
overflow:hidden;
margin-bottom:10px;
line-height:23px;
}
.itemtitle h1 {
float:left;
margin:0 20px 0 0;
}
.itemtitle ul {
float:left;
}
.itemtitle li {
float:left;
margin-right:5px;
}
.itemtitle li.pipe {
margin-left:0;
}
.itemtitle ul a {
display:block;
overflow:hidden;
height:23px;
cursor:pointer;
}
* html .itemtitle ul a {
float:left;
}
.itemtitle ul a span {
display:block;
padding:0 7px;
*padding:1px 7px 0;
*line-height:22px;
}
.itemtitle ul a:hover {
background:#F5F5F5 image-url("common/btn_block.gif") no-repeat 0 -46px;
text-decoration:none;
}
.itemtitle ul a:hover span {
background:image-url("common/btn_block.gif") no-repeat 100% -69px;
}
.itemtitle ul a.dropmenu {
padding-right:0;
background-position:0 -161px;
}
.itemtitle ul a.dropmenu span {
padding-right:12px;
background:image-url("common/btn_block.gif") no-repeat 100% -138px;
}
.itemtitle ul a.dropmenu:hover {
background-position:0 -46px;
}
.itemtitle ul a.dropmenu:hover span {
background-position:100% -115px;
}
.itemtitle ul .current a,.itemtitle ul .current a:hover,.itemtitle ul .current a.dropmenu:hover {
background:#09C image-url("common/btn_block.gif") no-repeat 0 0;
}
.itemtitle ul .current a span,.itemtitle ul .current a:hover span {
background:image-url("common/btn_block.gif") no-repeat 100% -23px;
color:#FFF;
}
.itemtitle ul .current a.dropmenu span,.itemtitle ul .current a.dropmenu:hover span {
background-position:100% -92px;
}
.float_postinfo {
}.float_postinfo em {
float:left;
margin-right:5px;
padding-left:3px;
height:20px;
border:1px solid;
border-color:#999 #CCC #CCC #999;
background-color:#FFF;
cursor:pointer;
}
.float_postinfo em img {
margin-top:2px;
}
.float_postinfo input {
float:left;
}
.float_postinfo #subject {
width:358px;
}
.float_postinfo .float_typeid {
display:inline;
margin-right:0;
margin-left:6px;
}
.viewpoint {
margin:9px 0;
}
.colorbox input {
margin:2px;
padding:0px;
float:left;
cursor:pointer;
width:12px;
height:12px;
border:0;
}
.smilieslist {
padding:10px;
border:1px solid #CBD8E4;
background:#FEFEFE;
}
.smilieslist td {
padding:8px;
border:none;
cursor:pointer;
}
.smilieslist_page {
*float:left;
text-align:right;
}
.smilieslist_page a {
margin-right:5px;
color:#09C;
text-decoration:underline;
}
.pags_act {
float:left;
}
.smilies_preview {
margin-top:5px;
padding:8px;
background:#FFF;
border:1px solid #CBD8E4;
}
.smiliesgroup {
height:33px;
*height:34px;
overflow:hidden;
width:expression(this.parentNode.offsetWidth);
}
.smiliesgroup ul,.imguptype {
margin:6px 0;
padding:0 0 26px 8px;
border-bottom:1px solid #D3E8F2;
}
.smiliesgroup li,.imguptype li {
display:inline;
}
* html .smiliesgroup li,* html .imguptype li {
line-height:18px;
}
.smiliesgroup li a,.imguptype li a {
float:left;
margin:2px 6px 0 0;
padding:2px 10px;
height:19px;
border:1px solid #D3E8F2;
color:#09C;
text-decoration:none;
}
.smiliesgroup li a:focus,.imguptype li a:focus {
outline:none;
}
.smiliesgroup li a.current,.imguptype li a.current {
border-bottom-color:#FEFEFE;
font-weight:700;
color:#444;
}
.alert_win {
margin:0;
width:350px;
}
.alert_win .float_ctrl {
margin-bottom:0;
padding:8px;
}
.alert_win .shadowline {
margin:0;
*margin:-8px 0;
}
.alert_win .postbox {
*margin-top:-15px;
padding:15px;
}
.alert_right,.alert_error,.alert_info {
padding:6px 0 6px 58px;
line-height:160%;
background:image-url("common/right_big.gif") no-repeat 8px 50%;
font-size:14px;
}
.alert_error {
background-image:image-url("common/error_big.gif");
}
.alert_info {
background-image:image-url("common/info_big.gif");
}
.alert_btnleft {
margin-top:8px;
}
.alert_btn {
margin-top:20px;
text-align:center;
}
.alert_act {
margin-top:20px;
padding-left:58px;
}
.popupcredit {
}.pc_l,.pc_c,.pc_inner,.pc_r {
width:29px;
height:56px;
line-height:56px;
background:image-url("common/popupcredit_bg.gif") no-repeat 0 0;
}
.pc_c {
width:200px;
background-position:0 -56px;
background-repeat:repeat-x;
}
.pc_inner {
white-space:nowrap;
text-align:center;
width:auto;
background-position:50% -112px;
}
.pc_inner span {
margin-right:15px;
color:#FFEA97;
font-size:14px;
font-weight:700;
}
* html .pc_inner span {
display:inline-block;
}
.pc_inner span a {
color:#FFEA97;
text-decoration:underline;
}
.pc_inner span em {
color:#FFF;
font-size:18px;
font-weight:400;
}
.pc_inner span em.desc {
color:#930;
}
.pc_btn img {
opacity:0.5;
}
.pc_btn:hover img {
opacity:1;
}
.pc_r {
background-position:-30px 0;
}
.optionbar {
float:left;
overflow:hidden;
margin:3px 4px 0 -6px;
background:#09C image-url("common/header.gif") repeat-x;
height:14px;
}
.deloption {
float:left;
margin:4px;
width:12px;
height:12px;
background:image-url("common/close.gif") no-repeat 0 0;
overflow:hidden;
text-indent:-9999px;
}
.deloption:hover {
background-position:0 -12px;
}
.color_menu {
overflow:hidden;
width:63px;
}
.color_menu a {
overflow:hidden;
float:left;
width:20px;
height:20px;
}
.chosemagic {
margin-bottom:9px;
width:220px;
}
.topicadminhigh {
height:200px;
}
.topicadminhigh .tah_body {
margin:5px 0 15px;
}
.topicadminhigh .tah_body select {
width:217px;
}
.topicadminlow {
height:50px;
}
.topicadminlow table {
width:100%;
}
.topicadminlow td {
padding:0 5px;
}
.topicadminlow .txt {
width:100px;
}
.topicadminlow .wide .txt {
width:50px;
}
.topicadminlog {
}.topicadminlog h4 {
font-weight:400;
}
.topicadminlog .dropdownbtn {
border-left-width:1px;
}
.topicadminlog .txtarea {
margin:5px 0;
width:212px;
height:40px;
}
body {
font-size:12px;
color:#555;
font-family:Arial,Tahoma,Verdana,Serif;
padding:0;
height:100%;
margin:0;
background:#ebebeb;
}
table,tr,td {
font-family:Tahoma,Verdana,Georgia,Simsun,Serif;
font-size:12px;
background-color:inherit;
color:#666;
}
em,cite,strong,th {
font-style:normal;
font-weight:normal;
}
img {
border-width:0px;
outline:none;
}
img.inline {
vertical-align:middle;
outline:none;
}
h1,h2,h3,h4,h5,h6 {
font-size:1em;
}
img.inline {
vertical-align:middle;
outline:none;
}
#topbar {
width:100%;
height:34px;
background:image-url("common/tbg.gif") repeat-x;
position:relative;
}
#user {
width:630px;
float:left;
height:32px;
line-height:33px;
}
#user a {
color:#D0D0D0;
padding:0 4px;
}
#searchform {
background-color:inherit;
width:190px;
height:25px;
margin-top:3px;
float:right;
}
#searchform #srchtxt {
margin-right:3px;
padding:4px 7px 1px 5px;
background:#FFF image-url("common/form-field-bg.gif") no-repeat;
width:120px;
color:#999;
height:17px;
border:0;
}
#searchform #searchsubmit {
background:image-url("common/t_go.gif") no-repeat;
width:29px;
text-indent:-999%;
line-height:1px;
height:23px;
cursor:pointer;
margin-top:2px;
border:0;
}
.searchsub {
background:image-url("common/t_go.gif");
width:29px;
height:23px;
margin:0px;
border:0px;
padding:0px;
font-size:0.1em;
}
#headerbg {
width:100%;
height:174px;
background:image-url("common/bg.gif") repeat-x;
}
.header {
width:1024px;
height:116px;
margin:auto;
}
#actions {
width:1024px;
height:53px;
margin:0 auto;
background:image-url("common/bg_areabar.gif") no-repeat center bottom;
clear:both;
color:#999;
}
#body {
width:1024px;
min-height:450px;
margin:auto;
background:#ebebeb image-url("common/cbg.gif") repeat-y;
clear:both;
}
.wrap {
width:95% !important;
}
#bottom {
width:1024px;
font-size:11px;
color:#717275;
background:#ebebeb image-url("common/bg_bottom.gif") no-repeat;
clear:both;
margin:auto;
}
#ftop {
width:80px;
height:25px;
text-align:center;
}
#ftop a {
text-decoration:none;
color:#406a78;
background-color:inherit;
font-size:11px;
}
#footlink {
width:900px;
margin:20px auto;
height:60px;
clear:both;
text-align:left;
}
.fmenu {
width:430px;
height:16px;
margin:10px;
list-style:none;
clear:both;
}
.fmenu li {
width:65px;
height:16px;
float:left;
}
.fmenu li a {
text-decoration:none;
color:#a6a6a6;
background-color:inherit;
}
.fmenu li a:hover {
text-decoration:none;
color:#bdbdbd;
background-color:inherit;
}
.bhoge {
float:right;
width:110px;
height:60px;
background:image-url("common/b_hoge.gif") no-repeat 30% 80%;
text-align:left;
line-height:23px;
}
.bw3c {
float:right;
width:110px;
height:60px;
background:image-url("common/b_w3c.gif") no-repeat 30% 80%;
text-align:left;
line-height:23px;
}
.bexa {
float:right;
width:120px;
height:60px;
background:image-url("common/b_exa.gif") no-repeat 40% 80%;
text-align:left;
line-height:23px;
}
.postattachlist {
width:600px !important;
}
.clearbar {
overflow:hidden;
height:10px;
clear:both;
}
.muban_price {
padding:10px 15px;
border:1px solid #FADC80;
background:#FFFBDB;
color:#965432;
line-height:24px !important;
}
strong.price {
color:#FF6600;
font-size:18px;
}
.minifont {
color:#A2A7AB;
font-family:arial,tahoma,verdana;
font-size:11px;
}
.nums {
color:#999999;
font-size:10px;
text-align:right;
width:150px;
}
.main h4 {
font-size:14px;
height:38px;
line-height:38px;
padding-left:5px;
color:#000;
}
.main h1 {
margin-bottom:10px;
font-size:16px;
font-weight:400;
}
.main .list h3 {
padding-left:6px;
color:#666;
line-height:35px;
}
.itemtitle .l {
float:left;
}
.itemtitle .r {
float:right;
}
.itemtitle .r li {
float:left;
width:50px;
list-style:none;
text-align:left;
padding-left:17px;
}
.itemtitle .r li.tposts {
background:image-url("common/boy.gif") no-repeat left center;
}
.itemtitle .r li.pdata {
background:image-url("common/girl.gif") no-repeat left center;
}
.itemtitle .r li.tmembers {
background:image-url("common/baom.gif") no-repeat left center;
}
.dotbar {
width:574px;
height:10px;
text-align:center;
margin:0 auto;
clear:both;
background:image-url("common/dot1.gif") repeat-x bottom;
}
.wbar {
width:560px;
color:#806C80;
height:33px;
margin:0 auto;
line-height:32px;
text-align:center;
clear:both;
background:image-url("common/dot1.gif") repeat-x bottom;
}
.wbar .l {
float:left;
padding-left:12px;
}
.wbar .r {
float:right;
width:220px;
}
.wbar li {
float:left;
width:50px;
padding-left:17px;
list-style:none;
text-align:left;
}
.wbar .newthread {
background:image-url("common/newthread.gif") no-repeat left center;
width:240px;
}
.news_box {
clear:both;
position:relative;
width:560px;
margin:0 auto;
}
.news_box ul {
padding:0;
margin:0;
list-style:none;
}
.news_box li {
height:30px;
line-height:30px;
border-bottom:1px dashed #E5E5E5;
clear:both;
overflow:hidden;
}
.news_box li.bai {
background:#FFF;
}
.news_box li .icon {
width:30px;
height:30px;
background:image-url("common/slisticon.gif") no-repeat center center;
float:left;
}
.img_box {
clear:both;
position:relative;
width:560px;
margin:0 auto;
border-top:1px solid #EBEBEB;
background:#F4F4F4;
height:110px;
}
.img_box ul {
padding:8px 0 0 4px;
margin:0;
overflow:hidden;
}
.img_box li {
width:168px;
height:95px;
background:image-url("common/mob_img_bg.gif") repeat-x bottom;
float:left;
margin:0 7px;
}
.img_box img {
width:166px;
height:88px;
border:1px solid #EBEBEB;
background:#333;
display:block;
}
.img_box a {
position:relative;
display:block;
}
.img_box span {
width:43px;
height:43px;
position:absolute;
right:0;
top:0;
display:block;
background:image-url("common/hot/free.gif") no-repeat right top;
}
.img_box span.free {
background:image-url("common/hot/free.gif") no-repeat right top;
}
.img_box span.unfree {
background:image-url("common/hot/unfree.gif") no-repeat right top;
}
.img_box span.yugao {
background:image-url("common/hot/yugao.gif") no-repeat right top;
}
.taolun_box {
clear:both;
position:relative;
width:560px;
margin:0 auto;
}
.list th {
padding-left:55px !important;
background-image:image-url("common/forum.gif");
background-position:13px 10px;
}
.list th.new {
background-image:image-url("common/forum_new.gif");
}
.side h4 {
height:32px;
background:url(/images/common/side_title_bg.png) repeat-x;
line-height:32px;
border:1px solid #D6E3E9;
padding-left:10px;
}
.sbox {
padding:8px;
overflow:hidden;
}
.login_box,.event_box,.caifu_box {
padding:8px;
background:#FFF;
border:1px solid #F2F2F2;
overflow:hidden;
clear:both;
}
.login_ava {
width:80px;
height:58px;
background:image-url("common/avatar_bg.gif") no-repeat;
float:left;
}
.login_ava img {
padding:5px;
}
.login_text {
width:140px;
float:left;
}
.login_join {
width:60px;
float:right;
}
.announcement {
height:30px;
background:url(/images/common/side_title_bg.png) repeat-x 0 -34px;
line-height:30px;
border:1px solid #E7E6C8;
padding-left:20px;
}
.announcement .laba {
padding-left:22px;
background:url(/images/common/announcement.png) no-repeat left center;
}
.announcement .laba a {
color:#8B0000 !important;
text-decoration:none !important;
}
.event_box {
height:230px;
overflow:hidden;
}
.event_box ul {
padding:0;
margin:0;
}
.event_box li {
float:left;
width:142px;
height:118px;
text-align:center;
}
.event_box li img {
width:135px;
height:110px;
border:1px solid #F2F2F2;
}
.caifu_box .info {
border:1px solid #E7E6C8;
background:#FCFBE7;
padding:2px 4px;
clear:both;
}
.caifu_box .paihang {
clear:both;
}
.caifu_box ul {
padding:0;
margin:0;
}
.caifu_box li {
clear:both;
height:64px;
border-bottom:1px dashed #E5E5E5
}
.caifu_box li p {
clear:both;
overflow:hidden;
height:6px;
padding:0;
margin:0;
}
.caifu_box li div {
height:52px;
float:left;
color:#999999;
}
.caifu_box li span {
color:#666;
}
.caifu_box li .caifu_num {
width:42px;
background:image-url("common/paihang_bg.gif") no-repeat center 22px;
text-align:center;
line-height:54px;
font-size:10px;
color:#FFF;
}
.caifu_box li .caifu_ava {
width:60px;
}
.caifu_box li .caifu_ava img {
border:2px solid #E1E9EF;
}
.caifu_box li .caifu_point {
line-height:20px;
overflow:hidden;
width:180px;
}
.caifu_box li.no1 .caifu_num {
background:image-url("common/paihang_bg.gif") no-repeat center -82px;
font-size:14px;
font-weight:bold;
}
.caifu_box li.no1 span {
color:#FF8176;
font-size:14px;
}
.caifu_box li.no2 .caifu_num {
background:image-url("common/paihang_bg.gif") no-repeat center -27px;
font-size:12px;
font-weight:bold;
}
.caifu_box li.no2 span {
color:#80B94B;
}
.threadv {
background:image-url("common/slisticon.gif") no-repeat 5px center;
padding-left:30px;
}
.photoshow {
width:574px;
height:174px;
background:image-url("common/photo_bg.gif");
margin:0 auto;
}
#slideshow {
list-style:none;
color:#fff;
}
#slideshow span {
display:none
}
#psbar {
overflow:hidden;
height:7px;
clear:both;
}
#slidephoto {
width:560px;
margin:0;
margin:0 auto;
display:none
}
#slidephoto * {
margin:0;
padding:0
}
#s_fullsize {
position:relative;
width:560px;
height:160px;
padding:0;
background:#000
}
#s_information {
position:absolute;
bottom:0;
width:560px;
height:0;
background:#000;
color:#fff;
overflow:hidden;
z-index:200;
opacity:.7;
filter:alpha(opacity=70)
}
#s_information h3 {
padding:4px 8px 3px;
font-size:12px;
color:#CCC;
}
#s_information p {
padding:0 8px 8px;
font-size:12px;
color:#7b7b7b;
}
#s_image {
width:560px
}
#s_image img {
position:absolute;
z-index:25;
width:auto
}
.imgnav {
position:absolute;
width:25%;
height:160px;
cursor:pointer;
z-index:150
}
#imgprev {
left:0;
background:image-url("common/photo/s_left.gif") left center no-repeat
}
#imgnext {
right:0;
background:image-url("common/photo/s_right.gif") right center no-repeat
}
#imglink {
position:absolute;
height:160px;
width:100%;
z-index:100;
opacity:.4;
filter:alpha(opacity=40)
}
.linkhover {
background:url(../../images/ahmengv2/link.gif) center center no-repeat
}
#slideleft {
float:left;
width:20px;
height:81px;
background:image-url("common/photo/scroll-left.gif") center center no-repeat;
background-color:#222
}
#slideleft:hover {
background-color:#333
}
#slideright {
float:right;
width:20px;
height:81px;
background:#222 image-url("common/photo/scroll-right.gif") center center no-repeat
}
#slideright:hover {
background-color:#333
}
#slidearea {
float:left;
position:relative;
width:540px;
margin-left:3px;
height:81px;
overflow:hidden
}
#slider {
position:absolute;
left:0;
height:81px
}
#slider img {
cursor:pointer;
border:1px solid #666;
padding:2px
}
#ad_headerbanner {
position:absolute;
right:30px;
top:60px;
}
.ad_text {
margin:0 auto 5px;
padding:10px 0;
width:95%;
background:#FFF;
}
#footer {
margin: auto;
text-align: left;
width: 900px;
}
/*Created By Losses @ 5.13*/
#nav {
padding-top: 22px;
padding-left: 170px;
width: 728px;
height: 36px;
background: #dce1e8 image-url("navbg.png") no-repeat;
float: left;
margin: auto;
}
#nav a {
float: left;
width: 88px;
height: 25px;
border-radius:5px 5px 0 0;
background: #92b0c9;
padding-top:8px;
margin:3px;
color: white;
text-decoration:none;
}
#nav a:hover{
height:29px;
margin-top:-1px;
}
#nav li.current a {
background: image-url("common/menu_h_bg.gif") no-repeat;
color: #333;
height: 36px;
font-weight: bold;
font-size: 14px;
}
* {
word-wrap: break-word;
}
html, body {
border: 0 !important;
}
body {
background: #ebebeb image-url("common/bodybg.gif") repeat-x 0 90px;
text-align: center;
}
body, td, input, textarea, select, button {
color: #444;
font: 12px/1.6em Verdana, Helvetica, Arial, sans-serif;
}
input, select, button {
vertical-align: middle;
}
textarea {
resize: none;
}
body, ul, li, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-size: 1em;
}
ul li {
list-style: none;
}
a {
text-decoration: none;
color: #000;
}
a:hover {
text-decoration: underline;
}
.lightlink, .lightlink a {
color: #09C;
}
a img {
border: none;
}
em, cite, strong, th {
text-align: left;
font-style: normal;
}
.emfont {
color: #F60;
}
table {
empty-cells: show;
border-collapse: collapse;
}
th {
font-weight: 400;
}
.txt, .txtarea {
padding: 2px;
*padding: 0 2px;
height: 16px;
*height: 20px;
border: 1px solid;
border-color: #999 #CCC #CCC #999;
background: #FFF;
}
.txtarea {
height: auto;
}
.checkbox, .radio {
margin: 0;
width: 15px;
}
.pipe {
margin: 0 5px;
}
.lighttxt, .lighttxt a, .pipe {
color: #999;
}
.smalltext {
font-size: 0.83em;
font-family: Verdana,Helvetica,Arial,sans-serif;
}
.noborder, .noborder td {
border: none !important;
}
.nobg {
background: none !important;
}
.right {
float: right;
}
.left {
float: left;
}
.onerror, .onright {
clear: both;
padding: 2px 2px 2px 22px;
background: image-url("check_error.gif") no-repeat 2px 2px;
}
.onright {
background: image-url("check_right.gif") no-repeat 2px 2px;
}
.notice {
clear: both;
margin: 5px 0;
padding: 3px 5px 3px 20px;
background: image-url("common/notice.gif") no-repeat 2px 6px;
}
.nodata {
margin: 99px auto;
text-align: center;
color: #999;
font-size: 16px;
font-weight: 700;
}
#ajaxwaitid {
display: none;
position: absolute;
z-index: 100;
top: 0;
right: 0;
width: 100px;
height: 1.6em;
background: #D00;
line-height: 1.6em;
color: #FFF;
overflow: hidden;
}
#checksecanswer img, #checksecanswer3 img, #checkseccodeverify img, #checkseccodeverify3 img, .warning img {
vertical-align: middle;
}
.s_clear:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.s_clear {
zoom: 1;
}
hr {
clear: both;
margin: 1em 0;
border: 0 solid #E6E7E1;
background: transparent;
}
.solidline {
border-top: 1px solid #FFF;
border-bottom-width: 1px;
}
.dashline {
height: 0px;
border-bottom-width: 1px;
border-style: dashed;
}
.shadowline {
*margin: 2px 0;
border-width: 1px 0;
border-top-color: #C8DCEC;
border-bottom-color: #FFF;
}
.side .shadowline {
margin: 5px 0;
*margin: 2px 0;
}
.cornerlayger {
padding: 6px 8px;
border: 1px solid #09C;
background: #EBF2F8;
line-height: 1.6em;
}
.minicorner {
margin-top: -1px;
height: 6px;
background: image-url("common/attachinfobg.gif") no-repeat 50% 0;
}
.wrap {
text-align: left;
margin: 0 auto;
}
#wrap {
padding-bottom: 10px;
min-height: 450px;
border: 0 solid #00B2E8;
background-color: #FFF;
clear: both;
}
* html #wrap {
height: 450px;
}
.wrap, #actions {
width: 1024px;
}
#header {
margin-bottom: 8px;
min-width: 1024px;
width: 100%;
border-bottom: 1px solid #00B2E8;
background: #00a2d2 image-url("common/header.gif") repeat-x 0 100%;
}
#header .wrap {
position: relative;
padding: 24px 0 22px;
}
#header h2 {
float: left;
}
#umenu {
position: absolute;
right: 0;
top: 0;
line-height: 20px;
}
#umenu a {
margin: 0 6px;
}
#umenu cite {
font-weight: 700;
}
#umenu cite span a {
margin: 0;
font-weight: 400;
}
#myprompt.new {
padding-left: 22px;
background: image-url("common/notice_newpm.gif") no-repeat 0 50%;
}
#myprompt_menu a.new {
color: #F60;
}
#myprompt_menu li {
float: left;
width: 50%;
}
.promptmenu {
margin-left: -27px;
padding-top: 10px;
width: 250px;
background: transparent image-url("common/pm_ntc.gif") no-repeat 0 0;
text-align: left;
opacity: 0.98;
}
.promptcontent {
padding-bottom: 10px;
background: transparent image-url("common/pm_ntc.gif") no-repeat -250px 100%;
}
.promptmenu ul {
padding: 0 10px;
border: solid #91C8E2;
border-width: 0 2px;
background: #FEFEFE;
}
.promptmenu li {
border-bottom: 1px solid #F4F4F4;
line-height: 29px;
display: block;
width: 100%;
color: #999;
overflow: hidden;
text-overflow: ellipsis;
-webkit-text-overflow: ellipsis;
-moz-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
}
.promptmenu a:hover {
text-decoration: none;
color: #09C;
}
.up {
padding-top: 0;
padding-bottom: 10px;
width: 150px;
background-position: -500px 100%;
}
.up .promptcontent {
padding-top: 5px;
padding-bottom: 0;
background-position: -650px 0;
}
.up li {
border-bottom: none;
line-height: 160%;
}
#uchome_ntc {
padding: 1px 10px 3px 15px;
*padding: 2px 10px 2px 15px;
background: image-url("common/notify_bg_m.gif") no-repeat 0 50%;
color: #FFF !important;
}
#uchome_ntc a {
margin: 0;
}
#umenu, #umenu a, #umenu .pipe {
color: #97F2FF;
}
#bottom {
padding: 1em 0;
}
#rightinfo {
float: left;
}
#footlink {
float: right;
text-align: right;
}
#bottom, #bottom a {
color: #8691A2;
}
.content {
padding: 20px 25px;
}
.content h1 {
margin-bottom: 10px;
font-size: 16px;
font-weight: 400;
}
#actions {
margin: -8px auto 0;
background: image-url("common/icon_nav.gif") no-repeat 0 50%;
text-align: left;
text-indent: 25px;
line-height: 3em;
}
#actions, #actions a {
color: #333;
}
.mainbox table {
width: 100%;
}
.blocktitle {
margin-bottom: 0.5em;
font-size: 16px;
font-weight: 700;
}
.channelinfo {
clear: both;
margin: 5px 0;
color: #666;
}
.channelinfo img {
vertical-align: middle;
}
.channelinfo .onerror {
* background-position: 2px 0;
}
.pages_btns {
padding: 5px 0 1em;
line-height: 30px;
}
.pages, .pageback {
float: right;
padding: 2px 0;
}
.pages a, .pages strong, .pageback a {
float: left;
padding: 0 6px;
margin-right: 2px;
height: 26px;
border: 1px solid;
line-height: 26px;
overflow: hidden;
}
.pages a, .pageback a {
border-color: #E6E7E1;
background-color: #FFF;
color: #09C;
}
.pages a:hover, .pageback a:hover {
text-decoration: none;
}
.pages strong {
border-color: #09C;
background-color: #09C;
color: #FFF;
font-weight: 700;
}
.pages a.prev, .pages a.next {
background-repeat: no-repeat;
}
.pages a.prev {
background-image: image-url("common/arrow_left.gif");
background-position: 30% 50%;
padding: 0;
width: 22px;
overflow: hidden;
text-indent: -9999px;
}
.pages a.next {
padding-right: 16px;
background-image: image-url("common/arrow_right.gif");
background-position: 90% 50%;
}
.pageback a {
padding-left: 16px;
background: white image-url("common/arrow_left.gif") no-repeat 0 50%;
}
.pages a:hover, .pageback a, .pages a.next {
border-color: #09C;
}
.formtable {
width: 100%;
}
.formtable th {
padding: 5px 2px;
width: 100px;
}
.formtable th a {
font-weight: 400;
color: #09C;
text-decoration: underline;
}
.formtable td {
padding: 5px 2px;
}
.formtable .sep_space th {
height: 40px;
}
.formtable .txt {
width: 270px;
}
.formtable .txtarea {
float: left;
margin: -1px 8px 0 0;
width: 270px;
height: 60px;
border-top-color: #CCC;
}
.float_typeid {
float: left;
margin-right: 6px;
}
.float_typeid select {
float: left;
height: 20px;
}
.float_typeid a {
display: block;
overflow: hidden;
padding: 0 17px 0 4px;
width: 73px;
height: 20px;
text-decoration: none !important;
color: #444 !important;
border: 1px solid;
border-color: #999 #CCC #CCC #999;
background: white image-url("common/newarow.gif") no-repeat 100% 0;
}
* html .float_typeid a {
height: 18px;
padding-top: 2px;
}
.float_typeid a:hover, .float_typeid a:focus {
border: 1px solid #09C;
background-position: 100% -20px;
}
.float_typeid select {
width: 94px;
}
.short_select a {
width: 39px;
}
.short_select select {
width: 60px;
}
.select_menu {
border: 1px solid #09C;
background: white image-url("common/newarow.gif") no-repeat 100% -20px;
text-align: left;
}
.select_menu ul {
margin: 0 4px;
}
.select_menu li {
color: #444;
cursor: pointer;
}
.select_menu li:hover {
color: #09C;
}
.select_menu li.current {
color: #F60;
}
.commonlist li {
margin: 4px 0;
}
.inlinelist li {
float: left;
width: 33%;
}
.inlinelist li.wide {
width: 49.5%;
}
.datalist {
zoom: 1;
}
.datalist table {
margin-bottom: 30px;
width: 100%;
border: 1px solid #E6E7E1;
}
.datalist th, .datalist td {
padding: 4px 5px;
border: 1px solid #E6E7E1;
font-weight: 400;
}
.datalist th img {
vertical-align: top;
}
.datalist table .stat_subject {
border-right: none;
}
.datalist table .stat_num {
padding-right: 15px;
text-align: right;
border-left: none;
}
.datalist .datatable {
margin-bottom: 10px;
}
.datalist .datatable, .datalist .datatable th, .datalist .datatable td {
border-width: 1px 0;
}
.datalist .fixtable {
table-layout: fixed;
}
.colplural, .colplural th, .colplural td, th.highlight, td.highlight {
background-color: #F5F5F5;
}
.avt_list li {
float: left;
margin-right: 9px;
width: 64px;
height: 54px;
text-align: center;
}
.side .avt_list li {
margin: 0;
width: 33.3%;
}
.postmessage .avt_list li {
height: 70px;
}
.avt_uname li {
height: 80px;
}
.avt_list img {
display: block;
margin: 0 auto;
}
.avt_list p {
width: 96%;
white-space: nowrap;
overflow: hidden;
}
.avt_list .cornerlayger p {
white-space: normal;
text-align: left;
}
.avt_list .minicorner {
background: image-url("common/attachinfobg.gif") no-repeat -30px 0;
}
.avt_title {
margin: 8px;
}
.list {
border-top: 3px solid #E6E7E1;
}
.content .list h3 {
padding-left: 6px;
color: #666;
line-height: 35px;
}
.list td, .list th {
height: 50px;
padding: 6px 0;
border-top: 1px dashed #E6E7E1;
color: #666;
}
.list th {
background: image-url("common/forum.gif") 5px 10px no-repeat;
padding-left: 45px !important;
}
.narrowlist th {
vertical-align: top;
}
.list th.new {
background-image: image-url("common/forum_new.gif");
}
.list th h2 em {
font-weight: 400;
}
.list th h2 em strong {
color: #ff6600;
}
.feed {
margin-bottom: 10px;
}
.feed h3 {
margin: 10px 0 10px 30px;
font-size: 14px;
color: #999;
}
.feed a {
color: #09C;
}
.feed li {
border-bottom: 1px dashed #E6E7E1;
}
.feed div {
padding: 10px 30px;
background: image-url("common/alert.gif") no-repeat 0 12px;
position: relative;
}
.feed div div {
padding: 0;
background: none;
}
.feed .f_icon {
background: none;
}
.feed .apptype {
position: absolute;
float: left;
display: inline;
margin: 3px 0 0 -30px;
}
.feed .f_thread {
background-image: image-url("common/folder_new.gif");
}
.feed .f_reply {
background-image: image-url("topic/fastreply.gif");
}
.feed .f_quote {
background-image: image-url("topic/repquote.gif");
}
.feed .f_buddy {
background-image: image-url("common/user_link.gif");
}
.feed .f_pin {
background-image: image-url("common/pin_1.gif");
background-position: 0 9px;
}
.feed .f_digest {
background-image: image-url("common/digest_1.gif");
}
.feed .f_rate {
background-image: image-url("common/agree.gif");
}
.feed .f_manage {
background-image: image-url("common/icon_manage.gif");
}
.feed .f_magic {
background-image: image-url("common/magic.gif");
}
.feed .f_trade {
background-image: image-url("common/tradesmall.gif");
}
.feed .f_activity {
background-image: image-url("common/activitysmall.gif");
}
.feed .f_reward {
background-image: image-url("common/rewardsmall.gif");
}
.feed .f_task {
background-image: image-url("common/icon_task.gif");
background-position: 0 14px;
}
.feed .f_credit {
background-image: image-url("common/viewpay.gif");
}
.feed dfn {
position: absolute;
right: 0;
top: 14px;
*top: 12px;
font-style: normal;
}
.feed dfn .deloption {
float: right;
margin: 0;
}
.feed em, .feed em a, .feed .summary {
color: #999;
}
.feed .summary {
margin: 12px 2em 6px;
}
.feed dt {
float: left;
color: #444;
}
.feed dd {
margin-bottom: 6px;
}
.feed .il {
margin-left: 2em;
white-space: nowrap;
}
a.to {
padding-right: 1em;
background: image-url("common/arrow_right.gif") no-repeat 100% 50%;
}
.feed i {
margin: 0 5px;
color: #999;
}
.f_thumb {
margin: 5px 0;
}
.f_thumb img {
margin-right: 4px;
padding: 2px;
max-width: 100px;
max-height: 70px;
border: 1px solid #e6e7e1;
}
* html .f_thumb img {
width: 100px;
height: 70px;
}
.feed fieldset {
margin: 10px 0;
padding: 0 0 0 20px;
border: none;
background: image-url("common/icon_quote_m_s.gif") no-repeat 0 0;
}
.feed ins {
margin: 0;
padding: 0 20px 0 0;
display: inline;
background: image-url("common/icon_quote_m_e.gif") no-repeat 100% 100%;
line-height: 1.6em;
color: #999;
text-decoration: none;
}
.folder {
width: 25px;
text-align: center;
}
td.icon {
width: 20px;
text-align: center;
}
.icon .solved {
filter: alpha(opacity=30);
opacity: 0.3;
}
.subject label {
float: right;
}
.threadlist th a:hover, .subject a:hover {
color: #09C;
}
.datatable .subject {
padding: 8px 5px;
}
.threadpages {
white-space: nowrap;
}
.threadpages a {
padding: 2px 4px;
color: #444;
}
.threadpages a:hover {
background-color: #EBF2F8;
}
.forum, .author, .lastpost {
width: 110px;
}
.lastpost, .lastpost cite, .lastpost em {
text-align: right;
}
.author cite, .lastpost cite {
display: block;
margin-bottom: -5px;
width: 105px;
height: 1.6em;
overflow: hidden;
}
thead .lastpost cite {
margin-bottom: 0;
}
.author em, .lastpost em, .lastpost em a {
font-size: 9px;
font-family: Arial,sans-serif;
color: #999;
}
.lastpost cite, .lastpost em {
display: block;
margin-right: 5px;
}
.nums {
width: 80px;
color: #999;
text-align: center;
}
thead .nums {
color: #444;
}
.nums strong {
padding-right: 2px;
color: #09C;
font-weight: 400;
}
.nums em {
padding-left: 2px;
color: #444;
}
.forumnums {
width: 90px;
padding-right: 10px !important;
color: #999;
text-align: center;
}
.forumnums em {
color: #09C;
}
.forumlast {
width: 225px;
text-align: left;
}
.num {
width: 120px;
text-align: center;
color: red;
}
.threadlist td {
padding: 0 !important;
}
.threadlist .colplural th, .threadlist .colplural td {
padding: 7px 0 !important;
background: #EBF2F8;
}
.threadlist .colplural th {
padding: 7px 5px !important;
}
.threadlist .colplural a {
color: #09C;
font-family: Tahoma,sans-serif;
}
.threadlist .colplural a:hover {
text-decoration: underline;
}
.threadlist .colplural .order_active {
padding-right: 8px;
background: image-url("common/order.gif") no-repeat 100% 50%;
}
.itemfilter {
line-height: 18px;
}
.itemfilter * {
float: left;
height: 18px;
overflow: hidden;
}
.itemfilter li {
margin-right: 5px;
}
.itemfilter .current a {
margin-right: 2px;
background: image-url("common/btn_block.gif") no-repeat 0 -161px;
}
.itemfilter .current a:hover {
text-decoration: none;
}
.itemfilter span {
cursor: pointer;
}
.itemfilter .current span {
padding: 0 5px;
background: image-url("common/btn_block.gif") no-repeat 100% -179px;
color: #FFF;
}
.threadlist th em {
margin-right: 4px;
}
.threadlist th em, .threadlist th em a {
color: #09C;
}
.threadlist th .attach {
vertical-align: middle;
}
* html .threadlist th .attach {
vertical-align: baseline;
}
.threadlist th a {
text-decoration: none;
}
.dropmenu {
padding-right: 15px;
background: image-url("common/arrow_down.gif") 100% 50% no-repeat;
cursor: pointer;
}
.popupmenu_popup {
overflow: hidden;
padding: 10px;
text-align: left;
border: 1px solid #CBD8E4;
background: #FEFEFE;
}
.popupmenu_popup li {
margin: 3px 0;
line-height: 20px;
}
.headermenu_popup {
width: 100px;
}
.headermenu_popup li {
width: 100px;
border-bottom: 1px solid #E6E7E1;
}
.headermenu_popup a:hover {
text-decoration: none;
color: #09C;
}
.headermenu_popup .active {
font-weight: 700;
}
.titlemenu_popup {
padding: 0;
}
.titlemenu_popup li {
margin: 0;
}
.titlemenu_popup a {
display: block;
padding: 3px 8px;
}
* html .titlemenu_popup a {
display: inline-block;
}
.titlemenu_popup .current a {
background: #F1F5FA;
}
.filter_popup {
width: 5em;
}
.filter_popup li {
width: 60px;
}
.showselect_menu {
margin-bottom: 0.8em;
padding: 5px;
text-align: left;
border: 1px solid #CBD8E4;
background: #FEFEFE;
}
.headactions .popupmenu_popup a, .headactions .popupmenu_popup strong {
color: #666;
background: none;
white-space: nowrap;
}
.headactions .popupmenu_popup {
overflow: visible;
}
.hasdropdownbtn input {
float: left;
width: 129px;
}
.hasdropdownbtn .spmediuminput {
width: 115px;
}
.dropdownbtn {
float: left;
overflow: hidden;
text-indent: -9999px;
width: 20px;
height: 20px;
border-width: 1px 1px 1px 0;
border-style: solid;
border-color: #999 #CCC #CCC #999;
background: white image-url("common/newarow.gif") no-repeat 0 0;
}
.dropdownbtn:hover {
background-position: 0 -20px;
}
#themes {
position: absolute;
right: 0px;
bottom: -25px;
}
#themes li {
float: left;
padding-left: 5px;
}
#themes a {
float: left;
width: 8px;
height: 8px;
border: 1px solid #DDD;
background: #FFF;
line-height: 100px;
overflow: hidden;
}
#themes a:hover, #themes .current a {
border-color: #FFF;
}
#themes .current a {
margin-top: -1px;
border-width: 2px;
}
.headactions {
float: right;
line-height: 1em;
padding: 12px 0 0;
}
.headactions img {
vertical-align: middle;
cursor: pointer;
padding: 0 5px;
}
.headactions a {
margin-left: 4px;
}
.mainbox .headactions {
color: #999;
}
.mainbox .headactions strong {
font-weight: 700;
}
.msgfix {
overflow: hidden;
}
.side {
width: 170px;
}
.postauthor .avatar img {
background: image-url("common/midavt_shadow.gif") repeat-x scroll 0 100% white;
padding: 5px 5px 8px;
max-height: 160px;
max-width: 130px;
}
.sideinner .txt {
margin: 6px 0;
}
.side li.current a {
font-weight: 700;
color: #444;
text-decoration: none;
}
.with_side {
background: white url("/images/common/sidebg.gif") repeat-y 100% 0;
}
.with_side .main {
float: left;
overflow: hidden;
margin-left: -180px;
width: 100%;
}
.with_side .content {
margin-left: 180px;
width: auto;
}
.with_side .side {
float: right;
padding-bottom: 20px;
width: 180px;
}
.with_side .side h2 {
margin: 20px 25px 10px;
color: #999;
font-size: 14px;
}
.with_side .side a {
color: #09C;
text-decoration: underline;
}
.sideinner {
padding: 0 25px;
}
.sideinner .tabs {
margin: 5px 0;
}
.sideinner .tabs li {
line-height: 2em;
}
.numbg {
float: right;
text-align: center;
width: 35px;
height: 2em;
background: image-url("common/numbg.gif") no-repeat 0 50%;
color: #FFF;
font-weight: 700;
}
.special {
background: none;
}
.special .main {
float: right;
}
.special .side {
float: left;
}
.sidebox {
overflow: hidden;
margin: 5px 10px 10px;
}
.sidebox h4 {
margin-bottom: 4px;
color: #09C;
}
.fwin {
overflow-x: hidden;
margin: 0 auto;
text-align: left;
}
.t_l, .t_c, .t_r, .m_l, .m_r, .b_l, .b_c, .b_r {
overflow: hidden;
opacity: 0.9;
filter: alpha(opacity=90);
background: #CBD8E4;
}
.t_l, .t_r, .b_l, .b_r {
width: 8px;
height: 8px;
}
.t_c, .b_c {
height: 8px;
}
.m_l, .m_r {
width: 8px;
}
.m_c {
background: #F1F5FA;
}
.fcontent {
margin: 15px;
}
.float_ctrl {
margin-bottom: 15px;
height: 20px;
line-height: 20px;
}
.float_ctrl em {
float: left;
font-size: 14px;
font-weight: 700;
color: #09C;
}
.float_ctrl em a {
text-decoration: none;
}
.float_ctrl .needverify {
margin-left: 8px;
padding-left: 13px;
width: 45px;
height: 21px;
line-height: 21px;
background: image-url("common/re_unsolved.gif") no-repeat 0 0;
font-size: 12px;
color: #666;
font-weight: 400;
}
.float_ctrl .onerror, .float_ctrl .onright {
white-space: nowrap;
height: auto;
line-height: 140%;
color: #444;
font-size: 12px;
font-weight: 400;
}
.float_ctrl span {
float: right;
color: #999;
}
.float_ctrl span a, .float_ctrl strong {
float: left;
text-decoration: none;
margin-left: 8px;
font-weight: 400;
color: #444;
}
.float_ctrl span a:hover {
color: #999;
}
.float_close {
float: left;
width: 20px;
height: 20px;
overflow: hidden;
text-indent: -9999px;
background: image-url("common/newclose.gif") no-repeat 0 0;
}
.float_close:hover {
background-position: 0 -20px;
}
.floatwrap {
overflow: auto;
overflow-x: hidden;
margin-bottom: 10px;
height: 280px;
}
.fcontent li {
list-style: none;
}
.fcontent a {
color: #09C;
text-decoration: underline;
}
.fcontent .list {
margin: 0 auto;
width: 570px;
border-top: 3px solid #E6E7E1;
border-bottom: 3px solid #E6E7E1;
}
.fcontent .list th, .fcontent .list td {
padding: 3px !important;
height: auto;
border-bottom: 1px dashed #E6E7E1;
}
.fcontent .list .btns th, .fcontent .list .btns td {
border-bottom: none;
}
.fcontent .list th {
width: 150px;
background: none;
}
.postbox {
clear: both;
}
.moreconf {
margin-top: 10px;
}
.moreconf button, .moreconf a {
margin-right: 3px;
}
.loginform {
float: left;
margin-bottom: 10px;
*margin-bottom: -10px;
padding: 20px 0;
width: 280px;
border-right: 1px solid #D3E8F2;
}
.regsec {
margin-bottom: 10px;
}
.channelinfo .onerror, .channelinfo .onright {
background-position: 2px 0;
}
.loginform label {
clear: both;
overflow: hidden;
display: block;
margin: 0 0 10px;
line-height: 22px;
}
.loginform .txt {
width: 170px;
}
.loginform select {
width: 175px;
}
.fsubmit {
clear: both;
margin-top: 8px;
}
.fsubmit .submit {
margin-right: 8px;
}
.loginform label em, .fsubmit em {
float: left;
width: 60px;
}
.fsubmit .regpre {
*margin-top: 4px;
}
.nolabelform .txt {
width: 230px;
}
.clause {
overflow: auto;
margin-bottom: 10px;
width: 470px;
height: 240px;
}
.selectinput {
float: none;
margin: 0 0 10px;
width: 234px;
height: 20px;
background-color: #FFF;
border: 1px solid;
border-color: #999 #CCC #CCC #999;
}
.selectinput a {
float: left;
padding-right: 0;
width: 61px;
border: none;
}
.selectinput a:hover, .selectinput a:focus {
border: none;
}
.selectinput .txt {
float: left;
width: 160px;
border: none;
}
.selecttype {
float: none;
margin: 10px 0;
clear: both;
}
.selecttype a, .selecttype a:hover, .selecttype a:focus {
padding-right: 0;
width: 230px;
background-color: transparent;
border-color: #F1F5FA;
color: #999 !important;
}
.loginpsw label {
float: left;
padding-left: 4px;
width: 61px;
line-height: 150%;
}
.capslock {
background: image-url("common/capslock.gif") no-repeat 98% 50%;
}
.logininfo {
float: left;
overflow: visible;
margin: 87px 25px 10px 40px;
}
.logininfo h4 {
margin-bottom: 10px;
font-weight: 400;
font-size: 14px;
}
.multinfo {
margin-top: 53px;
}
.switchnav {
float: left;
white-space: nowrap;
overflow: hidden;
width: 480px;
}
.postboardlist {
overflow: hidden;
margin: 9px 0;
width: 597px;
border-width: 1px 0 1px 1px;
border-style: solid;
border-color: #CBD8E4;
background: #FFF;
}
.postboardlist li {
float: left;
overflow-x: hidden;
overflow-y: auto;
padding: 5px;
width: 188px;
height: 300px;
border-right: 1px solid #CBD8E4;
}
.postboardlist p {
height: 25px;
line-height: 25px;
}
.postboardlist a {
display: block;
white-space: nowrap;
overflow: hidden;
padding: 0 4px;
text-decoration: none;
color: #444;
}
.postboardlist a:hover {
text-decoration: none;
background-color: #F5F5F5;
}
.postboardlist .highlightlink {
color: #09C;
}
.hassubboard {
background: image-url("common/arrow_right.gif") right center no-repeat;
}
.pbl_selected a, .pbl_selected a:hover {
background-color: #09C;
color: #FFF !important;
font-weight: 700;
}
.nofloat {
height: auto !important;
height: 410px;
min-height: 410px;
background-color: #EBF2F8;
}
.nofloat .fcontent {
margin: 15px auto;
width: 600px;
}
.nofloat .loginform {
height: auto;
}
.nofloat .clause {
width: auto;
height: auto;
}
.fcontent .float_postinfo {
width: 568px;
}
.c_header {
overflow: hidden;
margin-bottom: 10px;
}
* html .c_header {
zoom: 1;
}
.c_header h2, .c_header h3 {
float: left;
padding-right: 15px;
background: #FFF;
font-size: 14px;
cursor: pointer;
}
.c_header h3 {
background: white image-url("common/arrow_down_big.gif") no-repeat 100% 5px;
color: #09C;
}
.searchfaq h3 {
background: none;
cursor: auto;
}
.c_header .noarrow {
background: none;
cursor: auto;
}
.c_header h3 a {
color: #09C;
}
.c_header h3 span {
font-size: 12px;
font-weight: 400;
color: #666;
}
.c_header h2 em, .c_header h3 em {
margin-left: 8px;
font-size: 12px;
color: #999;
font-weight: 400;
}
.c_header_action {
float: right;
}
.c_header .c_header_ctrlbtn {
display: none;
}
.c_header .c_header_ext {
display: block;
}
.closenode {
background: image-url("common/dashline.gif") repeat-x 0 10px;
}
.closenode h3 {
background-image: image-url("common/arrow_right_big.gif");
}
.closenode .c_header_ctrlbtn {
display: block;
background-color: #FFF;
color: #666;
cursor: pointer;
}
.closenode .c_header_ext {
display: none;
}
.itemtitle {
clear: both;
overflow: hidden;
margin-bottom: 10px;
line-height: 23px;
}
.itemtitle h1 {
float: left;
margin: 0 20px 0 0;
}
.itemtitle ul {
float: left;
}
.itemtitle li {
float: left;
margin-right: 5px;
}
.itemtitle li.pipe {
margin-left: 0;
}
.itemtitle ul a {
display: block;
overflow: hidden;
height: 23px;
cursor: pointer;
}
* html .itemtitle ul a {
float: left;
}
.itemtitle ul a span {
display: block;
padding: 0 7px;
*padding: 1px 7px 0;
*line-height: 22px;
}
.itemtitle ul a:hover {
background: #f5f5f5 image-url("common/btn_block.gif") no-repeat 0 -46px;
text-decoration: none;
}
.itemtitle ul a:hover span {
background: image-url("common/btn_block.gif") no-repeat 100% -69px;
}
.itemtitle ul a.dropmenu {
padding-right: 0;
background-position: 0 -161px;
}
.itemtitle ul a.dropmenu span {
padding-right: 12px;
background: image-url("common/btn_block.gif") no-repeat 100% -138px;
}
.itemtitle ul a.dropmenu:hover {
background-position: 0 -46px;
}
.itemtitle ul a.dropmenu:hover span {
background-position: 100% -115px;
}
.itemtitle ul .current a, .itemtitle ul .current a:hover, .itemtitle ul .current a.dropmenu:hover {
background: #0099cc image-url("common/btn_block.gif") no-repeat 0 0;
}
.itemtitle ul .current a span, .itemtitle ul .current a:hover span {
background: image-url("common/btn_block.gif") no-repeat 100% -23px;
color: #FFF;
}
.itemtitle ul .current a.dropmenu span, .itemtitle ul .current a.dropmenu:hover span {
background-position: 100% -92px;
}
.float_postinfo em {
float: left;
margin-right: 5px;
padding-left: 3px;
height: 20px;
border: 1px solid;
border-color: #999 #CCC #CCC #999;
background-color: #FFF;
cursor: pointer;
}
.float_postinfo em img {
margin-top: 2px;
}
.float_postinfo input {
float: left;
}
.float_postinfo #subject {
width: 358px;
}
.float_postinfo .float_typeid {
display: inline;
margin-right: 0;
margin-left: 6px;
}
.viewpoint {
margin: 9px 0;
}
.colorbox input {
margin: 2px;
padding: 0px;
float: left;
cursor: pointer;
width: 12px;
height: 12px;
border: 0;
}
.smilieslist {
padding: 10px;
border: 1px solid #CBD8E4;
background: #FEFEFE;
}
.smilieslist td {
padding: 8px;
border: none;
cursor: pointer;
}
.smilieslist_page {
*float: left;
text-align: right;
}
.smilieslist_page a {
margin-right: 5px;
color: #09C;
text-decoration: underline;
}
.pags_act {
float: left;
}
.smilies_preview {
margin-top: 5px;
padding: 8px;
background: #FFF;
border: 1px solid #CBD8E4;
}
.smiliesgroup {
height: 33px;
*height: 34px;
overflow: hidden;
width: expression(this.parentNode.offsetWidth);
}
.smiliesgroup ul, .imguptype {
margin: 6px 0;
padding: 0 0 26px 8px;
border-bottom: 1px solid #D3E8F2;
}
.smiliesgroup li, .imguptype li {
display: inline;
}
* html .smiliesgroup li, * html .imguptype li {
line-height: 18px;
}
.smiliesgroup li a, .imguptype li a {
float: left;
margin: 2px 6px 0 0;
padding: 2px 10px;
height: 19px;
border: 1px solid #D3E8F2;
color: #09C;
text-decoration: none;
}
.smiliesgroup li a:focus, .imguptype li a:focus {
outline: none;
}
.smiliesgroup li a.current, .imguptype li a.current {
border-bottom-color: #FEFEFE;
font-weight: 700;
color: #444;
}
.alert_win {
margin: 0;
width: 350px;
}
.alert_win .float_ctrl {
margin-bottom: 0;
padding: 8px;
}
.alert_win .shadowline {
margin: 0;
*margin: -8px 0;
}
.alert_win .postbox {
*margin-top: -15px;
padding: 15px;
}
.alert_right, .alert_error, .alert_info {
padding: 6px 0 6px 58px;
line-height: 160%;
background: image-url("common/right_big.gif") no-repeat 8px 50%;
font-size: 14px;
}
.alert_error {
background-image: image-url("common/error_big.gif");
}
.alert_info {
background-image: image-url("common/info_big.gif");
}
.alert_btnleft {
margin-top: 8px;
}
.alert_btn {
margin-top: 20px;
text-align: center;
}
.alert_act {
margin-top: 20px;
padding-left: 58px;
}
.pc_l, .pc_c, .pc_inner, .pc_r {
width: 29px;
height: 56px;
line-height: 56px;
background: image-url("common/popupcredit_bg.gif") no-repeat 0 0;
}
.pc_c {
width: 200px;
background-position: 0 -56px;
background-repeat: repeat-x;
}
.pc_inner {
white-space: nowrap;
text-align: center;
width: auto;
background-position: 50% -112px;
}
.pc_inner span {
margin-right: 15px;
color: #FFEA97;
font-size: 14px;
font-weight: 700;
}
* html .pc_inner span {
display: inline-block;
}
.pc_inner span a {
color: #FFEA97;
text-decoration: underline;
}
.pc_inner span em {
color: #FFF;
font-size: 18px;
font-weight: 400;
}
.pc_inner span em.desc {
color: #930;
}
.pc_btn img {
opacity: 0.5;
}
.pc_btn:hover img {
opacity: 1;
}
.pc_r {
background-position: -30px 0;
}
.optionbar {
float: left;
overflow: hidden;
margin: 3px 4px 0 -6px;
background: #0099cc image-url("common/header.gif") repeat-x;
height: 14px;
}
.deloption {
float: left;
margin: 4px;
width: 12px;
height: 12px;
background: image-url("common/close.gif") no-repeat 0 0;
overflow: hidden;
text-indent: -9999px;
}
.deloption:hover {
background-position: 0 -12px;
}
.color_menu {
overflow: hidden;
width: 63px;
}
.color_menu a {
overflow: hidden;
float: left;
width: 20px;
height: 20px;
}
.chosemagic {
margin-bottom: 9px;
width: 220px;
}
.topicadminhigh {
height: 200px;
}
.topicadminhigh .tah_body {
margin: 5px 0 15px;
}
.topicadminhigh .tah_body select {
width: 217px;
}
.topicadminlow {
height: 50px;
}
.topicadminlow table {
width: 100%;
}
.topicadminlow td {
padding: 0 5px;
}
.topicadminlow .txt {
width: 100px;
}
.topicadminlow .wide .txt {
width: 50px;
}
.topicadminlog h4 {
font-weight: 400;
}
.topicadminlog .dropdownbtn {
border-left-width: 1px;
}
.topicadminlog .txtarea {
margin: 5px 0;
width: 212px;
height: 40px;
}
body {
font-size: 12px;
color: #555;
font-family: Arial,Tahoma,Verdana,Serif;
padding: 0;
height: 100%;
margin: 0;
background: #ebebeb;
}
table, tr, td {
font-family: Tahoma,Verdana,Georgia,Simsun,Serif;
font-size: 12px;
background-color: inherit;
color: #666;
}
em, cite, strong, th {
font-style: normal;
font-weight: normal;
}
img {
border-width: 0px;
outline: none;
}
img.inline {
vertical-align: middle;
outline: none;
}
h1, h2, h3, h4, h5, h6 {
font-size: 1em;
}
img.inline {
vertical-align: middle;
outline: none;
}
#topbar {
width: 100%;
height: 34px;
background: image-url("common/tbg.gif") repeat-x;
position: relative;
}
/*Created By Losses @5.13*/
#top {
width:1000px;
margin:0 auto;
}
#user {
float: left;
height: 32px;
line-height:33px;
}
#user a {
color: #D0D0D0;
padding: 0 4px;
}
#search {
float:right;
line-height:30px;
margin-right:15px;
}
#searchform {
background-color: inherit;
width: 190px;
height: 25px;
}
#searchform #srchtxt {
margin-right: 3px;
padding: 4px 7px 1px 5px;
background: white image-url("common/form-field-bg.gif") no-repeat;
width: 120px;
color: #999;
height: 17px;
border: 0;
}
#searchform #searchsubmit {
background: image-url("common/t_go.gif") no-repeat;
width: 29px;
text-indent: -999%;
line-height: 1px;
height: 23px;
cursor: pointer;
margin-top: 2px;
border: 0;
}
.searchsub {
background: image-url("common/t_go.gif");
width: 29px;
height: 23px;
margin: 0px;
border: 0px;
padding: 0px;
font-size: 0.1em;
}
#headerbg {
width: 100%;
height: 174px;
background: image-url("common/bg.gif") repeat-x;
}
.header {
width: 1024px;
height: 116px;
margin: auto;
}
#actions {
width: 1024px;
height: 53px;
margin: 0 auto;
background: image-url("common/bg_areabar.gif") no-repeat center bottom;
clear: both;
color: #999;
}
#body {
width: 1024px;
min-height: 450px;
margin: auto;
background: #ebebeb image-url("common/cbg.gif") repeat-y;
clear: both;
}
.wrap {
width: 95% !important;
}
#bottom {
width: 1024px;
font-size: 11px;
color: #717275;
background: #ebebeb image-url("common/bg_bottom.gif") no-repeat;
clear: both;
margin: auto;
}
#ftop {
width: 80px;
height: 25px;
text-align: center;
}
#ftop a {
text-decoration: none;
color: #406a78;
background-color: inherit;
font-size: 11px;
}
#footlink {
width: 900px;
margin: 20px auto;
height: 60px;
clear: both;
text-align: left;
}
.fmenu {
width: 430px;
height: 16px;
margin: 10px;
list-style: none;
clear: both;
}
.fmenu li {
width: 65px;
height: 16px;
float: left;
}
.fmenu li a {
text-decoration: none;
color: #a6a6a6;
background-color: inherit;
}
.fmenu li a:hover {
text-decoration: none;
color: #bdbdbd;
background-color: inherit;
}
.bhoge {
float: right;
width: 110px;
height: 60px;
background: image-url("common/b_hoge.gif") no-repeat 30% 80%;
text-align: left;
line-height: 23px;
}
.bw3c {
float: right;
width: 110px;
height: 60px;
background: image-url("common/b_w3c.gif") no-repeat 30% 80%;
text-align: left;
line-height: 23px;
}
.bexa {
float: right;
width: 120px;
height: 60px;
background: image-url("common/b_exa.gif") no-repeat 40% 80%;
text-align: left;
line-height: 23px;
}
.postattachlist {
width: 600px !important;
}
.clearbar {
overflow: hidden;
height: 10px;
clear: both;
}
.muban_price {
padding: 10px 15px;
border: 1px solid #FADC80;
background: #FFFBDB;
color: #965432;
line-height: 24px !important;
}
strong.price {
color: #FF6600;
font-size: 18px;
}
.minifont {
color: #A2A7AB;
font-family: arial,tahoma,verdana;
font-size: 11px;
}
.nums {
color: #999999;
font-size: 10px;
text-align: right;
width: 150px;
}
.main h4 {
font-size: 14px;
height: 38px;
line-height: 38px;
padding-left: 5px;
color: #000;
}
.main h1 {
margin-bottom: 10px;
font-size: 16px;
font-weight: 400;
}
.main .list h3 {
padding-left: 6px;
color: #666;
line-height: 35px;
}
.itemtitle .l {
float: left;
}
.itemtitle .r {
float: right;
}
.itemtitle .r li {
float: left;
width: 50px;
list-style: none;
text-align: left;
padding-left: 17px;
}
.itemtitle .r li.tposts {
background: image-url("common/boy.gif") no-repeat left center;
}
.itemtitle .r li.pdata {
background: image-url("common/girl.gif") no-repeat left center;
}
.itemtitle .r li.tmembers {
background: image-url("common/baom.gif") no-repeat left center;
}
.dotbar {
width: 574px;
height: 10px;
text-align: center;
margin: 0 auto;
clear: both;
background: image-url("common/dot1.gif") repeat-x bottom;
}
.wbar {
width: 560px;
color: #806C80;
height: 33px;
margin: 0 auto;
line-height: 32px;
text-align: center;
clear: both;
background: image-url("common/dot1.gif") repeat-x bottom;
}
.wbar .l {
float: left;
padding-left: 12px;
}
.wbar .r {
float: right;
width: 220px;
}
.wbar li {
float: left;
width: 50px;
padding-left: 17px;
list-style: none;
text-align: left;
}
.wbar .newthread {
background: image-url("common/newthread.gif") no-repeat left center;
width: 240px;
}
.news_box {
clear: both;
position: relative;
width: 560px;
margin: 0 auto;
}
.news_box ul {
padding: 0;
margin: 0;
list-style: none;
}
.news_box li {
height: 30px;
line-height: 30px;
border-bottom: 1px dashed #E5E5E5;
clear: both;
overflow: hidden;
}
.news_box li.bai {
background: #FFF;
}
.news_box li .icon {
width: 30px;
height: 30px;
background: image-url("common/slisticon.gif") no-repeat center center;
float: left;
}
.img_box {
clear: both;
position: relative;
width: 560px;
margin: 0 auto;
border-top: 1px solid #EBEBEB;
background: #F4F4F4;
height: 110px;
}
.img_box ul {
padding: 8px 0 0 4px;
margin: 0;
overflow: hidden;
}
.img_box li {
width: 168px;
height: 95px;
background: image-url("common/mob_img_bg.gif") repeat-x bottom;
float: left;
margin: 0 7px;
}
.img_box img {
width: 166px;
height: 88px;
border: 1px solid #EBEBEB;
background: #333;
display: block;
}
.img_box a {
position: relative;
display: block;
}
.img_box span {
width: 43px;
height: 43px;
position: absolute;
right: 0;
top: 0;
display: block;
background: image-url("common/hot/free.gif") no-repeat right top;
}
.img_box span.free {
background: image-url("common/hot/free.gif") no-repeat right top;
}
.img_box span.unfree {
background: image-url("common/hot/unfree.gif") no-repeat right top;
}
.img_box span.yugao {
background: image-url("common/hot/yugao.gif") no-repeat right top;
}
.taolun_box {
clear: both;
position: relative;
width: 560px;
margin: 0 auto;
}
.list th {
padding-left: 55px !important;
background-image: image-url("common/forum.gif");
background-position: 13px 10px;
}
.list th.new {
background-image: image-url("common/forum_new.gif");
}
.side h4 {
height: 32px;
background: url(/images/common/side_title_bg.png) repeat-x;
line-height: 32px;
border: 1px solid #D6E3E9;
padding-left: 10px;
}
.sbox {
padding: 8px;
overflow: hidden;
}
.login_box, .event_box, .caifu_box {
padding: 8px;
background: #FFF;
border: 1px solid #F2F2F2;
overflow: hidden;
clear: both;
}
.login_ava {
width: 80px;
height: 58px;
background: image-url("common/avatar_bg.gif") no-repeat;
float: left;
}
.login_ava img {
padding: 5px;
}
.login_text {
width: 140px;
float: left;
}
.login_join {
width: 60px;
float: right;
}
.announcement {
height: 30px;
background: url(/images/common/side_title_bg.png) repeat-x 0 -34px;
line-height: 30px;
border: 1px solid #E7E6C8;
padding-left: 20px;
}
.announcement .laba {
padding-left: 22px;
background: url(/images/common/announcement.png) no-repeat left center;
}
.announcement .laba a {
color: #8B0000 !important;
text-decoration: none !important;
}
.event_box {
height: 230px;
overflow: hidden;
}
.event_box ul {
padding: 0;
margin: 0;
}
.event_box li {
float: left;
width: 142px;
height: 118px;
text-align: center;
}
.event_box li img {
width: 135px;
height: 110px;
border: 1px solid #F2F2F2;
}
.caifu_box .info {
border: 1px solid #E7E6C8;
background: #FCFBE7;
padding: 2px 4px;
clear: both;
}
.caifu_box .paihang {
clear: both;
}
.caifu_box ul {
padding: 0;
margin: 0;
}
.caifu_box li {
clear: both;
height: 64px;
border-bottom: 1px dashed #e5e5e5;
}
.caifu_box li p {
clear: both;
overflow: hidden;
height: 6px;
padding: 0;
margin: 0;
}
.caifu_box li div {
height: 52px;
float: left;
color: #999999;
}
.caifu_box li span {
color: #666;
}
.caifu_box li .caifu_num {
width: 42px;
background: image-url("common/paihang_bg.gif") no-repeat center 22px;
text-align: center;
line-height: 54px;
font-size: 10px;
color: #FFF;
}
.caifu_box li .caifu_ava {
width: 60px;
}
.caifu_box li .caifu_ava img {
border: 2px solid #E1E9EF;
}
.caifu_box li .caifu_point {
line-height: 20px;
overflow: hidden;
width: 180px;
}
.caifu_box li.no1 .caifu_num {
background: image-url("common/paihang_bg.gif") no-repeat center -82px;
font-size: 14px;
font-weight: bold;
}
.caifu_box li.no1 span {
color: #FF8176;
font-size: 14px;
}
.caifu_box li.no2 .caifu_num {
background: image-url("common/paihang_bg.gif") no-repeat center -27px;
font-size: 12px;
font-weight: bold;
}
.caifu_box li.no2 span {
color: #80B94B;
}
.threadv {
background: image-url("common/slisticon.gif") no-repeat 5px center;
padding-left: 30px;
}
.photoshow {
width: 574px;
height: 174px;
background: image-url("common/photo_bg.gif");
margin: 0 auto;
}
#slideshow {
list-style: none;
color: #fff;
}
#slideshow span {
display: none;
}
#psbar {
overflow: hidden;
height: 7px;
clear: both;
}
#slidephoto {
width: 560px;
margin: 0;
margin: 0 auto;
display: none;
}
#slidephoto * {
margin: 0;
padding: 0;
}
#s_fullsize {
position: relative;
width: 560px;
height: 160px;
padding: 0;
background: black;
}
#s_information {
position: absolute;
bottom: 0;
width: 560px;
height: 0;
background: #000;
color: #fff;
overflow: hidden;
z-index: 200;
opacity: .7;
filter: alpha(opacity=70);
}
#s_information h3 {
padding: 4px 8px 3px;
font-size: 12px;
color: #CCC;
}
#s_information p {
padding: 0 8px 8px;
font-size: 12px;
color: #7b7b7b;
}
#s_image {
width: 560px;
}
#s_image img {
position: absolute;
z-index: 25;
width: auto;
}
.imgnav {
position: absolute;
width: 25%;
height: 160px;
cursor: pointer;
z-index: 150;
}
#imgprev {
left: 0;
background: image-url("common/photo/s_left.gif") left center no-repeat;
}
#imgnext {
right: 0;
background: image-url("common/photo/s_right.gif") right center no-repeat;
}
#imglink {
position: absolute;
height: 160px;
width: 100%;
z-index: 100;
opacity: .4;
filter: alpha(opacity=40);
}
.linkhover {
background: url(../../images/ahmengv2/link.gif) center center no-repeat;
}
#slideleft {
float: left;
width: 20px;
height: 81px;
background: image-url("common/photo/scroll-left.gif") center center no-repeat;
background-color: #222222;
}
#slideleft:hover {
background-color: #333333;
}
#slideright {
float: right;
width: 20px;
height: 81px;
background: #222222 image-url("common/photo/scroll-right.gif") center center no-repeat;
}
#slideright:hover {
background-color: #333333;
}
#slidearea {
float: left;
position: relative;
width: 540px;
margin-left: 3px;
height: 81px;
overflow: hidden;
}
#slider {
position: absolute;
left: 0;
height: 81px;
}
#slider img {
cursor: pointer;
border: 1px solid #666;
padding: 2px;
}
#ad_headerbanner {
position: absolute;
right: 30px;
top: 60px;
}
.ad_text {
margin: 0 auto 5px;
padding: 10px 0;
width: 95%;
background: #FFF;
}
*{
-webkit-transition: all 0.2s ease-in-out;
-moz-transition:all 0.2s ease-in-out;
-o-transition:all 0.2s ease-in-out;
transition:all 0.2s ease-in-out;
}
body{
font: 12px/18px Microsoft Yahei;
}
input{
outline:none;
}
input[type="submit"]{
width:70px;
height:35px;
background:#c2ccd6;
color:#052745;
border:0px;
border-radius:5px;
box-shadow:0 0 0px #6691b5 inset;
}
input[type="submit"]:hover{
background:#87aac9;
}
input[type="submit"]:active{
background:#5785a7;
box-shadow:0 0 3px #041c35 inset;
}
#search_submit{
width:50px;
height:23px;
margin:5px 4px 5px 4px;
background:rgba(255,255,255,0.4);
color:#D0D0D0;
box-shadow:0 0 8px #464646 inset;
}
#search_submit:active{
box-shadow:0 0 10px #272727 inset;
}
.topanel a {
color:#D0D0D0;
}
#keyword {
height:20px;
border:0px;
border-radius:3px;
background:rgba(255,255,255,0.9);
font-size:9px;
margin-top:1px;
}
......@@ -55,6 +55,7 @@ FOOTER .main{
#bar{
float:right;
width:200px;
overflow:auto;
}
.online{
font-size:13px;
......
......@@ -2,6 +2,7 @@
// markItUp! Universal MarkUp Engine, JQuery plugin
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp * {
margin:0px; padding:0px;
outline:none;
......@@ -13,15 +14,22 @@
}
.markItUp {
width:700px;
margin:5px 0 5px 0;
margin:5px 0 5px 0;
padding:5px;
box-shadow:0 0 5px #8e8e8e;
border-radius:5px;
}
.markItUpHeader ul {
border-bottom:1px dashed #a7a7a7;
height:20px;
}
.markItUpContainer {
.markItUpContainer {
padding:5px 5px 2px 5px;
font:11px Verdana, Arial, Helvetica, sans-serif;
}
.markItUpEditor {
font:12px 'Courier New', Courier, monospace;
padding:5px;
width:690px;
border:0px;
height:320px;
clear:both;
line-height:18px;
......@@ -29,22 +37,27 @@
}
.markItUpPreviewFrame {
overflow:auto;
background-color:#FFF;
background-color:#FFFFFF;
border:1px solid #3C769D;
width:99.9%;
height:300px;
margin:5px 0;
}
.markItUpFooter {
width:100%;
cursor:n-resize;
}
.markItUpResizeHandle {
overflow:hidden;
width:22px; height:5px;
margin-left:auto;
margin-right:auto;
background-image:url(images/handle.png);
background-image:image-url("markitup/handle.png");
cursor:n-resize;
}
.markItUpContainer textarea{
width:100%;
}
/***************************************************************************************/
/* first row of buttons */
.markItUpHeader ul li {
......@@ -52,31 +65,19 @@
float:left;
position:relative;
}
.markItUpHeader ul li ul{
display:none;
}
.markItUpHeader ul li:hover > ul{
display:block;
}
.markItUpHeader ul .markItUpDropMenu {
background:transparent url(images/menu.png) no-repeat 115% 50%;
background:transparent image-url("markitup/menu.png") no-repeat 115% 50%;
margin-right:5px;
}
.markItUpHeader ul .markItUpDropMenu li {
margin-right:0px;
}
/* next rows of buttons */
.markItUpHeader ul ul {
display:none;
position:absolute;
top:18px; left:0px;
background:#FFF;
border:1px solid #000;
}
.markItUpHeader ul ul li {
float:none;
border-bottom:1px solid #000;
}
.markItUpHeader ul ul .markItUpDropMenu {
background:#FFF url(images/submenu.png) no-repeat 100% 50%;
}
.markItUpHeader ul .markItUpSeparator {
margin:0 10px;
width:1px;
......@@ -89,9 +90,25 @@
margin:0px;
}
/* next rows of buttons */
.markItUpHeader ul ul {
display:none;
position:absolute;
top:18px; left:0px;
background:#F5F5F5;
border:1px solid #3C769D;
height:inherit;
}
.markItUpHeader ul ul li {
float:none;
border-bottom:1px solid #3C769D;
}
.markItUpHeader ul ul .markItUpDropMenu {
background:#F5F5F5 image-url("markitup/submenu.png") no-repeat 100% 50%;
}
/* next rows of buttons */
.markItUpHeader ul ul ul {
position:absolute;
top:-1px; left:150px;
top:-1px; left:150px;
}
.markItUpHeader ul ul ul li {
float:none;
......@@ -114,5 +131,5 @@
}
.markItUpHeader ul ul a:hover {
color:#FFF;
background-color:#000;
}
background-color:#3C769D;
}
\ No newline at end of file
......@@ -3,45 +3,45 @@
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp .markItUpButton1 a {
background-image:url(images/bold.png);
background-image:image-url("markitup/bbcode/bold.png");
}
.markItUp .markItUpButton2 a {
background-image:url(images/italic.png);
background-image:image-url("markitup/bbcode/italic.png");
}
.markItUp .markItUpButton3 a {
background-image:url(images/underline.png);
background-image:image-url("markitup/bbcode/underline.png");
}
.markItUp .markItUpButton4 a {
background-image:url(images/picture.png);
background-image:image-url("markitup/bbcode/picture.png");
}
.markItUp .markItUpButton5 a {
background-image:url(images/link.png);
background-image:image-url("markitup/bbcode/link.png");
}
.markItUp .markItUpButton6 a {
background-image:url(images/fonts.png);
background-image:image-url("markitup/bbcode/fonts.png");
}
.markItUp .markItUpButton7 a {
background-image:url(images/list-bullet.png);
background-image:image-url("markitup/bbcode/list-bullet.png");
}
.markItUp .markItUpButton8 a {
background-image:url(images/list-numeric.png);
background-image:image-url("markitup/bbcode/list-numeric.png");
}
.markItUp .markItUpButton9 a {
background-image:url(images/list-item.png);
background-image:image-url("markitup/bbcode/list-item.png");
}
.markItUp .markItUpButton10 a {
background-image:url(images/quotes.png);
background-image:image-url("markitup/bbcode/quotes.png");
}
.markItUp .markItUpButton11 a {
background-image:url(images/code.png);
background-image:image-url("markitup/bbcode/code.png");
}
.markItUp .clean a {
background-image:url(images/clean.png);
background-image:image-url("markitup/bbcode/clean.png");
}
.markItUp .preview a {
background-image:url(images/preview.png);
background-image:image-url("markitup/bbcode/preview.png");
}
\ No newline at end of file
#modlayer{position:absolute;right:0;padding:12px;width:275px;background-color:#FFF;border:4px solid #7FCAE2;}#modlayer a{color:#09C;}#modlayer label{float:right;margin-top:5px;}#modcount{padding:0 2px;font-size:24px;font-weight:400;color:#F60;}#modlayer .collapse{position:absolute;right:0;top:5px;padding:0 5px;}#modlayer.collapsed{margin-right:-23px;padding:0;width:27px;height:35px;border:none;background:#F60;overflow:hidden;}#modlayer.collapsed #modcount{display:block;position:absolute;left:0;top:0;z-index:999;width:27px;height:35px;border-color:#09C;background-color:#09C;color:#FFF;font-size:12px;text-align:center;line-height:35px;cursor:pointer;}.listtopicadmin{margin:10px 0;border-top:1px solid #C5DAEB;}.listtopicadmin li{*overflow:hidden;*margin-bottom:-2px;height:28px;line-height:18px;border-top:1px solid #FFF;border-bottom:1px solid #C5DAEB;zoom:1;}.listtopicadmin .currentopt{height:auto;}.detailopt{visibility:hidden;overflow:hidden;white-space:nowrap;}.currentopt .detailopt{visibility:visible;}.detailopt p .txt{width:100px;}.detailopt span .txt{width:18px;border-right:none;}.detailopt a{float:left;text-indent:-999px;margin-right:3px;width:22px;height:20px;text-align:center;}.detailopt_bold,.detailopt_italic,.detailopt_underline{border:1px solid #F1F5FA;outline:none;}.detailopt .current{border:1px solid #999;background-color:#FFF;}.listtopicadmin table{width:100%;}.listtopicadmin td{vertical-align:top;}.listtopicadmin .labeltxt{display:block;cursor:pointer;width:100%;background:url(/images/common/arrow_down.gif) no-repeat 100% 8px;}.currentopt .labeltxt{float:left;cursor:default;width:45px;background:none;color:#09C;}.listtopicadmin .checkbox{margin-top:3px;*margin-top:-2px;}.listtopicadmin img{vertical-align:middle;}.tah_fixiesel{overflow:hidden;white-space:nowrap;width:217px;*border-right:1px solid #CCC;}.tah_fixiesel select{width:160px;*width:expression(this.offsetWidth > 180 ? 'auto':'180');}
\ No newline at end of file
// Place all the styles related to the moderators controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
// Place all the styles related to the cards controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
//= require markitup
//= require markitup.set
\ No newline at end of file
......@@ -17,13 +17,11 @@ class BoardsController < ApplicationController
# GET /boards/1
# GET /boards/1.xml
def show
@board = Board.find(params[:id])
@actions = [{Board.human_attribute_name(:index) => boards_path}, @board]
@actions = [@board]
order = params[:order].blank? ? 'displayorder DESC, updated_at DESC' : params[:order]
order = params[:order].blank? ? 'displayorder DESC, id DESC' : params[:order]
@topics = @board.topics.page(params[:page]).order(order)
#@topics = @board.topics.all(:offset => 20*@page-20, :limit => 20, :order => order)
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => params[:page] && !params[:page].empty? ? @topics : @board}
......
class ModeratorsController < ApplicationController
# GET /moderators
# GET /moderators.json
def index
@moderators = Moderator.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @moderators }
end
end
# GET /moderators/1
# GET /moderators/1.json
def show
@moderator = Moderator.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.json { render json: @moderator }
end
end
# GET /moderators/new
# GET /moderators/new.json
def new
@moderator = Moderator.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @moderator }
end
end
# GET /moderators/1/edit
def edit
@moderator = Moderator.find(params[:id])
end
# POST /moderators
# POST /moderators.json
def create
@moderator = Moderator.new(params[:moderator])
respond_to do |format|
if @moderator.save
format.html { redirect_to @moderator, notice: 'Moderator was successfully created.' }
format.json { render json: @moderator, status: :created, location: @moderator }
else
format.html { render action: "new" }
format.json { render json: @moderator.errors, status: :unprocessable_entity }
end
end
end
# PUT /moderators/1
# PUT /moderators/1.json
def update
@moderator = Moderator.find(params[:id])
respond_to do |format|
if @moderator.update_attributes(params[:moderator])
format.html { redirect_to @moderator, notice: 'Moderator was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }
format.json { render json: @moderator.errors, status: :unprocessable_entity }
end
end
end
# DELETE /moderators/1
# DELETE /moderators/1.json
def destroy
@moderator = Moderator.find(params[:id])
@moderator.destroy
respond_to do |format|
format.html { redirect_to moderators_url }
format.json { head :no_content }
end
end
end
module ModeratorsHelper
end
......@@ -4,6 +4,7 @@ class Board < ActiveRecord::Base
has_many :subboards, :foreign_key => :superboard_id, :class_name => "Board"
has_many :topics, :foreign_key => :category_id
has_many :posts, :through =>:topics
has_and_belongs_to_many :moderators, :class_name => "User", :join_table => :moderators
default_scope order(:displayorder)
def to_s
......
class Moderator < ActiveRecord::Base
belongs_to :user
belongs_to :board
end
......@@ -6,10 +6,10 @@ class Post < ActiveRecord::Base
super || User::Guest
end
def self.today
Post.where(['created_at > ?', Date.today ])
Post.where(['created_at > ?', Time.now.beginning_of_day ])
end
def self.yesterday
Post.where(['created_at < ? and created_at > ?', Date.today, Date.today - 1 ])
Post.where(['created_at < ? and created_at > ?', Time.now.beginning_of_day, Time.now.yesterday.beginning_of_day ])
end
def to_s
"#{topic}, <a href=/topics/#{topic.id}#post#{id}>#{displayorder}#</a>".html_safe
......
......@@ -3,7 +3,7 @@ class Topic < ActiveRecord::Base
#belongs_to :type
belongs_to :board, :foreign_key => :category_id
has_many :posts
default_scope where(:deleted => false).order(:id).reverse_order
default_scope where(:deleted => false)
self.per_page = 20
alias category board
......
......@@ -4,15 +4,8 @@
<div id="boardheader" class="s_clear">
<h1 style=""><% @board.name %></h1>
<p class="boardstats">[ <strong><%= @board.topics.size %></strong> 主题 / <%= @board.posts.size %> 帖子]</p>
<div class="boardaction">
<!--<div class="right">
<a href="my.php?item=attention&amp;type=board&amp;action=add&amp;fid=68" id="ajax_attention" class="attention" onclick="ajaxmenu(this);doane(event);">关注</a>
<a href="my.php?item=favorites&amp;fid=68" id="ajax_favorite" onclick="ajaxmenu(this);doane(event);">收藏</a>
<a href="rss.php?fid=68&amp;auth=80baas4p%2BS%2FNnT%2BlQanrr%2Blzuk13j9xswULkRK6FhUrlnnrhZxiBsSc%2FwKk" target="_blank" class="feed">RSS</a></div>-->
</div>
<p class="channelinfo"><%= @board.notice %></p><p id="modedby">
版主: *空缺中*</p>
版主: <%=render @board.moderators %> </p>
</div>
<%= image_tag @board.banner %>
......@@ -105,12 +98,10 @@
<!--快速发帖-->
<%= form_tag :controller => :topics do %>
<p>
<div class="field" id="topic_name_field">
<%=t 'topic.title' %><%= text_field_tag "topic[name]" %>
</p>
<p>
</div>
<%= render 'topics/editor_lite' %>
</p>
<%= hidden_field_tag "topic[category_id]", @board.id%>
<%= hidden_field_tag "topic[category_type]", :board%>
<%= submit_tag t("topic.submit") %>
......
<%= form_tag :controller => :topics, :html => {id: search} do %>
<div id="search">
<%= form_tag topics_path do %>
<%= text_field_tag "keyword" %>
<%= submit_tag t("search.search") %>
<%= submit_tag t("search.search"), id: "search_submit" %>
<%= link_to t("search.advanced") %>
<% end %>
</div>
\ No newline at end of file
......@@ -10,12 +10,15 @@
<%= javascript_include_tag 'common' %>
<%= javascript_include_tag params[:controller] %>
<%= csrf_meta_tags %>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<!--TODO:首部待规范化-->
<div id="topbar" class="topanel">
<%= render 'entries/user' %>
<%= render 'entries/search' %>
<div id="top">
<%= render 'entries/user' %>
<%= render 'entries/search' %>
</div>
</div>
<header id="headerbg">
<div class="header">
......
<%= form_for(@moderator) do |f| %>
<% if @moderator.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@moderator.errors.count, "error") %> prohibited this moderator from being saved:</h2>
<ul>
<% @moderator.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :user %><br />
<%= f.text_field :user %>
</div>
<div class="field">
<%= f.label :board %><br />
<%= f.text_field :board %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
<h1>Editing moderator</h1>
<%= render 'form' %>
<%= link_to 'Show', @moderator %> |
<%= link_to 'Back', moderators_path %>
<h1>Listing moderators</h1>
<table>
<tr>
<th>User</th>
<th>Board</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @moderators.each do |moderator| %>
<tr>
<td><%= moderator.user %></td>
<td><%= moderator.board %></td>
<td><%= link_to 'Show', moderator %></td>
<td><%= link_to 'Edit', edit_moderator_path(moderator) %></td>
<td><%= link_to 'Destroy', moderator, confirm: 'Are you sure?', method: :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Moderator', new_moderator_path %>
<h1>New moderator</h1>
<%= render 'form' %>
<%= link_to 'Back', moderators_path %>
<p id="notice"><%= notice %></p>
<p>
<b>User:</b>
<%= @moderator.user %>
</p>
<p>
<b>Board:</b>
<%= @moderator.board %>
</p>
<%= link_to 'Edit', edit_moderator_path(@moderator) %> |
<%= link_to 'Back', moderators_path %>
......@@ -2,14 +2,6 @@
<% content ||= nil %>
<!-- 文本框name的值,看不明白的话不用更改,指定文本框name的时候直接调用name即可 -->
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<%= javascript_include_tag 'markitup/jquery.markitup.js' %>
<!-- markItUp! toolbar settings -->
<%= javascript_include_tag 'markitup/sets/bbcode/set.js' %>
<!-- markItUp! skin -->
<%= stylesheet_link_tag 'markitup/skins/markitup/style.css' %>
<!-- markItUp! toolbar skin -->
<%= stylesheet_link_tag "markitup/sets/bbcode/style.css" %>
<div class="editor_lite">
<%= text_area_tag name, content, :id => :fastpostmessage, :rows => 5, :cols => 80, :tabindex => 4, :class => :txtarea %>
<!--id和class直接对应于HTML码,从DZ的主题上遗留下来的,应该修改-->
......
<%= link_to user.name, user %>
MycardServerHttp::Application.routes.draw do
resources :moderators
resources :servers
resources :libraries
......
class CreateModerators < ActiveRecord::Migration
def change
create_table :moderators do |t|
t.references :user
t.references :board
t.timestamps
end
add_index :moderators, :user_id
add_index :moderators, :board_id
end
end
......@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20120417233009) do
ActiveRecord::Schema.define(:version => 20120510085131) do
create_table "boards", :force => true do |t|
t.string "name", :default => "", :null => false
......@@ -76,11 +76,8 @@ ActiveRecord::Schema.define(:version => 20120417233009) do
t.string "replay"
t.integer "user1_credits"
t.integer "user2_credits"
t.integer "version"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "user1_public", :default => true, :null => false
t.boolean "user2_public", :default => true, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "duels", ["user1_id"], :name => "index_duels_on_user1_id"
......@@ -127,6 +124,16 @@ ActiveRecord::Schema.define(:version => 20120417233009) do
t.datetime "updated_at", :null => false
end
create_table "moderators", :force => true do |t|
t.integer "user_id"
t.integer "board_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "moderators", ["board_id"], :name => "index_moderators_on_board_id"
add_index "moderators", ["user_id"], :name => "index_moderators_on_user_id"
create_table "navigations", :force => true do |t|
t.string "name"
t.string "url"
......@@ -188,6 +195,16 @@ ActiveRecord::Schema.define(:version => 20120417233009) do
t.datetime "updated_at", :null => false
end
create_table "sessions", :force => true do |t|
t.string "session_id", :null => false
t.text "data"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
create_table "settings", :primary_key => "name", :force => true do |t|
t.text "value"
end
......@@ -214,7 +231,7 @@ ActiveRecord::Schema.define(:version => 20120417233009) do
create_table "users", :force => true do |t|
t.string "name", :null => false
t.string "password"
t.string "email", :default => "", :null => false
t.string "email"
t.string "nickname", :default => "", :null => false
t.text "signature"
t.integer "credits", :default => 0, :null => false
......@@ -246,39 +263,4 @@ ActiveRecord::Schema.define(:version => 20120417233009) do
add_index "users", ["name"], :name => "index_users_on_name"
create_table "users_copy", :force => true do |t|
t.string "name", :null => false
t.string "password"
t.string "email", :default => "", :null => false
t.string "nickname", :default => "", :null => false
t.text "signature"
t.integer "credits", :default => 0, :null => false
t.integer "credit1", :default => 0, :null => false
t.integer "credit2", :default => 0, :null => false
t.integer "credit3", :default => 0, :null => false
t.integer "credit4", :default => 0, :null => false
t.integer "credit5", :default => 0, :null => false
t.integer "credit6", :default => 0, :null => false
t.integer "credit7", :default => 0, :null => false
t.integer "credit8", :default => 0, :null => false
t.integer "win", :default => 0, :null => false
t.integer "lost", :default => 0, :null => false
t.integer "role_id", :default => 5, :null => false
t.boolean "locked", :default => false, :null => false
t.string "regip", :default => "", :null => false
t.string "lastloginip", :default => "", :null => false
t.integer "viewnum", :default => 0, :null => false
t.integer "onlinetime", :default => 0, :null => false
t.string "locale"
t.string "theme"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "avatar_file_name"
t.string "avatar_content_type"
t.integer "avatar_file_size"
t.datetime "avatar_updated_at"
end
add_index "users_copy", ["name"], :name => "index_users_on_name"
end
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one:
user:
board:
two:
user:
board:
require 'test_helper'
class ModeratorsControllerTest < ActionController::TestCase
setup do
@moderator = moderators(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:moderators)
end
test "should get new" do
get :new
assert_response :success
end
test "should create moderator" do
assert_difference('Moderator.count') do
post :create, moderator: @moderator.attributes
end
assert_redirected_to moderator_path(assigns(:moderator))
end
test "should show moderator" do
get :show, id: @moderator
assert_response :success
end
test "should get edit" do
get :edit, id: @moderator
assert_response :success
end
test "should update moderator" do
put :update, id: @moderator, moderator: @moderator.attributes
assert_redirected_to moderator_path(assigns(:moderator))
end
test "should destroy moderator" do
assert_difference('Moderator.count', -1) do
delete :destroy, id: @moderator
end
assert_redirected_to moderators_path
end
end
require 'test_helper'
class ModeratorsHelperTest < ActionView::TestCase
end
require 'test_helper'
class ModeratorTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment