code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); $bulletinid = intval($_GET['bulletinid']); $strBulletin = aac('site')->getOneBulletin($bulletinid); $siteid = $strBulletin['siteid']; $roomid = $strBulletin['roomid']; //导航 $userid = $_SESSION['tsuser']['userid']; //加载风格 include_once 'theme.php'; //页面 switch ($ts) { case "" : //公告显示页面 $str = $strBulletin['content'];//url格式成html preg_match_all ( '/\[(url)=([http|https|ftp]+:\/\/[a-zA-Z0-9\.\-\?\=\_\&amp;\/\'\`\%\:\@\^\+\,\.]+)\]([^\[]+)(\[\/url\])/is', $str, $content); foreach($content[2] as $c1) { $str = str_replace ( "[url={$c1}]", '<a href="'.$c1.'" target="_blank">', $str); $str = str_replace ( "[/url]", '</a>', $str); } $strBulletin['content'] = $str; $title = $strSite['sitename'].'的公告栏'; include template('bulletin_show'); break; case "update" : //判断权限 aac('site')->isAllow($strBulletin['userid'],$userid,'update'); //房间显示页面 $content = $_POST['content']; $historyurl = trim($_POST['historyurl']); $jump = $_SERVER['HTTP_REFERER'];//来源链接 if($bulletinid!=0 && $content!='') { $new['site']->update('site_bulletin',array('bulletinid'=>$bulletinid),array( 'content' => htmlspecialchars($content) )); //header("Location: ".SITE_URL.tsUrl('site','room',array('roomid'=>$strBulletin['roomid'],'siteid'=>$strBulletin['siteid']))); header("Location: ".$historyurl); } $title = '编辑公告栏'; include template('bulletin_update'); break; case "settings": $title = trim($_POST['title']); $roomid = intval($_POST['roomid']);//要转移的房间id $strRoom = aac('site')->getOneRoom($strBulletin['roomid']); $actionUrl = SITE_URL.tsUrl('site','bulletin',array('ts'=>'settings','bulletinid'=>$bulletinid)); $deleteUrl = SITE_URL.tsUrl('site','bulletin',array('ts'=>'delete','bulletinid'=>$bulletinid)); //判断是否是存档 if($strBulletin['isarchive']==1) { $archiveUrl = SITE_URL.tsUrl('site','bulletin',array('ts'=>'unarchive','bulletinid'=>$bulletinid));//恢复url $archiveName = "恢复此应用"; }else{ $archiveUrl = SITE_URL.tsUrl('site','bulletin',array('ts'=>'archive','bulletinid'=>$bulletinid));//存档url $archiveName = "存档此应用"; } $options = '<option value="0">选择房间</option>'; foreach($strRooms as $items) { $options = $options.'<option value="'.$items['roomid'].'">'.$items['name'].'</option>'; } $html = '<form action="'.$actionUrl.'" method="post"> <fieldset> <div class="item"> <label>应用名称:</label> <input type="text" name="title" size="15" maxlength="15" value="'.$strBulletin['title'].'"/> </div> <div class="item"> <label>移动到:</label> <select name="roomid">'.$options.'</select> </div> <div class="item-submit"> <span class="bn-flat-hot"><input type="submit" value="保存"></span> <a href="#" class="a_cancel_setting_panel">取消</a> <span class="setting-panel-ops"> <a href="'.$archiveUrl.'" class="a_archive_mod" screen_name="公告栏" title="'.$strBulletin['title'].'" room_name="'.$strRoom['name'].'">'.$archiveName.'</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="'.$deleteUrl.'" class="a_delete_mod" title="真的要删除此应用?">删除</a> </span> </div> </fieldset> </form>'; //开始分发数据 $arrdata = array(); if(!empty($title)) { $arrdata['title'] = $title; } if(!empty($roomid) && $roomid!=0) { $arrdata['roomid'] = $roomid; } //判断是更新还是 设置请求 if(!empty($arrdata)) { //更新 $new['site']->update('site_bulletin',array('bulletinid'=>$bulletinid),array('title'=>$arrdata['title'])); if(!empty($arrdata['roomid']) && $arrdata['roomid']!=$strBulletin['roomid']) { $arrstatus = aac('site')->moveWidget($strBulletin['roomid'], $roomid, 'bulletin-'.$bulletinid); if($arrstatus['status']==0) { //成功了 更新组件 房间id $db->query("update ".dbprefix."site_bulletin set roomid='$roomid' where bulletinid='$bulletinid'"); $arrJson = array('r'=>0, 'html'=>''); }else if($arrstatus['status']==1) { $arrJson = array('r'=>1, 'error'=>$arrstatus['roomname'].'房间应用个数已达上限,先移除几个吧'); } header("Content-Type: application/json", true); echo json_encode($arrJson); exit(); }else{ //取数据 $tables = aac('site')->find('site_bulletin', array('bulletinid'=>$bulletinid)); $str = $tables['content']; preg_match_all ( '/\[(url)=([http|https|ftp]+:\/\/[a-zA-Z0-9\.\-\?\=\_\&amp;\/\'\`\%\:\@\^\+\,\.]+)\]([^\[]+)(\[\/url\])/is', $str, $content); foreach($content[2] as $c1) { $str = str_replace ( "[url={$c1}]", '<a href="'.$c1.'" target="_blank">', $str); $str = str_replace ( "[/url]", '</a>', $str); } $str = '<div class="bulletin-content">'.$str.'</div>'; $arrJson = array('r'=>0, 'html'=>$str); header("Content-Type: application/json", true); echo json_encode($arrJson); exit(); } }else{ $arrJson = array('r'=>0, 'html'=>$html); header("Content-Type: application/json", true); echo json_encode($arrJson); } break; case "delete": //判断权限 aac('site')->isAllow($strBulletin['userid'],$userid,'delete'); //删除布局 $arrLayout = aac('site')->delWidget($strBulletin['roomid'], 'bulletin-'.$bulletinid); aac('site')->update('site_room_widget',array('roomid'=>$strBulletin['roomid']),$arrLayout); //删除组件 $new['site']->delete('site_bulletin',array('bulletinid'=>$bulletinid)); //删除存档表里数据 $new['site']->delete('site_archive',array('widgetname'=>'bulletin','widgetid'=>$bulletinid)); //更新site_room表 组件数 $db->query("update ".dbprefix."site_room set count_widget = count_widget-1 where roomid='$strBulletin[roomid]'"); $arrJson = array('r'=>0, 'html'=>'delete success'); header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "archive": //判断权限 aac('site')->isAllow($strBulletin['userid'],$userid,'archive'); $bulletinid = intval($_GET['bulletinid']); //$siteid = intval($_GET['siteid']); //更新 并存档 aac('site')->update('site_bulletin',array('bulletinid'=>$bulletinid),array('isarchive'=>1)); $tables = aac('site')->find('site_bulletin', array('bulletinid'=>$bulletinid)); $isarchive = $tables['isarchive']; $roomid = $tables['roomid']; if($isarchive==1) { $archiveid = aac('site')->create('site_archive', array( 'roomid'=>$roomid, 'widgetid'=>$bulletinid, 'widgetname'=>'bulletin', 'addtime'=>time() )); } if(!empty($archiveid)) { $arrJson = array('r'=>0, 'html'=>'success'); }else{ $arrJson = array('r'=>1, 'error'=>'存档失败,请重试!'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; //恢复该应用 case "unarchive": //判断权限 aac('site')->isAllow($strBulletin['userid'],$userid,'unarchive'); //更新 恢复存档 aac('site')->update('site_bulletin',array('bulletinid'=>$bulletinid),array('isarchive'=>0)); $tables = aac('site')->find('site_bulletin', array('bulletinid'=>$bulletinid)); $isarchive = $tables['isarchive']; $roomid = $tables['roomid']; $archiveid = aac('site')->delete('site_archive',array('widgetid'=>$bulletinid,'widgetname'=>'bulletin','roomid'=>$roomid));//删除存档 if($isarchive == 0 && !empty($archiveid)) { $arrJson = array('r'=>0, 'html'=>'success'); }else{ $arrJson = array('r'=>1, 'error'=>'恢复失败,请重试!'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; }
12ik
trunk/app/site/action/bulletin.php
PHP
oos
8,151
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //用户是否登录 $userid = aac('user')->isLogin(); //个人小站 switch ($ts) { case "savetheme" : //保存theme $siteid = intval($_GET['siteid']); $status = 1;// 1 失败 0 成功 $arrData = array( 'siteid' => $siteid, 'userid' => $userid, 'theme_id' => intval($_POST['theme_id']), 'background_ver' => $_POST['background_ver'], 'background_pos' => $_POST['background_pos'], 'background_repeat' => $_POST['background_repeat'], 'background_cancel' => $_POST['background_cancel'], 'background_color' => $_POST['background_color'], 'banner_color' => $_POST['banner_color'], 'tab_color' => $_POST['tab_color'], 'tab_link_color' => $_POST['tab_link_color'], 'link_color' => $_POST['link_color'], 'background_image' => $_POST['background_image'],//图片url 'background_path' => $_POST['background_path'],//图片路径 //biz-theme 'biz_theme' => $_POST['biz_theme'], 'bg_fixed' => $_POST['bg_fixed'], 'logo_color' => $_POST['logo_color'], 'banner_transparent' => $_POST['banner_transparent'], 'addtime' => time(), ); $isTheme = aac('site') -> find('site_theme',array('siteid'=>$siteid)); //判断小站风格是否存在 if($isTheme) { aac('site') -> update('site_theme',array('siteid'=>$siteid), $arrData); }else { $id = $db->insertArr($arrData,dbprefix.'site_theme'); //更新site aac('site') -> update('site',array('siteid'=>$siteid), array('istheme'=>'1')); } $status = 0; header("Content-Type: application/json", true); if($status == 0){ echo json_encode(array('r'=>0)); }else{ echo json_encode(array('r'=>1)); } break; case "background": //ajax用户设置背景 $siteid = intval($_GET['siteid']); $ver = intval($_POST['ver'])+1; $status = 1; $ck = $_POST['ck'] == $_COOKIE['ck'] ? true : false; //上传 $size = floor($_FILES['picfile']['size'] / 1024); if($size > 800) { header("Content-Type: application/json", true); echo json_encode(array('r'=> 1 , 'error' => '文件大小不得超过800k' )); }else { $arrUpload = tsUpload($_FILES['picfile'],$userid,'site/custom/theme/'.$ver.'/',array('jpg','gif','png','jpeg')); if($arrUpload) $status = 0;//成功上传 if($status ==0) { $imgsize = getimagesize(SITE_URL.'uploadfile/site/custom/theme/'.$ver.'/'.$arrUpload['url']); header("Content-Type: application/json", true); echo json_encode(array( 'r' => 0, 'ver' => $ver, 'path' => $arrUpload['path'], 'url' => $arrUpload['url'], 'pic' => SITE_URL.'uploadfile/site/custom/theme/'.$ver.'/'.$arrUpload['url'].'?ver='.$ver, //'pic' => tsXimg($arrUpload['url'],'site/custom/theme',$imgsize[0],$imgsize[1],$arrUpload['path'],1) )); }else{ header("Content-Type: application/json", true); echo json_encode(array('r'=> 1 , 'error' => '上传失败请重新上传文件!' )); } } break; }
12ik
trunk/app/site/action/custom.php
PHP
oos
3,119
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); switch ($ts) { case "site" : //发现更多小站 //分页 $page = isset($_GET['page']) ? $_GET['page'] : '1'; $url = SITE_URL."index.php?app=site&ac=explore&ts=site&page="; $lstart = $page*10-10; $arrSites = $db->fetch_all_assoc ( "select * from " . dbprefix . "site order by addtime desc limit $lstart, 10" ); foreach($arrSites as $key=>$item){ //$arrSite[] = $item; //$arrSite[$key]['sitedesc'] = getsubstrutf8(t($item['sitedesc']),0,30); $arrSite[] = aac('site')->getOneSite($item['siteid']); } $title = "发现小站"; include template("site"); break; //根据tag ajax 加载 小站 case "tag" : $tagname = urldecode(trim($_POST['tagname'])); $tagid = aac('tag')->getTagId(t($tagname)); $strTag = $db->once_fetch_assoc("select * from ".dbprefix."tag where tagid='$tagid'"); $page = isset($_POST['page']) ? intval($_POST['page']) : 1; $lstart = $page*10-10; $arrTagId = $db->fetch_all_assoc("select * from ".dbprefix."tag_site_index where tagid='$tagid' limit $lstart,10"); $site_num = $db->once_fetch_assoc("select count(siteid) from ".dbprefix."tag_site_index where tagid='$tagid'"); $url = SITE_URL.tsUrl('site','site_tag',array('siteid'=>$siteid,'page'=>'')); foreach($arrTagId as $item){ $arrSites[] = aac('site')->getOneSite($item['siteid']); } foreach($arrSites as $key=>$item){ $arrSite[] = $item; $arrSite[$key]['url'] = SITE_URL.tsUrl('site','mine',array('siteid'=>$item[siteid]) ); $arrSite[$key]['sitedesc'] = getsubstrutf8(t($item['sitedesc']),0,30); $arrSite[$key]['tagname'] = $tagname; $arrSite[$key]['page'] = @ceil($site_num['count(siteid)']/10) ; } echo json_encode($arrSite); break; }
12ik
trunk/app/site/action/explore.php
PHP
oos
1,821
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //用户是否登录 $userid = aac('user')->isLogin(); //修改提示层 $siteid = intval($_GET['siteid']); $isSetting = intval($_POST['isSetting']); //定义返回json $arrJson = array(); //开始创建room $arrData = array( 'issetting' => $isSetting ); $isupdate = $db->updateArr($arrData,dbprefix.'site','where siteid='.$siteid); if($isupdate) { $arrJson['r'] = 0; header("Content-Type: application/json", true); echo json_encode($arrJson); }
12ik
trunk/app/site/action/tips.php
PHP
oos
540
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //用户是否登录 $userid = aac('user')->isLogin(); $siteid = intval($_GET['siteid']); $strSite = aac('site')->getOneSite($siteid); //定义返回json $arrJson = array(); //检查用户能否创建房间 以及创建数量 $roomNum = aac('site') -> findCount('site_room',array('siteid'=>$siteid)); if($roomNum < 5) { $arrJson['r'] = 0; $arrJson['code'] = 'go_ahead'; header("Content-Type: application/json", true); echo json_encode($arrJson); }else if($roomNum ==5){ $arrJson['r'] = 1; $arrJson['code'] = 'not_enough'; $arrJson['error'] = '<div style="text-align: center;"> <h3 style="margin-bottom: 8px; font-size: 14px"> 本小站没有足够的客豆</h3> <p style="color: #aaa"> 增加一个房间上限需要从小站处扣减10颗客豆。你可以用"捐赠应用"将自己的部分客豆转移到小站上。'; header("Content-Type: application/json", true); echo json_encode($arrJson); }
12ik
trunk/app/site/action/create_room_check.php
PHP
oos
1,015
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); $forumid = intval($_GET['forumid']); $strForum = aac('site')->find('site_forum',array('forumid'=>$forumid));; $siteid = $strForum['siteid']; $roomid = $strForum['roomid']; //导航 $userid = $_SESSION['tsuser']['userid']; //加载风格 include_once 'theme.php'; //页面 switch ($ts) { case "" : //显示 $discussid = intval($_GET['discussid']); $goon = intval($_GET['goon']); $strdiscuss = aac('site')->find('site_forum_discuss',array('discussid'=>$discussid)); $strUser = aac('user')->getOneUser($strdiscuss['userid']); $arrComments = aac('site')->findAll('site_discuss_comment',array('discussid'=>$discussid)); foreach($arrComments as $key => $item) { $arrComment[] = $item; $arrComment[$key]['user'] = aac('user')->getOneUser($item['userid']); } $myComment = aac('site')->find('site_discuss_comment',array('userid'=>$userid,'discussid'=>$discussid),'','addtime desc'); //判断是否小于60秒之后才能继续发言 $mycommentTime = time() - strtotime(date('Y-m-d H:i:s',$myComment['addtime'])) > 60; if($goon==1 && $userid>0) { $mycommentTime = true; } $title = $strdiscuss['title'].'-'.$strForum['title']; include template('forum_discuss_show'); break; case "settings" : $title = trim($_POST['title']); $roomid = intval($_POST['roomid']);//要转移的房间id $display_number = intval($_POST['display_number']);//显示个数 //当前房间 $strRoom = aac('site')->getOneRoom($strForum['roomid']); $actionUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'settings','forumid'=>$forumid)); $deleteUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'delete','forumid'=>$forumid)); //判断是否是存档 if($strForum['isarchive']==1) { $archiveUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'unarchive','forumid'=>$forumid));//恢复url $archiveName = "恢复此应用"; }else{ $archiveUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'archive','forumid'=>$forumid));//存档url $archiveName = "存档此应用"; } //显示个数 $strdis = ''; if($strForum['display_number']==5) { $strdis = '<label><input value="5" name="display_number" type="radio" checked> 5</label> <label><input value="10" name="display_number" type="radio"> 10</label> <label><input value="20" name="display_number" type="radio"> 20</label> <label><input value="30" name="display_number" type="radio"> 30</label>'; }else if($strForum['display_number']==10) { $strdis = '<label><input value="5" name="display_number" type="radio"> 5</label> <label><input value="10" name="display_number" type="radio" checked> 10</label> <label><input value="20" name="display_number" type="radio"> 20</label> <label><input value="30" name="display_number" type="radio"> 30</label>'; }else if ($strForum['display_number']==20){ $strdis = '<label><input value="5" name="display_number" type="radio"> 5</label> <label><input value="10" name="display_number" type="radio"> 10</label> <label><input value="20" name="display_number" type="radio" checked> 20</label> <label><input value="30" name="display_number" type="radio"> 30</label>'; }else if($strForum['display_number']==30){ $strdis = '<label><input value="5" name="display_number" type="radio"> 5</label> <label><input value="10" name="display_number" type="radio"> 10</label> <label><input value="20" name="display_number" type="radio"> 20</label> <label><input value="30" name="display_number" type="radio" checked> 30</label>'; } //房间列表 $options = '<option value="0">选择房间</option>'; foreach($strRooms as $items) { $options = $options.'<option value="'.$items['roomid'].'">'.$items['name'].'</option>'; } $html = ' <form action="'.$actionUrl.'" method="post"> <div style="display:none;"><input type="hidden" name="ck" value="P6J2"/></div> <fieldset> <div class="item"> <label>应用名称:</label> <input type="text" name="title" size="15" maxlength="15" value="'.$strForum['title'].'"> </div> <div class="item item-display-num"> <label>显示个数:</label> <span class="item-r">'.$strdis.'</span> </div> <div class="item"> <label>移动到:</label> <select name="roomid">'.$options.'</select> </div> <div class="item-submit"> <span class="bn-flat-hot"><input type="submit" value="保存"></span> <a href="#" class="a_cancel_setting_panel">取消</a> <span class="setting-panel-ops"> <a href="'.$archiveUrl.'" class="a_archive_mod" screen_name="论坛" title="'.$strForum['title'].'" room_name="'.$strRoom['name'].'">'.$archiveName.'</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="'.$deleteUrl.'" class="a_delete_mod" title="真的要删除此应用?">删除</a> </span> </div> </fieldset> </form>'; //开始分发数据 $arrdata = array(); if(!empty($title)) $arrdata['title'] = $title; if(!empty($title)) $arrdata['display_number'] = $display_number; if(!empty($roomid) && $roomid!=0) $arrdata['roomid'] = $roomid; //判断是更新还是 设置请求 if(!empty($arrdata)) { //更新 $new['site']->update('site_forum',array('forumid'=>$forumid),array( 'title'=>$arrdata['title'],'display_number'=>$arrdata['display_number'] )); if(!empty($arrdata['roomid']) && $arrdata['roomid']!=$strForum['roomid']) { $arrstatus = aac('site')->moveWidget($strForum['roomid'], $roomid, 'forum-'.$forumid); if($arrstatus['status']==0) { //成功了 更新组件 房间id $db->query("update ".dbprefix."site_forum set roomid='$roomid' where forumid='$forumid'"); $arrJson = array('r'=>0, 'html'=>''); }else if($arrstatus['status']==1) { $arrJson = array('r'=>1, 'error'=>$arrstatus['roomname'].'房间应用个数已达上限,先移除几个吧'); } header("Content-Type: application/json", true); echo json_encode($arrJson); exit(); }else{ //取数据 $tables = aac('site')->findAll('site_forum_discuss', array('forumid'=>$forumid),'istop desc,addtime desc', '','0,'.$display_number.''); $html = '<table class="list-b"> <tr><td>话题</td><td>作者</td><td nowrap="nowrap">回应</td><td align="right">更新时间</td></tr>'; foreach($tables as $item) { $struser = aac('user')->getOneUser($item['userid']); $topimg = '<img src="/public/images/stick.gif"/>'; $istop = $item['istop'] == 1 ? $topimg : ''; $html .= ' <tr> <td>'.$istop.' <a title="'.$item['title'].'" href="'.SITE_URL.tsUrl('site','forum',array('forumid'=>$item['forumid'],'discussid'=>$item['discussid'])).'">'.$item['title'].'</a></td> <td>来自 <a href='.SITE_URL.tsUrl('hi','',array('id'=>$struser['doname'])).'"">'.$struser['username'].'</a></td> <td class="count" nowrap="nowrap">'.$item['count_comment'].'</td> <td class="date">'.date('Y-m-d H:i:s',$item['addtime']).'</td> </tr> '; } $arrJson = array('r'=>0, 'html'=>$html); header("Content-Type: application/json", true); echo json_encode($arrJson); exit(); } }else{ $arrJson = array('r'=>0, 'html'=>$html); header("Content-Type: application/json", true); echo json_encode($arrJson); } break; case "archive" : //存档应用 aac('site')->isAllow($strForum['userid'],$userid,'archive'); //更新 并存档 aac('site')->update('site_forum',array('forumid'=>$forumid),array('isarchive'=>1)); $tables = aac('site')->find('site_forum', array('forumid'=>$forumid)); $isarchive = $tables['isarchive']; $roomid = $tables['roomid']; if($isarchive==1) { $archiveid = aac('site')->create('site_archive', array( 'roomid'=>$roomid, 'widgetid'=>$forumid, 'widgetname'=>'forum', 'addtime'=>time() )); } if(!empty($archiveid)) { $arrJson = array('r'=>0, 'html'=>'success'); }else{ $arrJson = array('r'=>1, 'error'=>'存档失败,请重试!'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "unarchive" : //存档应用 aac('site')->isAllow($strForum['userid'],$userid,'unarchive'); //更新 并存档 aac('site')->update('site_forum',array('forumid'=>$forumid),array('isarchive'=>0)); $tables = aac('site')->find('site_forum', array('forumid'=>$forumid)); $isarchive = $tables['isarchive']; $roomid = $tables['roomid']; if($isarchive==0) { //删除存档 $archiveid = aac('site')->delete('site_archive', array('widgetid'=>$forumid,'widgetname'=>'forum','roomid'=>$roomid)); } if(!empty($archiveid)) { $arrJson = array('r'=>0, 'html'=>'success'); }else{ $arrJson = array('r'=>1, 'error'=>'恢复失败,请重试!'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "delete" : //删除组件 //判断权限 aac('site')->isAllow($strForum['userid'],$userid,'delete'); //判断是否有数据 $isDel = aac('site')->findCount('site_forum_discuss',array('forumid'=>$forumid)); if($isDel > 0) { $arrJson = array('r'=>1, 'error'=>'请先清空内容,再删除。'); }else{ //删除布局 $arrLayout = aac('site')->delWidget($strForum['roomid'], 'forum-'.$forumid); aac('site')->update('site_room_widget',array('roomid'=>$strForum['roomid']),$arrLayout); //删除组件 $new['site']->delete('site_forum',array('forumid'=>$forumid)); //删除存档表里数据 $new['site']->delete('site_archive',array('widgetname'=>'forum','widgetid'=>$forumid)); //更新site_room表 组件数 $db->query("update ".dbprefix."site_room set count_widget = count_widget-1 where roomid='$strForum[roomid]'"); $arrJson = array('r'=>0, 'html'=>'delete success'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "create" : $userid = aac('user')->isLogin();//登录发言 $submit = trim($_POST['submit']); $title = trim($_POST['title']); $content = trim($_POST['content']); $strUser = aac('user')->getOneUser($userid); if($submit) { if($title=='' || $content=='') tsNotice("标题和内容都不能为空!"); if(mb_strlen($title,'utf8')>64) tsNotice('标题很长很长很长很长...^_^'); if(mb_strlen($content,'utf8')>50000) tsNotice('发这么多内容干啥^_^'); //执行添加 $discussid = aac('site')->create('site_forum_discuss', array('forumid'=>$forumid,'userid'=>$userid, 'title'=>$title,'content'=>htmlspecialchars($content),'addtime'=>time()) ); header("Location: ".SITE_URL.tsUrl('site','forum',array('forumid'=>$forumid,'discussid'=>$discussid))); } $title = '在"'.$strForum['title'].'"发言'; include template('forum_discuss_create'); break; case "list" : //日记列表 $arrDiscusion = aac('site')->findAll('site_forum_discuss',array('forumid'=>$forumid),'istop desc,addtime desc'); if( is_array($arrDiscusion)){ foreach($arrDiscusion as $key=>$item){ $arrDiscus[] = $item; $arrDiscus[$key]['user'] = aac('user')->getOneUser($item['userid']); } } $title = $strForum['title']; include template('forum_discuss_list'); break; case "editdiscuss" : //判断权限 aac('site')->isAllow($strForum['userid'],$userid,'editdiscuss'); $discussid = trim($_GET['discussid']); $strUser = aac('user')->getOneUser($userid); $strDiscusion = aac('site')->find('site_forum_discuss',array('discussid'=>$discussid)); $title = '编辑"'.$strDiscusion['title'].'"'; include template('forum_discuss_edit'); break; case "updatediscuss" : aac('site')->isAllow($strForum['userid'],$userid,'updatediscuss'); $submit = trim($_POST['submit']); $title = trim($_POST['title']); $content = trim($_POST['content']); $discussid = trim($_GET['discussid']); if($submit) { if($title=='' || $content=='') tsNotice("标题和内容都不能为空!"); if(mb_strlen($title,'utf8')>64) tsNotice('标题很长很长很长很长...^_^'); if(mb_strlen($content,'utf8')>50000) tsNotice('发这么多内容干啥^_^'); //执行update aac('site')->update('site_forum_discuss', array('forumid'=>$forumid,'discussid'=>$discussid), array('title'=>$title,'content'=>htmlspecialchars($content)) ); } header("Location: ".SITE_URL.tsUrl('site','forum',array('forumid'=>$forumid,'discussid'=>$discussid))); break; case "deldiscuss" : //判断权限 aac('site')->isAllow($strForum['userid'],$userid,'deldiscuss'); $discussid = trim($_GET['discussid']); //删除评论 aac('site')->delete('site_discuss_comment',array('discussid'=>$discussid)); //删除帖子 aac('site')->delete('site_forum_discuss',array('discussid'=>$discussid)); header("Location: ".SITE_URL.tsUrl('site','forum',array('ts'=>'list','forumid'=>$forumid))); break; case "istop" : //判断权限 aac('site')->isAllow($strForum['userid'],$userid,'istop'); $discussid = trim($_GET['discussid']); $strDiscusion = aac('site')->find('site_forum_discuss',array('discussid'=>$discussid)); $strDiscusion['istop'] == 0 ? $istop=1 :$istop=0; aac('site')->update('site_forum_discuss', array('forumid'=>$forumid,'discussid'=>$discussid), array('istop'=>$istop) ); header("Location: ".SITE_URL.tsUrl('site','forum',array('forumid'=>$forumid,'discussid'=>$discussid))); break; case "add_comment" : //判断权限 $userid = aac('user')->isLogin();//登录发言 $discussid = intval($_GET['discussid']); $content = trim($_POST['content']); if($content=='') { tsNotice('没有任何内容是不允许你通过滴^_^'); } $commentid =aac('site')->create('site_discuss_comment', array('referid'=>'0','discussid'=>$discussid, 'userid'=>$userid,'content'=>htmlspecialchars($content),'addtime'=>time()) ); $strdiscuss = aac('site')->find('site_forum_discuss',array('discussid'=>$discussid)); if($commentid>0){ //执行update回复数 aac('site')->update('site_forum_discuss', array('forumid'=>$forumid,'discussid'=>$discussid), array('count_comment'=>$strdiscuss['count_comment']+1) ); } header("Location: ".SITE_URL.tsUrl('site','forum',array('forumid'=>$forumid,'discussid'=>$discussid))); break; case "del_comment" : $discussid = intval($_GET['discussid']); $commentid = intval($_GET['commentid']); $strComment = aac('site')->find('site_discuss_comment',array('commentid'=>$commentid)); //判断权限 if($strForum['userid']!=$userid && $strComment['userid']!=$userid) { tsNotice('你没有执行该操作(del_comment)的权限!'); }else if(empty($userid)){ tsNotice('你没有执行该操作(del_comment)的权限!','请登录后重试',SITE_URL.tsUrl('user','login')); } aac('site')->delete('site_discuss_comment',array('commentid'=>$commentid,'discussid'=>$discussid)); $strdiscuss = aac('site')->find('site_forum_discuss',array('discussid'=>$discussid)); //执行update回复数 aac('site')->update('site_forum_discuss', array('forumid'=>$forumid,'discussid'=>$discussid), array('count_comment'=>$strdiscuss['count_comment']-1) ); header("Location: ".SITE_URL.tsUrl('site','forum',array('forumid'=>$forumid,'discussid'=>$discussid))); break; }
12ik
trunk/app/site/action/forum.php
PHP
oos
16,030
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); $siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : $siteid; $strSite = aac('site')->getOneSite($siteid); //判断是否有风格 $isTheme = aac('site') -> find('site_theme',array('siteid'=>$siteid)); if(is_array($isTheme)) { $strTheme = aac('site') -> getSiteThemeBySiteid ($siteid); $strTheme['ck'] = $_COOKIE['ck']; $strTheme['ver'] = empty($strTheme['background_ver']) ? 0 : $strTheme['background_ver']; $strTheme['background_pos'] = empty($strTheme['background_pos']) ? '0%' : $strTheme['background_pos']; } //显示系统房间 $strRooms = aac('site')->getRooms($siteid); //显示排序导航 $strNavs = aac('site')->getNavOrders($siteid); //显示系统组件 $strWidgets = aac('site')->getWidgets();
12ik
trunk/app/site/action/theme.php
PHP
oos
807
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); $roomid = intval($_GET['roomid']); $strRoom = aac('site')->getOneRoom($roomid); $siteid = $strRoom['siteid']; //加载风格 include_once 'theme.php'; $strArchives = aac('site')->findAll('site_archive',array('roomid'=>$roomid), 'addtime desc'); foreach($strArchives as $key=>$item){ $arrArchives[] = array( 'widgetname' => $item['widgetname'], 'widgetid' => $item['widgetid'], 'widget'=> aac('site')->find('site_'.$item['widgetname'], array($item['widgetname'].'id'=>$item['widgetid'])), 'strwidget'=> aac('site')->getOneWidget(array('othername'=>$item['widgetname'])), ); } $title = $strRoom['name'].'的更多应用'; include template('archives');
12ik
trunk/app/site/action/archives.php
PHP
oos
755
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //加载风格 //页面 switch ($ts) { case "" : echo 111; include template("test"); break; }
12ik
trunk/app/site/action/test.php
PHP
oos
181
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //加载风格 include_once 'theme.php'; //用户是否登录 $userid = aac('user')->isLogin(); $siteid = intval($_GET['siteid']); //个人小站 switch ($ts) { case "" : //管理中心 $strSite = aac('site')->getOneSite($siteid); $title = "小站管理"; include template("admins"); break; case "remind" : //提醒 $title = "小站管理"; include template("admins"); break; case "postpermission" : //权限 $isaction = isset($_POST['isaction']) ? $_POST['isaction']: ''; if($isaction!='') { $dd = aac('site')->update('site',array('siteid'=>$siteid),array( 'isaction' => $isaction, )); $message = '<div class="message">保存权限成功</div>'; } $title = "小站管理"; include template("postpermission"); break; case "log" : //日志 $title = "小站管理"; include template("log"); break; case "kedou" : //客豆 $title = "小站管理"; include template("kedou"); break; case "info" : $tags = $_POST['tags']; //判断是否是保存 if(!empty($tags)) { $sitedesc = $_POST['sitedesc']; $state = aac('site')->update('site',array('siteid'=>$siteid),array( 'sitedesc' => htmlspecialchars($sitedesc) )); if($state) { //先删除该站的标签 然后插入数据 aac('tag')->delObjTagByObjid('site','siteid',$siteid); //添加标签 aac('tag')->addTag('site','siteid',$siteid,trim($tags)); $arrJson = array('r'=>0, 'html'=>'你的最新设置已经被成功保存'); header("Content-Type: application/json", true); echo json_encode($arrJson); }else{ $arrJson = array('r'=>1, 'error'=>'更新失败请重试'); header("Content-Type: application/json", true); echo json_encode($arrJson); } }else{ //资料 $arrSiteTag = aac('tag')->getObjTagByObjid('site','siteid',$siteid); foreach($arrSiteTag as $key => $item) { $arrSiteTags.= $item['tagname'].' '; } $siteNumber = aac('site')->findCount('site_room',array('siteid'=>$siteid)); $title = "小站管理"; include template("info"); } break; case "design" : //设计风格 $title = "小站管理"; include template("design"); break; //设置导航菜单的布局顺序 case "layout" : $arrJson = array(); $navtext = trim($_POST['tabs']); $arrData = array('ordertext' => $navtext); $isupdate = $db->updateArr($arrData,dbprefix.'site_room_navorder','where siteid='.$siteid); if($isupdate) { $arrJson['r'] = 0; header("Content-Type: application/json", true); echo json_encode($arrJson); } break; case "icon" : //设计风格 if($_FILES['picfile']) { $wh = getimagesize($_FILES['picfile']['tmp_name']); //获取图片宽高 if($wh[0]<100 || $wh[1]<100) { echo '{"r":1,"error":"图片短边尺寸不能小于100像素,请重新上传。"}'; }else { //上传 $arrUpload = tsUpload($_FILES['picfile'],$userid,'site/icon',array('jpg','gif','png')); if($arrUpload) { aac('site')->update('site',array( 'siteid'=>$siteid, ),array( 'iconpath'=>'icon/'.$arrUpload['path'], 'siteicon'=>'icon/'.$arrUpload['url'], )); //清除缓存图片 ClearAppCache($app.'/icon/'.$arrUpload['path']); $pic = SITE_URL.tsXimg('icon/'.$arrUpload['url'],'site',180,220,'icon/'.$arrUpload['path'],0); echo '{"r":0,"pic":"'.$pic.'"}'; }else{ echo '{"r":1,"error":"上传失败!请重新上传。"}'; } } }else if(!empty($_POST['imgpos'])){ aac('site')->update('site',array( 'siteid'=>$siteid, ),array( 'imgpos'=>$_POST['imgpos'], )); //清除缓存图片 ClearAppCache($app.'/icon/'.$strSite['iconpath']); }else{ //获取位置 if($strSite['imgpos']) { $arrimgpos = explode('_',$strSite['imgpos']); $strSite['px'] = $arrimgpos[0]; $strSite['py'] = $arrimgpos[1]; $strSite['pw'] = $arrimgpos[2]; } $title = "添加或更改你的小站图标"; include template("icon"); } break; }
12ik
trunk/app/site/action/admins.php
PHP
oos
4,294
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); $ts = isset($_POST['ts']) ? $_POST['ts'] : $ts; $userid = $_SESSION['tsuser']['userid']; //小站操作 switch ($ts) { case "like" : if($userid>0) { //$arrJson = array('r'=>'0'); $follow_siteid = trim($_POST['siteid']); aac('site')->create('site_follow', array('userid'=>$userid, 'follow_siteid'=>$follow_siteid,'addtime'=>time()) ); $arrJson = array('r'=>'0'); }else{ $arrJson = array('r'=>'1'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "pop_like_form" : $htmltpl = '<div class="like-form"><input id="is_follow" type="checkbox" checked="on" value="0"> <label for="is_follow">同时关注爱客网小站的广播更新 </label> <div class="note">可以随时取消关注</div> <div class="submit-button"> <span class="bn-flat"><input id="follow_submit" class="input-btn" type="button" value="保存"></span> </div></div>'; echo $htmltpl; break; case "unlike" : if($userid>0) { $follow_siteid = trim($_POST['siteid']); aac('site')->delete('site_follow',array('userid'=>$userid, 'follow_siteid'=>$follow_siteid)); $arrJson = array('r'=>'0'); }else{ $arrJson = array('r'=>'1'); } header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "pop_unlike_form" : $htmltpl = '<div class="like-form"> <input id="un_follow" type="checkbox" checked="on"> <label for="un_follow">同时取消关注爱客网小站的广播更新 </label> <div class="submit-button"> <span class="bn-flat"><input id="unfollow_submit" class="input-btn" type="button" value="确定"></span> </div></div>'; echo $htmltpl; break; case "follow" : $siteid = trim($_POST['siteid']); $isfollow = trim($_POST['isfollow']); aac('site')->update('site',array('siteid'=>$siteid),array('isfollow' => $isfollow)); break; case "unfollow" : $siteid = trim($_POST['siteid']); $isfollow = trim($_POST['isfollow']); aac('site')->update('site',array('siteid'=>$siteid),array('isfollow' => $isfollow)); break; }
12ik
trunk/app/site/action/siteac.php
PHP
oos
2,259
<?php defined('IN_IK') or die('Access Denied.'); //管理入口 if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){ include_once 'app/'.$app.'/action/admin/'.$mg.'.php'; }else{ qiMsg('sorry:no index!'); }
12ik
trunk/app/site/action/admin.php
PHP
oos
219
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); $userid = $IK_USER['user']['userid']; $siteid = intval($_GET['siteid']); $roomid = intval($_GET['roomid']); $strSite = aac('site')->getOneSite($siteid); $htmlTemplate = '<div class="mod sort" id="{table}-{itemid}"><div class="hd"><h2><span>{title}</span><span class="pl"> ( {action} ) </span></h2><div class="edit"><a href="#" rel="{settingurl}" class="a_lnk_mod_setting">设置</a></div></div><div class="bd">{content}</div></div><script type="text/javascript">IK(\'common\',\'setting-eventhandler\');</script>'; $strRoom = aac('site')->getOneRoom($roomid); //如果房间组件为6个 停止安装 if($strRoom['count_widget'] =='6') { $arrJson = array('r'=>1, 'error'=>'只能安装6个应用模块'); header("Content-Type: application/json", true); echo json_encode($arrJson); exit; } $kind = $_POST['kind']; //页面 switch ($kind) { case "bulletin" : //公告数据 $arrData = array( 'userid' => $userid, 'siteid' => $siteid, 'roomid' => $roomid, 'title' => $strSite['sitename'].'的公告栏', 'addtime' => time(), ); $bulletinid = $db->insertArr($arrData,dbprefix.'site_bulletin'); //更新该房间组件数目 $db->query("update ".dbprefix."site_room set count_widget = count_widget+1 where roomid='$roomid'"); //更新该房间组件布局 aac('site')->updateLayout($roomid,'bulletin-'.$bulletinid); $updateUrl = SITE_URL.tsUrl('site','bulletin',array('ts'=>'update','bulletinid'=>$bulletinid)); $settingUrl = SITE_URL.tsUrl('site','bulletin',array('ts'=>'settings','bulletinid'=>$bulletinid)); $html_data = array( 'table' => 'bulletin', 'itemid' => $bulletinid, 'title' => $strSite['sitename'].'的公告栏', 'action' => '<a href="'.$updateUrl.'">修改</a>', 'settingurl'=> $settingUrl, 'content' => '<div class="bulletin-content" ></div>', ); //添加模版到库里 //aac('site')->addHtml($userid,$roomid,$htmlTemplate,$html_data); //解析 foreach($html_data as $key=>$itemTmp){ $tmpkey = '{'.$key.'}'; $tmpdata[$tmpkey] = $itemTmp; } $arrJson = array('r'=>0, 'html'=>strtr($htmlTemplate,$tmpdata)); header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "notes" : //日记数据 $arrData = array( 'userid' => $userid, 'siteid' => $siteid, 'roomid' => $roomid, 'title' => $strSite['sitename'].'的日记', 'display_number' => 5, 'addtime' => time(), ); // $notesid = 222; $notesid = $db->insertArr($arrData,dbprefix.'site_notes'); //更新该房间组件数目 $db->query("update ".dbprefix."site_room set count_widget = count_widget+1 where roomid='$roomid'"); //更新该房间组件布局 aac('site')->updateLayout($roomid,'notes-'.$notesid); $listUrl = SITE_URL.tsUrl('site','notes',array('ts'=>'list','siteid'=>$siteid,'notesid'=>$notesid)); $createUrl = SITE_URL.tsUrl('site','notes',array('ts'=>'create','siteid'=>$siteid,'notesid'=>$notesid)); $settingUrl = SITE_URL.tsUrl('site','notes',array('ts'=>'settings','siteid'=>$siteid,'notesid'=>$notesid)); $html_data = array( 'table' => 'notes', 'itemid' => $notesid, 'title' => $strSite['sitename'].'的日记', 'action' => '<a href="'.$listUrl.'">全部</a>&nbsp;&middot;&nbsp;<a href="'.$createUrl.'">添加新日记</a>', 'settingurl'=> $settingUrl, 'content' => '<div class="createnew"> 记录你的最新动向 <a href="'.$createUrl.'"> &gt; 提笔写日记</a> </div>', ); foreach($html_data as $key=>$itemTmp){ $tmpkey = '{'.$key.'}'; $tmpdata[$tmpkey] = $itemTmp; } $arrJson = array('r'=>0, 'html'=>strtr($htmlTemplate,$tmpdata)); header("Content-Type: application/json", true); echo json_encode($arrJson); break; case "forum": //论坛数据 $arrData = array( 'userid' => $userid, 'siteid' => $siteid, 'roomid' => $roomid, 'title' => $strSite['sitename'].'的论坛', 'display_number' => 5, 'addtime' => time(), ); //插入数据生成id $forumid = aac('site')->create('site_forum', $arrData); //更新该房间组件数目 $db->query("update ".dbprefix."site_room set count_widget = count_widget+1 where roomid='$roomid'"); //更新该房间组件布局 aac('site')->updateLayout($roomid,'forum-'.$forumid); $listUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'list','forumid'=>$forumid)); $createUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'create','forumid'=>$forumid)); $settingUrl = SITE_URL.tsUrl('site','forum',array('ts'=>'settings','forumid'=>$forumid)); $html_data = array( 'table' => 'forum', 'itemid' => $forumid, 'title' => $strSite['sitename'].'的论坛', 'action' => '<a href="'.$listUrl.'">全部</a>&nbsp;&middot;&nbsp;<a href="'.$createUrl.'">发言</a>', 'settingurl'=> $settingUrl, 'content' => '<table class="list-b"><tr><td>话题</td><td>作者</td><td nowrap="nowrap">回应</td><td align="right">更新时间</td></tr></table>', ); foreach($html_data as $key=>$itemTmp){ $tmpkey = '{'.$key.'}'; $tmpdata[$tmpkey] = $itemTmp; } $arrJson = array('r'=>0, 'html'=>strtr($htmlTemplate,$tmpdata)); header("Content-Type: application/json", true); echo json_encode($arrJson); break; break; }
12ik
trunk/app/site/action/widgets.php
PHP
oos
5,529
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //加载风格 include_once 'theme.php'; include_once 'RoomFunction.php'; //个人小站 switch ($ts) { case "" : //个人小站 $roomid = $strNavs[0]['roomid']; $strRoom = aac('site')->getOneRoom($roomid); //左侧组件 $modsort = aac('site')->getRoomWidgetSort($roomid); $leftTable = explode(',',$modsort['leftmod']); $rightTable = explode(',',$modsort['rightmod']); $strLeftMod = sortMod($leftTable); $strRightMod = sortMod($rightTable); //是否有存档 $countAchives = aac('site')->findCount('site_archive', array('roomid'=>$roomid)); //isRoomEmpty 作标记 不是room的页面全部 false $isRoomEmpty = 1 ; //查询是否被我关注 $userid = $_SESSION['tsuser']['userid']; if($userid>0) { $ismyfollow = aac('site')->find('site_follow', array('userid'=>$userid,'follow_siteid'=>$siteid)); } //查询喜欢该小站的成员 $likeUsers = aac('site')->findAll('site_follow', array('follow_siteid'=>$siteid)); $likesiteNum = 0; foreach($likeUsers as $key=>$item) { $likesiteNum = $key + 1; $arrlikeUser[] = aac('user')->getOneUser($item['userid']); } $title = $strSite['sitename']."的小站"; include template("room"); break; }
12ik
trunk/app/site/action/mine.php
PHP
oos
1,320
<?php defined ( 'IN_IK' ) or die ( 'Access Denied.' ); //判断用户是否登录 $userid = aac('user') -> islogin(); switch ($ts) { case "" : //创建小站 $title = "创建小站"; include template("new_site"); break; case "create" : //开始创建 $sitename = trim($_POST['sitename']); $sitedesc = trim($_POST['sitedesc']); //安全新检查 if(mb_strlen($sitename,'utf8') > 15) tsNotice(mb_strlen($sitename,'utf8').'小站名称最多15个汉字或30个英文字母^_^'); if(mb_strlen($sitename,'utf8') > 250) tsNotice(mb_strlen($sitename,'utf8').'小站描述最多250个汉字^_^'); //配置文件是否需要审核 0: 未审核 1: 已审核 $isaudit = intval($IK_APP['options']['isaudit']); //重复性检查 $isSite = $db->once_fetch_assoc("select count(siteid) from ".dbprefix."site where sitename='$sitename'"); if($isSite['count(siteid)'] > 0) tsNotice("小站名称已经存在,请更换其他名称!"); //插入 $arrData = array( 'userid' => $userid, 'sitename' => h($sitename), 'sitedesc' => h($sitedesc), 'isaudit' => $isaudit, 'addtime' => time(), ); $siteid = $db->insertArr($arrData,dbprefix.'site'); //初始化 room $arrRoomData = array( 'siteid' => $siteid, 'userid' => $userid, 'name' => '未命名房间', 'addtime' => time(), ); $roomid = $db->insertArr($arrRoomData,dbprefix.'site_room'); //初始化导航 $NavOrderId = $db->insertArr(array('siteid'=>$siteid, 'ordertext'=>$roomid),dbprefix.'site_room_navorder'); //处理标签 aac('tag')->addTag('site','siteid',$siteid,trim($_POST['tag'])); if($isaudit == '0') { $title = "提交申请成功"; include template ( 'result' ); }else{ //跳转到 小站首页 } break; }
12ik
trunk/app/site/action/new_site.php
PHP
oos
1,837
<div class="mod sp-tips"> <div class="setting-tips"> <h3>设计小站</h3> <p> 你可以随时更换小站的描述、主题外观,自定义背景图,甚至是各个元素的颜色。 <br> 修改之后记得保存,这样才会生效。 </p> </div> </div>
12ik
trunk/app/site/html/admins_aside.html
HTML
oos
327
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <style> div.edit { display:none; } .sort .hd h2 { cursor:auto; } </style> <div id="bulletin-{$bulletinid}" class="mod sort"> <div class="hd"> <h2> <span>{$title}</span> <span class="pl"> ( <a href="{SITE_URL}{tsUrl('site','bulletin',array('siteid'=>$siteid,'ts'=>'update','bulletinid'=>$bulletinid))}">修改</a> ) </span> </h2> </div> <div class="bd"> <div data-id="{$bulletinid}" id="link-report{$bulletinid}" class="bulletin-content"> {php echo nl2br($strBulletin[content])} <div class="report" style="visibility: hidden;"><a href="#" rel="nofollow">举报</a></div> </div> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/bulletin_show.html
HTML
oos
1,246
<!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" /> <meta name="author" content="160780470@qq.com" /> <meta name="Copyright" content="{$IK_SOFT[info][copyright]" /> <title></title> <link type="text/css" rel="stylesheet" href="{$IK_APP[system][skin]}default/style.css" id="skin" /> <!--公用的JS--> <script src="{SITE_URL}public/js/jquery.js" type="text/javascript"></script> <script> var siteUrl = '{SITE_URL}'; </script> <script src="{SITE_URL}app/{$app}/js/admin.js" type="text/javascript"></script> </head> <body> <!--header-->
12ik
trunk/app/site/html/admin/header.html
HTML
oos
743
{php include template("admin/header");} <!--main--> <div class="midder"> {php include template("admin/menu");} <div>暂无配置</div> </div> {php include template("admin/footer");}
12ik
trunk/app/site/html/admin/options.html
HTML
oos
203
<h2>配置管理</h2> <div class="tabnav"> <ul> <li {if $mg=='options'} class="select" {/if} ><a href="{SITE_URL}index.php?app=site&ac=admin&mg=options">配置</a></li> <li {if $mg=='site' && $ts=='list'} class="select" {/if} ><a href="{SITE_URL}index.php?app=site&ac=admin&mg=site&ts=list">全部小站</a></li> </ul> </div>
12ik
trunk/app/site/html/admin/menu.html
HTML
oos
352
{php include template("admin/header");} <!--main--> <div class="midder"> {php include template("admin/menu");} <div class="page">{$pageUrl}</div> <table> <tr class="old"> <td>ID</td> <td>名称</td> <td>状态</td> <td>操作</td> </tr> <!--{loop $arrSite $key $item}--> <tr> <td>{$item[siteid]}</td> <td>{$item[sitename]}</td> <td>{if {$item[isaudit]}==0}<font color="red">未审核</font>{else}已审核{/if}</td> <td><a href="{SITE_URL}index.php?app=site&ac=admin&mg=site&ts=isaudit&isaudit={$item[isaudit]}&siteid={$item[siteid]}">审核</a></td></tr> <!--{/loop}--> </table> </div> {php include template("admin/footer");}
12ik
trunk/app/site/html/admin/site_list.html
HTML
oos
663
<!--footer--> </body> </html>
12ik
trunk/app/site/html/admin/footer.html
HTML
oos
29
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> .lnk-reply { margin-right:20px; } .op-lnks { visibility:hidden;text-align:right; } .over .op-lnks { visibility:visible; } .reply-quote { width:30em;padding-left:7px;margin:20px 0;border-left:1px solid; } .reply-quote .all { display: none } .reply-comment { width:90%;position:relative;padding:3px 4px;margin-bottom:5px;background-color:#e8eef2; } .reply-comment .lnk-close { position:absolute;right:10px;top:10px;line-height:1;padding:0 2px; } .reply-comment .lnk-close:link, .reply-comment .lnk-close:visited, .reply-comment .lnk-close:hover, .reply-comment .lnk-close:active { font-size:16px; } .reply-comment .lnk-close:link { color:#999; } .reply-comment .lnk-close:hover { background-color:#999;color:#fff; } .reply-comment p { width:30em;padding:6px;margin:0; } .reply-comment .pubdate { white-space:nowrap;margin-left:10px; } </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'list','forumid'=>$strdiscuss[forumid]))}">&gt; {$strForum[title]}</a> </div> <h1>{$strdiscuss[title]}</h1> <div class="mod"> <div class="post"> <div class="post-author"> <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$strUser[doname]))}"><img src="{$strUser[face]}" class="pil"></a> </div> <div class="post-content"> <div class="post-info"> <span class="datetime">{php echo date('Y-m-d H:i:s',$strdiscuss[addtime])}</span> <span class="from">来自: <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$strUser[doname]))}">{$strUser[username]}</a>(性格决定命运)</span> </div> <p id="link-report"> {$strdiscuss[content]} {if $userid>0}<span class="report"><a href="#" rel="nofollow">举报</a></span>{/if} </p> <div class="post-func"> {if $strdiscuss[userid] == $userid} <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'editdiscuss','forumid'=>$forumid,'discussid'=>$discussid))}" rel="nofollow">&gt; 修改&#12288;</a> <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'deldiscuss','forumid'=>$forumid,'discussid'=>$discussid))}" rel="nofollow" onClick="return confirm('真的要删除“$strdiscuss[title]”?')" >&gt; 删除&#12288;</a> {/if} {if $strForum[userid] == $userid && $strdiscuss[userid] != $userid} <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'deldiscuss','forumid'=>$forumid,'discussid'=>$discussid))}" rel="nofollow" onClick="return confirm('真的要删除"$strdiscuss[title]"?')">&gt; 删除&#12288;</a> {/if} {if $strForum[userid] == $userid} <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'istop','forumid'=>$forumid,'discussid'=>$discussid))}" rel="nofollow">&gt; {if $strdiscuss[istop]==0}置顶{else}取消置顶{/if}&#12288;</a> {/if} </div> </div> </div> <!--评论--> <div class="post-comments"> <div id="comments"> <!--{loop $arrComment $item}--> <div id="13299013" class="comment-item"> <div class="pic"> <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[user][doname]))}"><img alt="{$item[user][username]}" src="{$item[user][face]}"></a> </div> <div class="content report-comment"> <div class="author"> <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[user][doname]))}">{$item[user][username]}</a> {php echo date('Y-m-d H:i:s',$item[addtime])} </div> <p>{php echo nl2br($item[content])}</p> <div class="op-lnks"> {if $userid>0} {if $item[user][userid]==$userid || $strForum[userid]==$userid} <a title="删除{$item[user][username]}的留言?" class="" href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'del_comment','forumid'=>$forumid,'discussid'=>$discussid,'commentid'=>$item['commentid']))}" rel="nofollow" onClick="return confirm('删除{$item[user][username]}的留言?')">删除</a> {/if} {/if} {if $userid>0}<span class="comment-report"><a href="#" rel="nofollow">举报</a></span>{/if} </div> </div> </div> <!--{/loop}--> <div id="last"></div> {if $userid == '' } <div class="comment-lnk">&gt;&nbsp; <a href="#add_comment" rel="nofollow" class="a_show_login">我来回应</a> </div> {/if} {if $mycommentTime && $userid>0} <h2>你的回应 &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;· </h2> <div id="add_comment" class="comment-form txd"> <form action="{SITE_URL}{tsUrl('site','forum',array('ts'=>'add_comment','forumid'=>$forumid,'discussid'=>$discussid))}" method="post" name="comment_form"> <div style="display:none;"> <input type="hidden" value="-PMQ" name="ck"> </div> <div class="item"> <textarea cols="64" rows="4" name="content"></textarea> <br> </div> <div class="item"> <span class="bn-flat-hot "> <input type="submit" value="加上去"> </span> </div> </form> </div> {elseif $userid>0} <div class="comment-lnk">&gt;&nbsp; <a href="{SITE_URL}{tsUrl('site','forum',array('forumid'=>$forumid,'discussid'=>$discussid,'goon'=>'1'))}#add_comment" rel="nofollow">继续发言</a> </div> {/if} </div> </div> <!--//评论--> {template comment_tpl} </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/forum_discuss_show.html
HTML
oos
6,311
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <title> {$title} </title> <meta name="robots" content="all" /> <meta name="Copyright" content="{$IK_SOFT[info][name]}" /> <meta name="keywords" content="" /> <meta name="description" content="{$strSite[sitedesc]}"> <link rel="icon" type="image/ico" href="{SITE_URL}public/images/fav.ico"> <style> @import url({SITE_URL}app/{$app}/css/core.css); @import url({SITE_URL}app/{$app}/css/site/common.css); <!--{if $ac=='admins'}--> @import url({SITE_URL}app/{$app}/css/site/setting.css); <!--{/if}--> </style> <script>var siteUrl = '{SITE_URL}';</script> <script src="{SITE_URL}public/js/IK.js" type="text/javascript" data-cfg-corelib="{SITE_URL}public/js/jquery.js"></script> <script type="text/javascript"> IK.add('common', {path: '{SITE_URL}app/site/js/common.js', type: 'js'}); IK.add('sharetool', {path: '{SITE_URL}public/js/lib/sharetool.js', type: 'js' , requires: ['common']}); IK.add('common-eventhandler', {path: '{SITE_URL}app/site/js/common_eventhandler.js', type: 'js', requires: ['common']}); IK.add('setting-eventhandler', {path: '{SITE_URL}app/site/js/setting_eventhandler.js', type: 'js', requires: ['common']}); IK.add('dialog-css', {path: '{SITE_URL}public/css/ui/dialog.css', type: 'css'}); IK.add('dialog', {path: '{SITE_URL}public/js/ui/dialog.js', type: 'js', requires: ['dialog-css']}); //Do.add('swf', {path: '{SITE_URL}public/js/swfobject.js', type: 'js'}); //Do.add('video', {path: '{SITE_URL}public/js/site/video.js', type: 'js'}); //Do.add('artist', {path: '{SITE_URL}public/js/site/artist.js', type: 'js', requires: ['swf']}); IK.add('slider', {path: '{SITE_URL}app/site/js/slider.js', type: 'js'}); IK.add('effects', {path: '{SITE_URL}public/js/ui/jquery-ui-effects-core.min.js', type: 'js'}); IK.add('room-setting', {path: '{SITE_URL}app/site/js/room-setting.js', type: 'js'}); IK.add('room-action', {path: '{SITE_URL}app/site/js/room-action.js', type: 'js' , requires: ['common']}); IK.global('common', 'common-eventhandler'); var STATIC_FILE_VER = '53019'; var roomHoverColor = 'rgb(90,83,12)'; </script> <!--{if $strSite[istheme] == 0}--> <link id="sys-theme" rel="stylesheet" type="text/css" href="{SITE_URL}app/{$app}/css/site/theme/1/core.css" /> <style id="init-theme"> #theme-bg {background-color: #e7e3cd} #theme-banner {background-color:#f56147} #theme-tag-bg {background-color:#7a7643} #theme-tag-link {background-color:#7b6363} #theme-link {background-color: #938c1b} </style> <!--{else}--> <!--{if $strTheme[theme_id] == 0}--> <link id="sys-theme" rel="stylesheet" type="text/css" href="" /> <!--{else}--> <link id="sys-theme" rel="stylesheet" type="text/css" href="{SITE_URL}app/{$app}/css/site/theme/{$strTheme[theme_id]}/core.css" /> <!--{/if}--> <style id="init-theme"> #theme-bg {background-color: $strTheme[background_color]} #theme-banner {background-color: $strTheme[banner_color]} #theme-tag-bg {background-color: $strTheme[tab_color]} #theme-tag-link {background-color: $strTheme[tab_link_color]} #theme-link {background-color: $strTheme[link_color]} </style> <style id="custom-theme"> /* global custom theme */ <!--{if $strTheme[background_color]}--> .bg { background-color: $strTheme[background_color] } <!--{/if}--> <!--{if $strTheme[background_cancel]=='true' }--> .bg { background-image: none} <!--{/if}--> <!--{if $strTheme[background_cancel]=='false' && $strTheme[background_image]!=''}--> .bg { background-image:url({SITE_URL}uploadfile/site/custom/theme/$strTheme[background_ver]/$strTheme[background_image]?ver=$strTheme[background_ver]);} <!--{/if}--> .bg .mask { display: none } <!--{if $strTheme[background_pos]}--> .bg { background-position: $strTheme[background_pos] top } <!--{/if}--> <!--{if $strTheme[background_repeat]}--> .bg { background-repeat: $strTheme[background_repeat] } <!--{/if}--> <!--{if $strTheme[link_color]}--> .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, .mod a, #footer a, .content-nav a { color: $strTheme[link_color]} .top-nav .top-nav-info a:hover, .mod a:hover, #footer a:hover, .content-nav a:hover { color: #fff; background-color: $strTheme[link_color] } <!--{/if}--> <!--{if $strTheme[banner_color]}--> .sp-nav { background-color: $strTheme[banner_color] } <!--{/if}--> <!--{if $strTheme[tab_color]}--> .nav-items li { background-color: $strTheme[tab_color] } .nav-items li.on { border-color: $strTheme[tab_color] } .nav-items li#room-more ul { border-color: $strTheme[tab_color]; } <!--{/if}--> <!--{if $strTheme[tab_link_color]}--> .nav-items li a:link, .nav-items li a:visited { color: $strTheme[tab_link_color] } <!--{/if}--> <!--{if $strTheme[tab_color]}--> .nav-items li a:hover { background-color: $strTheme[tab_color]; } <!--{/if}--> <!--{if $strTheme[tab_color] || $strTheme[tab_link_color] }--> .nav-items li#room-more li a:hover { background-color: $strTheme[tab_color] ;color: $strTheme[tab_link_color] } .type-nav .on a, .type-nav a:hover{ background-color: $strTheme[tab_color]; color:#fff} <!--{/if}--> </style> <!--{/if}--> </head> <body id="{$strSite[siteid]}"> <div class="wrapper">
12ik
trunk/app/site/html/site_header.html
HTML
oos
5,278
{php include pubTemplate("header");}
12ik
trunk/app/site/html/header.html
HTML
oos
36
{template header} <div class="midder"> <div class="mc"> <h1>{$title}</h1> <div class="cleft"> <div class="footer"> <span>这里看上去很冷清?尝试喜欢更多小站来发现感兴趣的内容吧</span>&nbsp;&nbsp;&nbsp;&nbsp; <a href="{SITE_URL}{tsUrl('site','explore',array('ts'=>'site'))}">发现更多小站</a> </div> </div> <div class="cright"> <!--{if $IK_USER[user][userid] !='' }--> <p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('site','explore',array('ts'=>'site'))}">发现更多小站</a></p> <p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('site','new_site')}">申请创建小站</a></p> <!--{/if}--> </div> </div> </div> {template footer}
12ik
trunk/app/site/html/index.html
HTML
oos
808
<div id="footer"> <div class="db-inc"> <span class="about"> <a href="{SITE_URL}{tsUrl('home','about')}">关于12IK</a> · <a href="{SITE_URL}{tsUrl('home','contact')}">联系我们</a> · <a href="{SITE_URL}{tsUrl('home','agreement')}">用户条款</a> · <a href="{SITE_URL}{tsUrl('home','privacy')}">隐私申明</a> </span> <span class="copyright"> &copy; 2012-2015 12ik.com, all rights reserved </span> <p>Powered by <a class="softname" href="{$IK_SOFT[info][url]}">{$IK_SOFT[info][name]}</a> {$IK_SOFT[info][version]} {$IK_SOFT[info][year]} {$IK_SITE[base][site_icp]}<br /><span style="font-size:0.83em;">Processed in {$runTime} second(s)</span></p> </div> </div> </div><!--//wraper--> <div class="bg">&nbsp;<div class="mask">&nbsp;</div></div> </body> </html>
12ik
trunk/app/site/html/site_footer.html
HTML
oos
876
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>{$title}</h1> <div class="mod" id="sp-setting"> <div class="hd"></div> <div class="bd"> <form enctype="multipart/form-data" method="post" action="{SITE_URL}{tsUrl('site','admins',array('ts'=>'icon','siteid'=>$siteid))}" id="sp-setting-icon" target="iframe-post-form"> <div style="display:none;"><input type="hidden" value="oVDl" name="ck"></div> <div class="sp-icon" id="icon_{$strSite[px]}_{$strSite[py]}_{$strSite[pw]}"> <img alt="" src="{$strSite[icon_180]}?v={php echo rand();}" id="cropbox" style="display: none;" rel='{$strSite[iconpath]}'/> </div> <ul class="sp-icon-opt"> <li> <h2>从你的电脑里选择一张图片作为小站的图标吧</h2> <p class="tips">你可以上传 JPG, JPEG, GIF, PNG 或 BMP 文件</p> <p><input type="file" name="picfile" accept= "image/*" id="file-icon"></p> </li> <li class="last"> <h2>这是你在爱客上的小站图标</h2> <p class="clearfix"> <span class="icon-wrapper"> <img src="{$strSite[icon_180]}?v={php echo rand();}" class="sp-icon-s" id="preview" /> </span> 随意拖拽或缩放大图中的虚线方格,预览的小图即图标。 </p> <p class="submit-icon"> <span class="bn-flat-hot"><input type="submit" value="保存图标设置" hidefocus="1" name="pf_submit" id="submit-crop"></span> <a name="pf_cancel" href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'info','siteid'=>$siteid))}">取消</a> </p> </li> </ul> </form> </div> <script> IK.add('Jcrop-css', {path: '{SITE_URL}public/css/lib/jquery.Jcrop.css', type: 'css'}); IK.add('Jcrop', {path: '{SITE_URL}public/js/lib/jquery.Jcrop.min.js', type: 'js', requires: ['Jcrop-css']}); IK.add('iframe-post-form-css', {path: '{SITE_URL}public/css/lib/iframe-post-form.css', type: 'css'}); IK.add('iframe-post-form', {path: '{SITE_URL}public/js/lib/iframe-post-form.min.js', type: 'js', requires: ['iframe-post-form-css']}); //依赖于 Jcrop iframe-post-form 库 IK('Jcrop', 'iframe-post-form', function () { $(function(){ var cropW = '', cropX = '', cropY = '', iconVer = 0, selectX = 0, selectY = 0, selectW = 100, oJcropApi = {}, css_cropbox = '#cropbox', css_preview = '#preview', css_tips = '#upload-tips', css_error_tips = '.error-tips', css_holder = '.jcrop-holder', css_file_icon = '#file-icon', oSubmit = $('#submit-crop'), oForm = $('#sp-setting-icon'), oFileInput = $('#file-icon'), oCancel = $('a[name=pf_cancel]'), defaultPos = [ 0, 0, 100, 100 ], postUrl = location.pathname,//发送url siteName = $('body').attr('id'), currSize = $('.sp-icon').attr('id').split('_').slice(1, 4), //settingUrl = postUrl.split('/').slice(0, 3).join('/') + '/', settingUrl = "{SITE_URL}{tsUrl('site','admins',array('ts'=>'info','siteid'=>$strSite[siteid]))}", tmpl_upload_tips = '<p id="upload-tips">上传中,请稍候...</p>', tmpl_error_tips = '<p class="error-tips">图片短边尺寸不能小于100像素,请重新上传。</p>', initJcrop = function () { // init setSelect value if (currSize) { selectX = parseInt(currSize[0]), selectY = parseInt(currSize[1]), selectW = parseInt(currSize[2]); } // init Jcrop setTimeout(function () { oJcropApi = $.Jcrop(css_cropbox, { onChange: showPreview, onSelect: showPreview, aspectRatio: 1 }), oJcropApi.animateTo([ selectX, selectY, selectW, selectW ]); }, 500); }; if (!currSize[0]) { currSize = [0,0,selectW]; } function showPreview (coords) { if (parseInt(coords.w) > 0) { var rx = 48 / coords.w, ry = 48 / coords.h; cropW = Math.ceil(coords.w), cropX = coords.x, cropY = coords.y; $(css_preview).css({ width: Math.round(rx * $(css_cropbox).width()) + 'px', height: Math.round(ry * $(css_cropbox).height()) + 'px', marginLeft: '-' + Math.round(rx * coords.x) + 'px', marginTop: '-' + Math.round(ry * coords.y) + 'px' }); } } initJcrop(); // ajax upload oForm.iframePostForm({ post: function () { oJcropApi.destroy(); oJcropApi = {}; $(css_error_tips).remove(); }, complete: function (icon) { var data, realJson; data = icon.match(/\{[^\}]+\}/)[0]; oFileInput.attr('disabled', 0); if (!data) { return; } realJson = eval('(' + data + ')'); if (realJson.error && !$(css_error_tips).length) { oFileInput.parent().after(tmpl_error_tips); } iconVer = realJson.ver; $(css_tips).remove(); $(css_cropbox + ', ' + css_preview).attr('src', realJson.pic+'?v='+ Math.ceil(Math.random()*1000)); $(css_cropbox).attr('rel',realJson.pic);//标示是否是上传图片 setTimeout(function () { oJcropApi = $.Jcrop(css_cropbox, { onChange: showPreview, onSelect: showPreview, aspectRatio: 1 }); oJcropApi.animateTo(defaultPos); }, 500); } }).find(css_file_icon).change(function () { if (!$(css_tips).length) { oFileInput.after(tmpl_upload_tips); } //oFileInput.attr('disabled', 1); $(this).parents('form').submit(); }); // submit crop value oSubmit.click(function (e) { e.preventDefault(); if($(css_cropbox).attr('rel')=='') { //location.href = settingUrl; oFileInput.parent().after(tmpl_error_tips); $(css_error_tips).html('请上传一张图片在保存吧!'); }else{ $.post_withck(postUrl, { 'version': iconVer, 'imgpos': cropX + '_' + cropY + '_' + cropW }, function () { location.href = settingUrl; //location.href = postUrl; }); } }); /* oCancel.click(function (e) { e.preventDefault(); location.href = '/' + siteName + '/admin/'; }); */ }); }); </script> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/icon.html
HTML
oos
8,789
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'list','forumid'=>$forumid))}">&gt; 返回{$strForum[title]}</a> </div> <h1>{$title}</h1> <div class="mod"> <form id="db-frm-discuss" method="post" action="{SITE_URL}{tsUrl('site','forum',array('ts'=>'updatediscuss','forumid'=>$forumid,'discussid'=>$discussid))}"> <div style="display:none;"><input type="hidden" name="ck" value="_qHl"/></div> <div class="attn" id="errordiv"></div> <div class="item"> <label>标题: </label> <input class="post-title" name="title" type="text" maxlength="100" value="{$strDiscusion[title]}" style="width:88%;"> </div> <div class="item"> <label><img src="{$strUser[face]}" width="40"></label> <textarea name="content" rows="30" cols="69" style="width:88%; height:300px">{$strDiscusion[content]}</textarea> </div> <div class="item-submit"> <span class="bn-flat-hot"><input name="submit" type="submit" value="好了,说吧"/></span> &nbsp;&nbsp;&nbsp; <span class="bn-flat"><input name="cancel" type="button" value="撤消" onClick="javascript:history.go(-1)" /></span> </div> </form> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/forum_discuss_edit.html
HTML
oos
1,727
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>小站管理</h1> <div class="mod" id="sp-setting"> <div class="hd"> {template setting_nav} </div> <div class="bd"> <h2>请选择一个主题</h2> <ul class="list-s sys-bg-list"> <li id="bg-1" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/1/thumbnail.png" {if $strTheme[theme_id]==1} class="selected" {/if}></li> <li id="bg-2" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/2/thumbnail.png" {if $strTheme[theme_id]==2} class="selected" {/if}></li> <li id="bg-3" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/3/thumbnail.png" {if $strTheme[theme_id]==3} class="selected" {/if}></li> <li id="bg-4" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/4/thumbnail.png" {if $strTheme[theme_id]==4} class="selected" {/if}></li> <li id="bg-5" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/5/thumbnail.png" {if $strTheme[theme_id]==5} class="selected" {/if}></li> <li id="bg-6" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/6/thumbnail.png" {if $strTheme[theme_id]==6} class="selected" {/if}></li> <li id="bg-7" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/7/thumbnail.png" {if $strTheme[theme_id]==7} class="selected" {/if}></li> <li id="bg-8" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/8/thumbnail.png" {if $strTheme[theme_id]==8} class="selected" {/if}></li> <li id="bg-9" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/9/thumbnail.png" {if $strTheme[theme_id]==9} class="selected" {/if}></li> <li id="bg-10" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/10/thumbnail.png" {if $strTheme[theme_id]==10} class="selected" {/if}></li> <li id="bg-11" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/11/thumbnail.png" {if $strTheme[theme_id]==11} class="selected" {/if}></li> <li id="bg-12" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/12/thumbnail.png" {if $strTheme[theme_id]==12} class="selected" {/if}></li> <li id="bg-13" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/13/thumbnail.png" {if $strTheme[theme_id]==13} class="selected" {/if}></li> <li id="bg-14" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/14/thumbnail.png" {if $strTheme[theme_id]==14} class="selected" {/if}></li> <li id="bg-15" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/15/thumbnail.png" {if $strTheme[theme_id]==15} class="selected" {/if}></li> <li id="bg-16" ><img alt="" src="{SITE_URL}app/site/pics/site/theme/16/thumbnail.png" {if $strTheme[theme_id]==16} class="selected" {/if}></li> </ul> <div class="sp-design-opt"> <input type="button" value="修改背景图" class="btn-large" name="bg-modify" hidefocus="hidefocus"> <input type="button" value="修改主题颜色" class="btn-large" name="theme-modify" hidefocus="hidefocus"> <form enctype="multipart/form-data" method="post" action="{SITE_URL}{tsUrl('site','custom',array('ts'=>'background','siteid'=>$strSite[siteid]))}" id="bg-upload-form" target="iframe-post-form"> <div style="display:none;"><input type="hidden" value="{$strTheme[ck]}" name="ck"> <input type="hidden" value="{$strTheme[background_ver]}" name="ver"></div> <input type="file" id="sp-bg-upload" name="picfile"> <label for="sp-bg-upload">背景图高度300px,可以上传不超过800KB的 JPG, JPEG, GIF, PNG 文件</label> </form> <div class="mod-setting" id="sp-bg-modify"> <div class="sp-bg-preview"> <!--{if $strTheme[background_cancel]!='true'}--> <span title="应用背景图" class="sp-bg-show selected"> <!--{if $strTheme[background_image]}--> <img src="uploadfile/site/custom/theme/{$strTheme[background_ver]}/{$strTheme[background_image]}?ver={$strTheme[background_ver]}" class="sys-bg" bgimg="{$strTheme[background_image]}" bgpath="{$strTheme[background_path]}"> <!--{/if}--> <!--{if $strTheme[theme_id]!=0}--> <img src="{SITE_URL}app/site/pics/site/theme/$strTheme[theme_id]/thumbnail.png" class="sys-bg" bgimg="" bgpath=""> <!--{/if}--> </span> <!--{else}--> <span title="应用背景图" class="sp-bg-show"></span> <!--{/if}--> <!--{if $strTheme[background_cancel]== 'true'}--> <span title="取消背景图" class="sp-bg-none selected"></span> <!--{else}--> <span title="取消背景图" class="sp-bg-none"></span> <!--{/if}--> <div class="sp-bg-sel"> <input type="radio" value="left" name="sp-bg" id="pos-left"> <label for="pos-left">居左</label> <input type="radio" value="center" name="sp-bg" id="pos-center"> <label for="pos-center">居中</label> <input type="radio" value="right" name="sp-bg" id="pos-right"> <label for="pos-right">居右</label> <br> <input type="checkbox" id="sp-bg-repeat" {if $strTheme[background_repeat]=='repeat'}checked="checked"{/if}> <label for="sp-bg-repeat">平铺背景图片</label> <br> </div> </div> </div> <div class="mod-setting" id="sp-theme-modify"> <div id="picker" style="float: right;"></div> <div class="sp-theme-sel"> <ul> <li> <span class="kind">页面背景</span> <a hidefocus="true" id="theme-bg" href="javascript:;"><em>▼</em></a> </li> <li> <span class="kind">顶部横幅背景</span> <a hidefocus="true" id="theme-banner" href="javascript:;"><em>▼</em></a> </li> <li> <span class="kind">顶部标签背景</span> <a hidefocus="true" id="theme-tag-bg" href="#"><em>▼</em></a> </li> <li> <span class="kind">顶部标签文字</span> <a hidefocus="true" id="theme-tag-link" href="#"><em>▼</em></a> </li> <li> <span class="kind">页面链接</span> <a hidefocus="true" id="theme-link" href="#"><em>▼</em></a> </li> </ul> </div> </div> <div class="sp-setting-btn"> <span href="" class="bn-flat-hot" id="submit-theme"><input type="submit" hidefocus="1" value="保存修改"></span> <a href="#" id="cancel-theme">取消</a> </div> <script> IK.add('colorpicker-css', {path: '{SITE_URL}public/js/colorpicker/css/colorpicker.css', type: 'css'}); IK.add('colorpicker', {path: '{SITE_URL}public/js/colorpicker/js/colorpicker.js', type: 'js', requires: ['colorpicker-css']}); IK.add('effects', {path: '{SITE_URL}public/js/ui/jquery-ui-effects-core.min.js', type: 'js'}); IK.add('iframe-post-form-css', {path: '{SITE_URL}public/css/lib/iframe-post-form.css', type: 'css'}); IK.add('iframe-post-form', {path: '{SITE_URL}public/js/lib/iframe-post-form.min.js', type: 'js', requires: ['iframe-post-form-css']}); IK('colorpicker', 'effects', 'iframe-post-form', function () { var self, bgVer = '', currId = '', currColor = '', bgRepeat = '', oBg = $('.bg'), oBgRepeat = $('#sp-bg-repeat'), oColorSelector = $('.sp-theme-sel a'), siteId = $('body').attr('id'), rgb2hex = function (rgb) { if (!$.browser.msie) { var hexDigits = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'], rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/); hex = function (x) { return isNaN(x) ? '00' : hexDigits[(x - x % 16) / 16] + hexDigits[x % 16]; } return '#' + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]); } else { return rgb; } }, getBgColor = function (o) { return rgb2hex(o.css('background-color')); }, removeTips = function () { $(css_top_tips).slideUp(function () { $(this).remove(); }) }, oThumbnail = $('.sys-bg-list li'), oInputAll = $('.sp-bg-sel input'), oBgPos = $('input[name="sp-bg"]'), oInitTheme = $('#init-theme'), oCustomTheme = $('#custom-theme'), oThemeCSS = $('#sys-theme'), oBgShow = $('.sp-bg-show'), oBgNone = $('.sp-bg-none'), oSwither = $('.btn-large'), oFormUpload = $('#bg-upload-form'), oUpload = $('#sp-bg-upload'), oSubmit = $('#submit-theme'), oBgCancel = $('#cancel-theme'), css_tips = '#upload-tips', css_top_tips = '#top-tips', css_error_tips = '.error-tips', css_bn_active = 'btn-large-active', tmpl_upload_tips = '<span id="upload-tips">上传中,请稍候...</span>', tmpl_top_tips = '<div id="top-tips">你的最新设置已经被成功保存.</div>', tmpl_error_tips = '<span class="error-tips">文件大小不得超过800k</span>', designStatus = { hasThemeId: false, hasBgPos: false, hasBgRepeat: false, hasCustomColor: false }, initInput = function () { var posX = $.browser.msie ? oBg.css('background-positionX') : oBg.css('background-position').split(' ')[0]; // init background repeat if (oBg.css('background-repeat') !== 'no-repeat') { oBgRepeat.attr('checked', 'checked'); } else { oBgRepeat.removeAttr('checked'); } // init background position if (posX === '0%') { $('#pos-left').attr('checked', 'checked'); } else if (posX === '50%') { $('#pos-center').attr('checked', 'checked'); } }; initInput(); //颜色选择器 oColorSelector.ColorPicker({ onBeforeShow: function () { self = this, currId = $(self).attr('id'), currColor = getBgColor($(self)); $(this).ColorPickerSetColor(currColor); }, onChange: function (hsb, hex, rgb) { switch (currId) { case 'theme-bg': oBg.css('background-color', '#' + hex); break; case 'theme-banner': $('.sp-nav').css('background', '#' + hex); break; case 'theme-tag-bg': $('.nav-items li').css('background', '#' + hex); $('.type-nav .on a, .type-nav a:hover').css({'background':'#' + hex,'color':'#fff'}); $('.nav-items .on').css('background', '#fff'); break; case 'theme-tag-link': $('.nav-items a').css('color', '#' + hex); break; case 'theme-link': $('.top-nav-info a, #footer a').css('color', '#' + hex); break; } $(self).css('backgroundColor', '#' + hex); designStatus.hasCustomColor = true; } }).click(function (e) { e.preventDefault(); }); // 系统风格 oThumbnail.click(function (e) { var id = $(this).attr('id').split('-')[1], bgUrl = siteUrl+'app/site/pics/site/theme/' + id + '/bg.png', src = $(this).children().attr('src'); // change style oCustomTheme.remove(); oInitTheme.remove(); oInputAll.removeAttr('disabled'); oThumbnail.children('.selected').removeClass(); $('img', this).attr('class', 'selected'); oBgShow.html('<img class="sys-bg" src="' + src + '" />').addClass('selected');//应用背景图 oBgNone.removeClass('selected'); //取消应用背景图 oBgRepeat.removeAttr('checked'); // clear inline style $('.bg, .sp-nav, .nav-items li, .nav-items .on, .nav-items a, .top-nav-info a, #footer a, #theme-bg, #theme-banner, #theme-tag-bg, #theme-tag-link, #theme-link').removeAttr('style'); oThemeCSS.attr('href', siteUrl+'app/site/css/site/theme/' + id + '/core.css'); // clear flag //bgVer = ''; designStatus.hasBgPos = false; designStatus.hasBgRepeat = false; designStatus.hasCustomColor = false; designStatus.hasThemeId = true; // initInput(); }); //去背景图 oBgNone.click(function () { $(this).addClass('selected').prev().removeClass('selected'); oBg.css('background-image', 'none'); oInputAll.attr('disabled', 'disabled'); }); //设置背景图 oBgShow.click(function () { var currBg; $(this).attr('class', 'sp-bg-show selected'). next().removeClass('selected'); // restore background if ($('img', this).hasClass('sys-bg')) { currBg = $('img', this).attr('src').replace('thumbnail', 'bg'); } else { currBg = $('img', this).attr('src'); } oInputAll.removeAttr('disabled'); oBg.css('background-image', 'url(' + currBg + ')'); }); // 背景图位置 oBgPos.change(function () { var bgPosX = $(this).val(); oBg.css('background-position', bgPosX + ' top' ); designStatus.hasBgPos = true; }); // 背景重复 oBgRepeat.change(function () { var isRepeat = $(this).is(':checked'); oBg.css('background-repeat', isRepeat ? 'repeat' : 'no-repeat'); designStatus.hasBgRepeat = true; }); /* 标签切换 */ oSwither.click(function (e) { e.preventDefault(); var btnId = '#sp-' + $(this).attr('name'); if (!$(this).hasClass(css_bn_active)) { $('.btn-large').removeClass(css_bn_active); $(this).addClass(css_bn_active); $('.mod-setting').hide(); $(btnId).fadeIn(); if (btnId === '#sp-bg-modify') { oFormUpload.show(); } else { oFormUpload.hide(); } } }); // ajax 上传背景图 oFormUpload.iframePostForm({ post: function () { if (!$(css_tips).length) { oUpload.after(tmpl_upload_tips); } $(css_error_tips).remove(); }, complete: function (bg) { var realJson = eval('(' + bg.match(/\{[^\}]+\}/)[0] + ')'), bgUrl = realJson.pic, path = realJson.path, url = realJson.url; // save bg version bgVer = realJson.ver; designStatus.hasBgVer = true; //设置版本 $('input[name=ver]').val(bgVer); // remove uploading tips $(css_tips).remove(); if (!realJson.error) { oBgShow.html('<img src="' + bgUrl + '" bgimg="'+url+'" bgpath="'+path+'"/>'); oBg.css({ 'background-image': 'url(' + bgUrl + ')', 'background-position': 'left top', 'background-repeat': 'repeat' }); $('#pos-left').attr('checked', 'checked'); oBgRepeat.attr('checked', 'checked'); designStatus.hasBgRepeat = true; // remove system theme selected border oThumbnail.children('img').removeClass(); oBgNone.removeClass('selected'); oBgShow.addClass('selected'); oInputAll.removeAttr('disabled'); } else { if (!$(css_error_tips).length) { oUpload.after(tmpl_error_tips); } } } }).find('#sp-bg-upload').change(function () { $(this).parent().submit(); }); // 取消设置 oBgCancel.click(function (e) { e.preventDefault(); window.location.reload(); }); /* 保存theme */ oSubmit.click(function (e) { e.preventDefault(); var isCustom = oThumbnail.children('img').hasClass('selected'), sysThemeId = '', themeBg = '', themeBanner = '', themeTagBg = '', themeTagLink = '', themeLink = '', bgPos = '', bgRepeat = '', bgNone = '',bgimg = '',bgpath=''; // get system themeId if (isCustom) { sysThemeId = $('.sys-bg-list .selected').parent().attr('id').split('-')[1]; } // get custom colors themeBg = getBgColor($('#theme-bg')), themeBanner = getBgColor($('#theme-banner')), themeTagBg = getBgColor($('#theme-tag-bg')), themeTagLink = getBgColor($('#theme-tag-link')); themeLink = getBgColor($('#theme-link')); // get background position bgPos = $('input[name="sp-bg"]:checked').val(); // get background repeat bgRepeat = oBgRepeat.is(':checked') ? 'repeat' : 'no-repeat'; // background none bgNone = oBgNone.hasClass('selected') ? true : false; // 背景图 bgimg = oBgShow.find('img').length > 0 ? oBgShow.find('img').attr('bgimg') : ''; bgpath = oBgShow.find('img').length > 0 ? oBgShow.find('img').attr('bgpath') : ''; // 背景固定 还是滚动 bgFixed = $('#sp-bg-fixed').is(':checked') ? 'fixed' : 'scorll'; bannerTransparent = $('#banner_transparent').is(':checked') ? true : false; // 开始保存 $.post_withck( siteUrl+'index.php?app=site&ac=custom&ts=savetheme&siteid=' + siteId , { 'theme_id': sysThemeId, 'background_ver': bgVer, 'background_pos': bgPos, 'background_repeat': bgRepeat, 'background_cancel': bgNone, 'background_color': themeBg, 'banner_color': themeBanner, 'tab_color': themeTagBg, 'tab_link_color': themeTagLink, 'link_color': themeLink, 'background_image' : bgimg, 'background_path' : bgpath, 'biz_theme': $('input[name="biz-theme"]:checked').val(), 'bg_fixed': bgFixed, 'logo_color': $('input[name="logo_color"]').val(), 'banner_transparent': bannerTransparent }, //成功 function () { if (!$(css_top_tips).length) { $('body').append(tmpl_top_tips); $(css_top_tips).slideDown(); setTimeout(removeTips, 5000); } } ); }); // close top tips $('body').delegate(css_top_tips, 'click', removeTips); }); </script> </div> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> {template admins_aside} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/design.html
HTML
oos
21,518
{template header} <script language="javascript"> $(function(){ $('.tags > li').bind('click',function(){ $('.tags > li a').removeClass('active'); $(this).find('a').addClass('active'); loadSite($(this).text(),1); }); }); </script> <div class="midder"> <div class="mc"> <h1>{$title}</h1> <div class="cleft"> <div class="tags-nav"> <ul class="tags"> <li><a class="active" href="javascript:;">爱客猜</a></li> <li><a href="javascript:;">生活</a></li> <li><a href="javascript:;">同城</a></li> <li><a href="javascript:;">影视</a></li> <li><a href="javascript:;">工作室</a></li> <li><a href="javascript:;">艺术</a></li> <li><a href="javascript:;">音乐</a></li> <li><a href="javascript:;">品牌</a></li> <li><a href="javascript:;">手工</a></li> <li><a href="javascript:;">闲聊</a></li> <li><a href="javascript:;">设计</a></li> <li><a href="javascript:;">服饰</a></li> <li><a href="javascript:;">摄影</a></li> <li><a href="javascript:;">媒体</a></li> <li><a href="javascript:;">美食</a></li> <li><a href="javascript:;">读书</a></li> <li><a href="javascript:;">公益</a></li> <li><a href="javascript:;">互联网</a></li> <li><a href="javascript:;">动漫</a></li> <li><a href="javascript:;">旅行</a></li> <li><a href="javascript:;">绘画</a></li> <li><a href="javascript:;">美容</a></li> <li><a href="javascript:;">购物</a></li> <li><a href="javascript:;">电影</a></li> <li><a href="javascript:;">教育公益</a></li> <li><a href="javascript:;">游戏</a></li> </ul> </div><!--//tag 结束--> <div class="site-list-wrap"> <div class="site-loading" style="display: none;"><span class="state">加载中</span></div> <ul class="site-list" style="display: block;"> <!--{loop $arrSite $item}--> <li class="site-item"> <div class="pic"> <a target="_blank" href="{SITE_URL}{tsUrl('site','mine',array('siteid'=>$item[siteid]))}" title="{$item[sitename]}"> <img width="75" height="75" alt="{$item[sitename]}" src="{$item[icon_75]}"> </a> </div> <div class="info"> <div class="title"> <a target="_blank" href="{SITE_URL}{tsUrl('site','mine',array('siteid'=>$item[siteid]))}" title="{$item[sitename]}">{$item[sitename]}</a> </div> <p>{php echo getsubstrutf8(t($item['sitedesc']),0,30);}</p> </div> </li> <!--{/loop}--> </ul> <div class="site-more" style="display:none"> <span class="stat">加载更多</span> </div> </div> </div> <div class="cright"> <h2> 最新推荐小站&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;· <span class="pl">&nbsp;(<a href="/partner/brand">更多</a>) </span> </h2> <div class="site-rec"> <ul class="list-items"> <li class="list-item"> <div class="pic"> <a href="http://site.douban.com/faw-vw/" target="_blank"> <img width="50" height="50" src="http://127.0.0.1/12ik/cache/group/0/0/48/8112da8e5f_48_48.jpg"> </a> </div> <div class="info"> <a href="http://site.douban.com/faw-vw/" target="_blank">一汽-大众</a> <p class="like-num">7769人喜欢</p> </div> </li> <li class="list-item"> <div class="pic"> <a href="http://site.douban.com/faw-vw/" target="_blank"> <img width="50" height="50" src="http://127.0.0.1/12ik/cache/group/0/0/48/8112da8e5f_48_48.jpg"> </a> </div> <div class="info"> <a href="http://site.douban.com/faw-vw/" target="_blank">一汽-大众</a> <p class="like-num">7769人喜欢</p> </div> </li> </ul> </div> <!--{if $IK_USER[user][userid] !='' }--> <p class="pl2">&gt; <a href="{SITE_URL}{tsUrl('site','new_site')}">申请创建小站</a></p> <!--{/if}--> </div><!--//end right--> </div> </div> {template footer}
12ik
trunk/app/site/html/site.html
HTML
oos
4,966
<style> .op-lnks {text-align: right;} #link-report .report { text-align: right; font-size: 12px; visibility: hidden; display:block} #link-report .report a { color: #BBB; } #link-report .report a:hover { color: #FFF; background-color: #BBB; } #comments .comment-report { float: right; margin-left: 10px; } #comments .comment-report { font-size: 12px; visibility: hidden; } #comments .comment-report a { color: #BBB; border: none; } #comments .comment-report a:hover { color: #FFF; background-color: #BBB; } </style> <script> IK = (typeof IK === 'undefined') ? $ : IK; IK(function(){ var reportDiv = "#link-report".concat(""); $("body").delegate(reportDiv, 'mouseenter mouseleave', function(e){ switch (e.type) { case "mouseenter": $(this).find(".report").css('visibility', 'visible'); break; case "mouseleave": $(this).find(".report").css('visibility', 'hidden'); break; } }); // $("#comments").delegate(".comment-item", 'mouseenter mouseleave', function (e) { switch (e.type) { case "mouseenter": $(this).find(".op-lnks").css('visibility', 'visible'); $(this).find(".comment-report").css('visibility', 'visible'); break; case "mouseleave": $(this).find(".op-lnks").css('visibility', 'hidden'); $(this).find(".comment-report").css('visibility', 'hidden'); break; } }); }); </script>
12ik
trunk/app/site/html/comment_tpl.html
HTML
oos
1,405
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'list','forumid'=>$forumid))}">&gt; 返回{$strForum[title]}</a> </div> <h1>{$title}</h1> <div class="mod"> <form id="db-frm-discuss" method="post"> <div style="display:none;"><input type="hidden" name="ck" value="_qHl"/></div> <div class="attn" id="errordiv"></div> <div class="item"> <label>标题: </label> <input class="post-title" name="title" type="text" maxlength="100" value="" style="width:88%;"> </div> <div class="item"> <label><img src="{$strUser[face]}" width="40"></label> <textarea name="content" rows="30" cols="69" style="width:88%; height:300px"></textarea> </div> <div class="item-submit"> <span class="bn-flat-hot"><input name="submit" type="submit" value="好了,说吧"/></span> &nbsp;&nbsp;&nbsp; <span class="bn-flat"><input name="cancel" type="button" value="撤消" onClick="javascript:history.go(-1)" /></span> </div> </form> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/forum_discuss_create.html
HTML
oos
1,565
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','room',array('siteid'=>$siteid,'roomid'=>$roomid))}">&gt; 回{$strSite[sitename]}</a> </div> <h1>{$title}</h1> <div class="title-link"> <a class="lnk-flat" href="{SITE_URL}{tsUrl('site','forum',array('ts'=>'create','forumid'=>$forumid))}">+ 发言</a> </div> <div class="mod"> <div class="post-list"> <table class="list-b"> <tr><td>话题</td><td>作者</td><td nowrap="nowrap">回应</td><td align="right">更新时间</td></tr> <!--{loop $arrDiscus $item}--> <tr> <td> {if $item[istop]==1}<img src="/public/images/stick.gif"/>{/if} <a title="{$item[title]}" href="{SITE_URL}{tsUrl('site','forum',array('forumid'=>$item[forumid],'discussid'=>$item[discussid]))}">{$item[title]}</a> </td> <td>来自 <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[user][doname]))}">$item[user][username]</a> </td> <td nowrap="nowrap" class="count">{$item[count_comment]}</td> <td class="date">{php echo date('Y-m-d H:i:s',$item[addtime])}</td> </tr> <!--{/loop}--> </table> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/forum_discuss_list.html
HTML
oos
1,827
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <style> #content h1 { margin-bottom:30px; } .main .mod { margin-bottom:10px;border-bottom:1px dashed #ddd; } #content .paginator { margin-top:30px; } #content .mod .hd { font-size: 14px; } #content .mod .hd span { color:#666; } #content .mod .hd .a_lnk_mod_setting { font-size:12px; } </style> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>{$title}</h1> <!--{loop $arrArchives $key $item}--> <div id="{$item[widgetname]}-{$item[widgetid]}" archives="1" class="mod"> <div class="hd"> <span>[<!--{$item[strwidget][widgetname]}-->]</span> <span><a href="{SITE_URL}{tsUrl('site',$item[widgetname],array('ts'=>'list',$item[widgetname].'id'=>$item[widgetid]))}"><!--{$item[widget][title]}--></a></span> <div class="edit"> <a href="javascript:;" rel="{SITE_URL}{tsUrl('site',$item[widgetname],array('ts'=>'settings',$item[widgetname].'id'=>$item[widgetid]))}" class="a_lnk_mod_setting">设置</a> </div> </div> </div> <!--{/loop}--> <script type="text/javascript">IK('common', 'setting-eventhandler'); </script> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/archives.html
HTML
oos
1,637
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>小站管理</h1> <div class="mod" id="sp-setting"> <div class="hd"> {template setting_nav} </div> <div class="bd"> <div class="mod" id="dou-balance"> <div class="bd"> <p>乖乖网暂时没有小豆</p> </div> </div> <div class="mod" id="dou-details"> <h2>最近记录</h2> <div class="bd"> <table cellspacing="0" cellpadding="0" border="0"> <thead> <tr> <th class="td-user">用户</th> <th class="td-in">收到</th> <th class="td-out">给出</th> <th class="td-datetime">时间</th> <th class="td-type">类型</th> <th>备注</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <div class="ft"> &gt; <a href="./?start=0">所有记录</a> </div> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> {template admins_aside} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/kedou.html
HTML
oos
1,611
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> {template site_header} </head> <body> <div class="wrapper"> <!--头部--> {template site_nav} <!--//头部--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>小站管理</h1> <div class="mod" id="sp-setting"> <div class="hd"> {template setting_nav} </div> <div class="mod notification-items"> <div class="bd"> <ul style="text-align:center" class="old">目前没有新的提醒了</ul> </div> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> {template admins_aside} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部--> </div> <div class="bg">&nbsp;<div class="mask">&nbsp;</div></div> </body> </html>
12ik
trunk/app/site/html/admins.html
HTML
oos
1,082
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>小站管理</h1> <div class="mod" id="sp-setting"> <div class="hd"> {template setting_nav} </div> <div class="bd"> <form method="post" id="sp-setting-form" tagName="form"> <div style="display:none;"><input type="hidden" value="SO-j" name="ck"></div> <div class="item"> <label>小站名称:</label> {$strSite[sitename]} </div> <div class="item"> <label>小站房间数:</label> {$siteNumber} <a title="添加新房间" href="javascript:;" id="new-room">添加新房间</a> </div> <div class="item"> <label>描述:</label> <textarea class="sp-desc" name="sitedesc">{$strSite[sitedesc]}</textarea> </div> <div class="item"> <label>标签:</label> <input value="{$arrSiteTags}" class="sp-input" name="tags"> </div> <div class="item"> <label>小站图标:</label> <img src="{$strSite[icon_180]}?v={php echo rand();}" class="sp-icon-b"> <img src="{$strSite[icon_48]}?v={php echo rand();}" class="sp-icon-s"> <a title="修改图标" href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'icon','siteid'=>$siteid))}">修改图标</a> </div> <div class="attn hide" id="error_msg"></div> <div class="item-submit"> <span class="bn-flat-hot"><input type="submit" value="保存" hidefocus="1" name="pf_submit"></span> <a name="pf_cancel" href="{SITE_URL}{tsUrl('site','mine',array('siteid'=>$siteid))}">取消</a> </div> </form> </div> </div> </div> <script> IK.add('validate', {path: '{SITE_URL}public/js/lib/validate.js', type: 'js', requires:['dialog']}); IK.ready('validate' , function(){ var site_id = $('body').attr('id'); var css_top_tips = '#top-tips', tmpl_top_tips = '<div id="top-tips">你的最新设置已经被成功保存.</div>', postUrl = '{SITE_URL}{tsUrl("site","admins",array("ts"=>"info","siteid"=>$siteid))}', removeTips = function () { $(css_top_tips).slideUp(function () { $(this).remove(); }) } _Form = $('#sp-setting-form'); //回调函数 var spSettingCallback = function (e) { hide_error(); checks = _Form.data('checks'); if (typeof checks === 'object' && checks.length) { var all_ok = true; for (var i=0; i<checks.length; i++) { all_ok = all_ok && checks[i](this); } if (!all_ok) { return false; } } //post data $.post( postUrl, _Form.serialize(), function (ret) { if (ret.r==0){ if (!$(css_top_tips).length) { $('body').append(tmpl_top_tips); $(css_top_tips).slideDown(); setTimeout(removeTips, 5000); } } else { show_error(ret.error); } }); }; hide_error = function () { $("#error_msg").text(''); $("#error_msg").addClass('hide'); } show_error = function (error){ $("#error_msg").text(error); $("#error_msg").removeClass('hide'); } function isNull(el){ if($(el).val() === '') return true; } function realLength(str){ return unescape(escape(str).replace(/%u[A-F0-9]{4}/g, 'xx')).length; } function max(num){ return function(el){ if(realLength($(el).val()) > num) return true; } } var validateRunles = { tags:{ elems: 'input[name=tags]', isNull: isNull, singleMax:function(el){ var tags = $.trim($(el).val().replace(/\s+/g,' ')); tags = tags.split(' '); for(var i = tags.length; i--;){ if(tags[i].length > 8){ return true; } } }, maxTags:function(el){ var tags = $.trim($(el).val()).replace(/\s+/g,' '); tags = tags.split(' '); if(tags.length > 5){ return true; } } } }, validateError = { tags:{ isNull: '小站标签不为空', singleMax:'每个标签最长8个汉字', maxTags: '小站标签不能超过5个' } }, optionMsg = { tags:"最多5个标签" }; var validateConfig = {}; // dirty trick validateConfig.callback = spSettingCallback; validateConfig.errorTempl = '<span class="validate-wrap"><span class="validate-error">{msg}</span></span>'; validateConfig.optionTempl = '<span class="validate-wrap"><span class="validate-option">{msg}</span></span>'; $('form').validateForm(validateRunles, validateError, optionMsg, validateConfig ); }); </script> <!--//main--> <!--aside--> <div class="aside"> {template admins_aside} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/info.html
HTML
oos
6,227
<ul class="type-nav"> <li {if $ts=='remind'||$ts==''} class="on" {/if}><a href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'remind', 'siteid'=>$strSite[siteid]))}">提醒</a></li> <li {if $ts=='postpermission'} class="on" {/if}><a href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'postpermission', 'siteid'=>$strSite[siteid]))}">权限</a></li> <li {if $ts=='log'} class="on" {/if}><a href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'log', 'siteid'=>$strSite[siteid]))}">日志</a></li> <li {if $ts=='kedou'} class="on" {/if}><a href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'kedou', 'siteid'=>$strSite[siteid]))}">客豆</a></li> <li {if $ts=='info'} class="on" {/if}><a href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'info', 'siteid'=>$strSite[siteid]))}">资料</a></li> <li {if $ts=='design'} class="on" {/if}><a href="{SITE_URL}{tsUrl('site','admins',array('ts'=>'design', 'siteid'=>$strSite[siteid]))}">设计</a></li> </ul>
12ik
trunk/app/site/html/setting_nav.html
HTML
oos
1,007
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> #note_text, #note_title { width:572px; } form label { float:none; width:initial; } .note { word-wrap:break-word; width:100%; overflow:hidden; margin-top:10px; } input { font-size:12px; vertical-align:middle; } .rr { float:right; padding:0 0 16px 16px; } .ll { float:left; padding:0 16px 16px 0; } .cc { clear:both; display:block; text-align:center; } #preview .note-hd h3 { margin:0 0 10px 0; line-height:1.2; font-size:22px; color:#333; } #preview .note-bd .note { font-size:14px; } @import url({SITE_URL}app/{$app}/css/site/create_note.css); </style> <script> // plugins, modules IK.add('template', {path: '{SITE_URL}public/js/lib/jquery.tmpl.js', type: 'js'}); IK.add('dialog-css', {path: '{SITE_URL}public/css/ui/dialog.css', type: 'css'}); IK.add('dialog', {path: '{SITE_URL}public/js/ui/dialog.js', type: 'js', requires: ['dialog-css']}); IK.add('modernizr.dnd', { path: '{SITE_URL}public/js/lib/modernizr.dnd.js', type: 'js'}) IK.add('iframe-post-form-css', {path: '{SITE_URL}public/css/lib/iframe-post-form.css', type: 'css'}); IK.add('iframe-post-form', {path: '{SITE_URL}public/js/lib/iframe-post-form.min.js', type: 'js', requires: ['iframe-post-form-css']}); IK.add('uploadify', {path: '{SITE_URL}public/js/lib/jquery.uploadify.min.js', type:'js', requires: ['{SITE_URL}public/js/uploadify/swfobject.js']}); </script> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'list','notesid'=>$notesid))}">&gt; {$strNotes[title]}</a> </div> <h1>{$title}</h1> <div class="mod"> <div class="bd"> <form id="form_note" method="post"> <div style="display:none;"> <input name="ck" value="" type="hidden"> <input name="userid" id ="userid" value="{$IK_USER[user][userid]}" type="hidden"> <input type="hidden" id="note_id" name="note_id" value="{$noteid}" /> </div> <div class="row note-title"> <label for="note_title" class="field">题目:</label> <div><input type="text" autofocus="" name="note_title" id="note_title" tabindex="1" value="{$arrNote[title]}"></div> </div> <div class="row note-text"> <ul class="control-panel"> <li class="image-btn"> <a title="插入图片" href="#image" class="lnk-flat">图片</a> </li> <li class="video-btn"> <a title="插入视频" href="#video" class="lnk-flat">视频</a> </li> <li class="link-btn"> <a title="插入链接" href="#link" class="lnk-flat">链接</a> </li> </ul> <label for="note_text" class="field">正文:</label> <textarea name="note_content" id="note_text" tabindex="2">{$arrNote[content]}</textarea> </div> <div class="images"> <!-- {loop $arrPhotos $item} --> <div class="image-item"> <a title="删除该图片" href="#" class="delete-image">X</a> <div class="thumbnail"> <label class="image-name">[图片{$item[seqid]}]</label> <div class="image-thumb"> <img alt="图片{$item[seqid]}" src="{$item[photo_140]}" /> </div> </div> <div class="image-desc"> <label for="p{$item[seqid]}_title" class="field">图片描述(30字以内)</label> <input type="hidden" name="p{$item[seqid]}_seqid" value="{$item[seqid]}"/> <textarea maxlength="30" name="p{$item[seqid]}_title" id="p1_title">{$item[photodesc]}</textarea> </div> <div class="image-layout"> <label class="field">图片位置:</label> <label> <input type="radio" value="left" name="p{$item[seqid]}_align" {if $item[align]=='left'} checked {/if} ><span class="alignleft">左</span> </label> <label> <input type="radio" value="center" name="p{$item[seqid]}_align" {if $item[align]=='center'} checked {/if} ><span class="aligncenter">中</span> </label> <label> <input type="radio" value="right" name="p{$item[seqid]}_align" {if $item[align]=='right'} checked {/if} ><span class="alignright">右</span> </label> </div> </div> <!-- {/loop} --> </div> <div class="row note-reply"> <label for="isreply" class="field">权限设置: </label> <label> <input type="checkbox" name="isreply" id="isreply" tabindex="6" value="1"><span>不允许回应</span> </label> </div> <div class="row footer"> <div class="error-msg board"></div> <span class="bn-flat cancel-note"> <input type="submit" name="cancel_note" class="bn-flat" value="取消" id="cancel_note" tabindex="9"> </span> <span class="bn-flat"> <input type="button" class="bn-flat" value="预览" id="preview_note" tabindex="7"> </span> &nbsp; <input type="submit" name="note_submit" class="btn" value="发表" id="publish_note" tabindex="8"> </div> </form> <div id="preview"></div> <!--script--> <script type="text/javascript"> var postParams = { siteCookie: { name: 'upload_auth_token', value: '38672004:17fb1650e2c07ed759051d454054b2a43ec58b07' } }; var UPLOAD_PHOTO_URL = "{SITE_URL}{tsUrl('site','notes',array('ts'=>'add_photo','notesid'=>$notesid))}"; var AUTOSAVE_URL = '/j/note/autosave'; var PREVIEW_URL = '/j/note/preview'; </script> <script id="image_item_tmpl" type="text/template"> <div class="image-item" data-seq="{{#= seq}}"> <a class="delete-image" href="#" title="删除该图片">X</a> <div class="thumbnail"> <label class="image-name">[图片{{#= seq}}]</label> <div class="image-thumb"> <img src="{{#= thumb}}" alt="图片{{#= seq}}" /> </div> </div> <div class="image-desc"> <label class="field" for="p{{#= seq}}_title">图片描述(30字以内)</label> <input type="hidden" name="p{{#= seq}}_seqid" value="{{#= seq}}"/> <textarea id="p{{#= seq}}_title" name="p{{#= seq}}_title" maxlength="30"></textarea> </div> <div class="image-layout"> <label class="field">图片位置:</label> <label> <input name="p{{#= seq}}_align" type="radio" value="left"/><span class="alignleft">左</span> </label> <label> <input name="p{{#= seq}}_align" type="radio" value="center" checked/><span class="aligncenter">中</span> </label> <label> <input name="p{{#= seq}}_align" type="radio" value="right"/><span class="alignright">右</span> </label> </div> </div> </script> <script id="image_dlg_tmpl" type="text/template"> <div id="image_upload"> <form id="upload-area" action="{{#= UPLOAD_URL}}" method="post" enctype="multipart/form-data"><div style="display:none;"><input type="hidden" name="ck" value="CMiz"/></div> <input type="hidden" name="note_id" value="{{#= nid}}" /> {{#if dnd}} <div class="drag-drop"> <span class="text"> 将图片文件拖到这里<br/> 或<br/> {{#if flash}} <input id="image_file" name="image_file" type="file" multiple/> {{#else}} <div id="noflash"> 安装Flash Player,使用批量上传 <br/> (官方下载 <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11.exe" rel="nofollow">IE用户</a> / <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe" rel="nofollow">非IE用户</a> / <a target="_blank" href="http://get.adobe.com/cn/flashplayer/" rel="nofollow">非Windows用户</a>) </div> {{#/if}} </span> </div> {{#else flash}} <input id="image_file" name="image_file" type="file" multiple/> {{#else (!flash && !basic)}} <div id="noflash"> 安装Flash Player,使用批量上传 <br/> (官方下载 <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11.exe" rel="nofollow">IE用户</a> / <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe" rel="nofollow">非IE用户</a> / <a target="_blank" href="http://get.adobe.com/cn/flashplayer/" rel="nofollow">非Windows用户</a>) </div> {{#else (!flash && basic)}} <input name="userid" id ="userid" value="{$IK_USER[user][userid]}" type="hidden"> <input type="hidden" name="ct" value="text" /> <label for="image_file" class="field">选择图片: </label><input id="image_file" name="image_file" type="file" /> {{#/if}} </form> <div class="upload-tip"> 图片不超过2M,一次最多20张 <br/> {{#if (!basic)}} <span class="upload-alternative">不能正确上传?请尝试使用<a class="upload-basic" href="#">普通上传</a></span> {{#else}} <span class="upload-alternative">现在可以使用批量上传了。使用<a class="upload-multi" href="#">批量上传</a></span> {{#/if}} </div> <div class="upload-info"> <div class="header"> <span class="image-name">图片</span> <span class="image-size">大小</span> <span class="image-delete">删除?</span> </div> <div id="image-slots"></div> <div class="footer"> <span class="total-num">共<span class="image-num">{{#= 0}}</span>张<span class="num-warning">超过20张的部分,请另上传</span></span> <span class="total-size">总计:<span class="image-total-size">{{#= 0}}KB</span></span> </div> </div> </div> </script> <script id="image_slot" type="text/template"> <div class="slot" data_id="{{#= ID}}"> <span class="image-name">{{#= name}}</span> <span class="image-size">{{#= sizeText}}</span> <span class="image-delete"> <a title="取消该图片" class="image-delete"><img src="{SITE_URL}/public/images/icon-recycle.png"/></a> </span> </div> </script> <script id="image_slot_loading" type="text/template"> <div class="slot image-loading" data_id="{{#= ID}}"> {{#if isBasic}} <span class="image-name">{{#= name}}</span> <span class="basic-loading">上传中...</span> {{#else}} <span class="image-name">{{#= name}}</span> <span class="image-size">{{#= sizeText}}</span> <span class="percentage"></span> <div class="progress"></div> {{#/if}} </div> </script> <script id="image_slot_error" type="text/template"> <div class="slot error" data_id="{{#= ID}}"> {{#if isBasic}} <span class="image-name">{{#= name}}</span> <span class="image-error">{{#= msg}} {{#else}} <span class="image-name">{{#= name}}</span> <span class="image-error">{{#= msg}} {{#if retry}} &nbsp;|&nbsp;<a href="#" class="image-retry">重试</a> {{#/if}} </span> <span class="image-size">{{#= sizeText}}</span> {{#/if}} <span class="image-delete"><a title="取消该图片" class="image-delete"><img src="{SITE_URL}/public/images/icon-recycle.png"/></a></span> </div> </script> <script id="link_dlg" type="text/template"> <div class="link-dlg"> <div class="row"> <label for="link_text" class="field">链接文字</label> <input id="link_text" type="text" value="SEL" /> </div> <div class="row"> <label for="link_url" class="field">网址</label> <input type="text" name="link_url" id="link_url" /> </div> </div> </script> <script id="video_item_tmpl" type="text/template"> <div class="video-item"> <input type="hidden" name="video{{#= 1}}" value="{{#= 1}}" /> <a href="#" class="delete-video" title="删除该视频">X</a> <div class="thumbnail"> <label class="video-name">[视频{{#= 1}}]</label> <div class="video-thumb"> <div class="video_overlay"></div> <a href="{{#= 1}}" target="_blank"> <img src="{{#= 1}}" alt="{{#= 1}}"/> </a> </div> </div> <div class="video-info"> <label>视频信息</label> <div> <span class="video-title">{{#= 1}}</span> <a href="{{#= 1}}" class="video-url" target="_blank">{{#= 1}}</a> </div> </div> </div> </script> <script id="video_dlg" type="text/template"> <div class="video-dlg"> <div class="video-tip"> 目前支持豆瓣电影预告片,以及土豆、优酷、酷6、QQ播客、新浪播客、搜狐视频、Mofile等多家网站视频。 </div> <div class="row"> <label class="field" for="video_url">输入视频播放页地址</label> <input id="video_url" type="text" /> <div class="msg"></div> </div> </div> </script> <script id="preview_tmpl" type="text/template"> <div class="note-hd"> <h3>{{#= title}}</h3> </div> <div class="note-bd"> <pre class="note">{{html body}}</pre> </div> <div class="note-ft"> <span class="pl">{{#= cannot_reply}}</span> &nbsp; <span class="pl">{{#= note_privacy}}</span> </div> <div class="preview-footer"> <span class="bn-flat"> <input class="continue-edit" value="继续编辑" type="button" class="bn-flat" /> </span> &nbsp; <input class="submit-note btn" value="保存" type="button"/> </div> </script> <script src="{SITE_URL}app/site/js/create_note.js" type="text/javascript"></script> <!--script--> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/notes_edit.html
HTML
oos
13,987
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <!-- <div id="forum-1" class="mod sort"> <div class="hd"> <h2> <span>乖乖网的论坛</span><span class="pl"> ( <a href="http://site.douban.com/widget/forum/8208624/create">发言</a> ) </span> </h2> <div class="edit"> <a class="a_lnk_mod_setting" rel="http://site.douban.com/widget/forum/8208624/settings" href="#">设置</a> </div> </div> <div class="bd"> <table class="list-b"> <tbody> <tr><td>话题</td><td>作者</td><td nowrap="nowrap">回应</td><td align="right">更新时间</td></tr> </tbody> </table> </div> </div>--> <script type="text/javascript"> //Do('common', 'setting-eventhandler'); </script> <!-- <div id="div_archives" class="mod"> <a href="http://site.douban.com/156430/room/1650259/archives">&gt; 更多应用</a> </div> --> <div class="mod" id="sp-rec-room"> <div class="bd"> <div class="rec-sec"> <span class="rec"></span> </div> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> <div id="sp-user" class="mod"> <div class="bd"> <div class="user-pic"> <img src="{SITE_URL}public/images/icon_default_large.png" alt="DOTA美文"> </div> <div class="site-follow"> <a class="lnk-follow" href="#" id="like">喜欢</a> </div> <div class="desc"> {$strSite[sitedesc]} </div> <div class="site-info"> 网站信息 </div> </div> </div> <div class="mod" id="db-followers"> <div class="hd"> <h2> <span>喜欢该小站的成员</span> <span class="pl"> ( <a href="http://site.douban.com/151068/likers/">26</a> ) </span> </h2> </div> <div class="bd"> <ul class="list-s"> <li> <div class="pic"> <a class="nbg" href="http://www.douban.com/people/56045899/"><img title="……略去此处" alt="……略去此处" class="imgg" src="http://127.0.0.1/12ik/cache/group/0/0/48/4afecc5b6f_48_48.jpg"></a> </div> </li> </ul> </div> </div> <!--喜欢小站的成员也喜欢--> <div class="mod" id="db-similar-sites"> <div class="hd"> <h2> <span>喜欢该小站的成员也喜欢</span><span class="pl"></span> </h2> </div> <div class="bd"> <div class="item"> <div class="pic"> <a href="http://site.douban.com/140734/"> <img width="74" height="74" alt="傲娇叔爱护同好会" src="http://127.0.0.1/12ik/cache/group/0/0/48/4afecc5b6f_48_48.jpg"> </a> </div> <div class="info"> <div class="title"> <a title="傲娇叔爱护同好会" href="http://site.douban.com/140734/?ref=similar_sites">傲娇叔爱护同好会</a> </div> <span class="likes">704人喜欢</span> </div> </div> </div> </div> <!--小站成员常去的小组--> <div class="mod" id="db-similar-groups"> <div class="hd"> <h2> <span>小站成员常去的小组</span> <span class="pl">位置</span> </h2> </div> <div class="bd"> <ul class="list-s"> <li> <a title="生活智慧的大集合" href="http://www.douban.com/group/347676/"> <img width="48" height="48" alt="生活智慧的大集合" src="http://127.0.0.1/12ik/cache/group/0/0/48/4afecc5b6f_48_48.jpg"> <br> <span class="title">生活智慧的大集合</span> </a> </li> </ul> </div> </div> </div> <!--//aside--> <div class="extra"> <a href="#" class="gact">&gt; 举报不良信息</a> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/mine.html
HTML
oos
5,541
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>小站管理</h1> <div class="mod" id="sp-setting"> <div class="hd"> {template setting_nav} </div> <form class="pt10 mb30" method="post" action="{SITE_URL}{tsUrl('site','admins',array('ts'=>'postpermission','siteid'=>$siteid))}"> <ul class="setting-list"> {if $isaction==0} <li><input type="radio" value="0" name="isaction" id="ac1" checked="checked"><label for="ac1">任何人都能参与小站互动</label></li> <li><input type="radio" value="1" name="isaction" id="ac2"><label for="ac2">只有喜欢了小站,才能参加小站互动</label></li> {else} <li><input type="radio" value="0" name="isaction" id="ac1" ><label for="ac1">任何人都能参与小站互动</label></li> <li><input type="radio" value="1" name="isaction" id="ac2" checked="checked"><label for="ac2">只有喜欢了小站,才能参加小站互动</label></li> {/if} </ul> {$message} <div class="sp-setting-btn"> <span href="" class="bn-flat-hot" id="submit-theme"><input type="submit" hidefocus="1" value="保存修改"></span> <a href="#" id="cancel-theme">取消</a> </div> </form> </div> </div> <!--//main--> <!--aside--> <div class="aside"> {template admins_aside} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/postpermission.html
HTML
oos
1,817
<script type="text/javascript"> /* for room nav */ Do(function () { $('.nav-items .opt > a').click(function (e) { // 不显示管理菜单 if (e.target.id === 'admin-icon') { return; } var self = this; $(this).next().show().blur_hide(); if (!$('ul', this).is(':hidden')) { if (roomHoverColor) { $(this).css('background-color', roomHoverColor); } $(this).addClass('admin-icon-active'); } $(document.body).click(function (e) { if (e.target.id !== 'admin-icon') { $(self).removeAttr('class'); } if (e.target.id !== 'more-icon' && roomHoverColor) { $(self).removeAttr('style'); } }); e.preventDefault(); }); }); Do('common', function(){ $(function(){ $('.a_show_video').click(function(e){ var o = $(e.currentTarget), eid = paras(o.attr('href'))['from'], overlay = $('<div class="video_overlay"></div>'), fhtml = $('img',o).attr('name'), closebtn = $('<a href="javascript:void(0)">缩进</a>'); e.preventDefault(); $('div',o).append(overlay); o.css('position','relative'); if (typeof eid != 'undefined') { $.get("/j/recommend?from=" + eid); } closebtn.click(function(){ o.show(); $(this).prev().remove(); $(this).remove(); }); o.after(closebtn).after($('<em>'+fhtml+'</em>')); o.hide(); }); }); Douban.init_del_reply = function(e){ e.click(function(e){ var url = '/j/saying_comment?sid={id}&del_comment={cid}', ids = this.name.split('-'); if(confirm(this.title)){ $.getJSON(url.replace('{id}', ids[1]).replace('{cid}', ids[2]), $.proxy(function(r){ $(this).closest('div').fadeOut(); }, this)); } return false; }); }; Douban.init_reply_form = function(frm){ var n = frm.attr('name'), is_in_process = frm.data('is_in_process'); if (is_in_process) { return; } frm.attr('action', frm.attr('rev')); frm.submit(function(){ var replst; frm.data('is_in_process', 1); Douban.remote_submit_json(this, function(r){ var a; replst = frm.parent(); replst.html(r.html); if (n=='n'){ a = $('<span><a href="javascript:void(0)">添加回应</a></span>'); } else { a = $('<span><a href="javascript:void(0)">添加回应</a></span>'); } $('form', replst).hide().after(a); a.click(function(){ $(this).prev().show(); $(this).remove(); }); replst.parent().find('.a_saying_reply').attr('rev', replst.find('.simplelst').length + '回应'); Douban.init_del_reply(replst.find('.a_confirm_link')); Douban.init_reply_form(replst.find('form')); replst.find('form').data('is_in_process', 0); }); $(':submit',frm).attr('disabled', 1); return false; }); frm.set_len_limit(140); }; // show reply list. Douban.init_saying_reply = function(e){ var o = $(this), _ = o.attr('name').split('-'), is_hide = o.attr('rev') === 'unfold' || o.attr('rev') === '', url = '/j/saying_comment', is_in_process = o.data('is_in_process'); if (is_in_process) { return; } if(!is_hide){ o.parent().parent().next().remove(); o.html(o.attr('rev')); o.attr('rev', 'unfold'); } else { o.data('is_in_process', 1); $.getJSON(url, {sid: _[2], type: _[3], n:_[4], ni:_[5]}, function(r){ var list; list = $('<div class="recreplylst"></div>').insertAfter(o.parent().parent()).html(r.html); o.attr('rev', o.html()); o.text('隐藏回应'); Douban.init_del_reply(list.find('.a_confirm_link')); Douban.init_reply_form(list.find('form')); o.data('is_in_process', 0); }); } }; /* follow site */ $('.follow-miniblog').click(function (e) { e.preventDefault(); $.post_withck( '/j/site/' + $('body').attr('id') + '/follow', function (o) { location.reload(); } ); }); /* cancel follow */ $('.unfollow-miniblog').click(function (e) { e.preventDefault(); $.post_withck( '/j/site/' + $('body').attr('id') + '/unfollow', function (o) { location.reload(); } ); }); }); Do('dialog', function () { var srcNoPic = 'http://img3.douban.com/pics/site/icon_default_large.png', srcAddPic = 'http://img3.douban.com/pics/site/icon_default_large_hover.png'; $('#no-pic').hover( function () { $('img', this).attr('src', srcAddPic); }, function () { $('img', this).attr('src', srcNoPic); } ).click(function (e) { e.preventDefault(); location.href = '/' + $('body').attr('id') + '/admin/icon'; }); /* like site */ var site_is_commercial = false; $('#like').click(function (e) { e.preventDefault(); var site_id = $("body").attr('id'); var followed = $('#followed').val(); $.post_withck( '/j/site/'+site_id+'/like', function (o) { if (!site_is_commercial && followed == 0){ var dlg = dui.Dialog({ width: 300, url: '/j/site/'+site_id+'/pop_like_form', callback: function(e, o) { o.setTitle('我喜欢这个小站'); $('#follow_submit').click(function (e) { e.preventDefault(); var url='/j/site/'+site_id; if($('#is_follow').attr('checked') == true){ url += '/follow'; } else{ url += '/unfollow'; } $.post_withck( url, function (o) { location.reload(1); } ); dlg.close(); }); } }).open(); dlg.node.find('.dui-dialog-close').click(function(){ location.reload(1); }); } else { location.reload(1); } } ); }); /* cancel like*/ $('#unlike').click(function (e) { e.preventDefault(); var site_id = $("body").attr('id'); var followed = $('#followed').val(); $.post_withck( '/j/site/'+site_id+'/unlike', function (o) { if (site_is_commercial){ $.post_withck( '/j/site/'+site_id+'/unfollow', function (o) { location.reload(); }); } else { if (followed == 1){ var dlg = dui.Dialog({ width: 300, url: '/j/site/'+site_id+'/pop_unlike_form', callback: function(e, o) { o.setTitle('取消喜欢这个小站'); $('#unfollow_submit').click(function (e) { e.preventDefault(); var url='/j/site/'+site_id; if($('#un_follow').attr('checked') == true){ url += '/unfollow'; } else { location.reload(1); } $.post_withck( url, function (o) { location.reload(1); }); dlg.close(); }); } }).open(); dlg.node.find('.dui-dialog-close').click(function(){ location.reload(1); }); } else { location.reload(); } } }); }); }); </script>
12ik
trunk/app/site/html/test.html
HTML
oos
9,462
<div id="header"> <div class="top-nav"> <a class="logo" href="{SITE_URL}" title="{$IK_SITE[base][site_title]}">{$IK_SITE[base][site_title]}</a> <div class="top-nav-info"> <!--{if $IK_USER[user] == ''}--> <a href="{SITE_URL}{tsUrl('user','login')}">登录</a> <a href="{SITE_URL}{tsUrl('user','register')}">注册</a> <!--{else}--> <a id="newmsg" href="{SITE_URL}{tsUrl('message','ikmail',array(ts=>inbox))}">新消息</em></a> <a href="{SITE_URL}{tsUrl('user','set',array(ts=>base))}" target="_blank">{$IK_USER[user][username]}的帐号</a> <a href="{SITE_URL}{tsUrl('user','login',array(ts=>out))}">退出</a> <!--{/if}--> </div> </div> <div class="sp-nav"> <!--sp-logo--> <div class="sp-logo"> <a class="logo" href="{SITE_URL}{tsUrl('site','mine',array('siteid'=>$strSite[siteid]))}" title="{$strSite[sitename]}"> <img width="48" height="48" style="background:url({$strSite[icon_48]}) no-repeat 0 0;" src="{SITE_URL}public/images/blank.gif" alt="{$strSite[sitename]}">{$strSite[sitename]}</a> </div> <!--nav-items--> <div class="nav-items"> <ul> <!--{loop $strNavs $item}--> <li {if $item[roomid] == $roomid} class="on" {/if}> <a hidefocus="true" href="{SITE_URL}{tsUrl('site','room',array('siteid'=>$strSite[siteid],'roomid'=>$item[roomid]))}" roomid="$item[roomid]"> <span>{$item[name]}</span>{if $item[roomid] == $roomid && $strSite[userid] == $IK_USER[user][userid] }<em title="房间设置">房间设置</em> {/if} </a> </li> <!--{/loop}--> <!--{if $strSite[userid] == $IK_USER[user][userid]}--> <li class="opt" id="room-admin"> <a href="{SITE_URL}{tsUrl('site','admins',array('siteid'=>$strSite[siteid]))}" id="admin-icon" title="管理小站">管理小站</a> <div class="user-guide" style="display:none"> <em></em> <h1>小站设置</h1> <span>1/2</span> <p>16套主题模板,让你的小站与众不同。</p><a class="lnk-add" href="#" id="next-step">知道了</a> </div> </li> <!--{/if}--> </ul> </div> <!--{if $strSite[userid] == $IK_USER[user][userid]}--> <script> <!--{if empty($strLeftMod) && empty($strRightMod) && $isRoomEmpty==1}--> var isRoomEmpty = true;//页面空 true 否则false <!--{else}--> var isRoomEmpty = false; //页面空 true 否则false <!--{/if}--> <!--{if $strSite[issetting]==0}--> var isSiteFirstEnter = true;//页面空 true 否则false <!--{else}--> var isSiteFirstEnter = false;//页面空 true 否则false <!--{/if}--> IK('slider', 'room-setting'); IK(function(){$(function(){$('.mod:has(.edit)').live('mouseenter', function(e){ $(e.currentTarget).addClass('mod-stat-active'); }).live('mouseleave', function(e){ $(e.currentTarget).removeClass('mod-stat-active');});});}); </script> <!--{/if}--> </div> <!--//sp-nav--> <!--{if $roomid>0 && $strSite[userid] == $IK_USER[user][userid]}--> <!--sp-fn-box--> <div class="sp-fn-box"> <a href="#" class="box-close" style="display: block;">x</a> <div class="room-box" style="display: inline-block;"> <input type="text" maxlength="15" value="{$strRoom[name]}" id="room-rename" roomid="{$roomid}" > <label class="icon-save">保存</label> <span class="widget-tips selected" id="type-normal">小站公共应用<em>▶</em></span> <span class="widget-tips" id="type-game">游戏应用<em>▶</em></span> <a class="room-del" hidefocus="true" id="room_1650259" href="javascript:;">删除房间</a> </div> <div id="widget-normal" class="widgets-box" style="display: inline-block;"> <div class="widgets-slider"> <ul class="list-s slider"> <!--{loop $strWidgets $item}--> <li> <div class="intro"> <h2><!--{$item[widgetname]}--></h2> <p><!--{$item[widgetdesc]}--></p> </div> <a class="lnk-add" id="k-{$item[othername]}" roomid="{$roomid}" href="#">添加</a> </li> <!--{/loop}--> </ul> </div> <div class="slider-switcher"> <ul class="list-s switcher-dot"></ul> <span class="switcher-prev switcher-dis">&lt;</span> <span class="switcher-next">&gt;</span> </div> </div> </div> <!--//sp-fn-box--> <!--{/if}--> </div><!--//header-->
12ik
trunk/app/site/html/site_nav.html
HTML
oos
4,638
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> .note-hd { margin-bottom:5px;font-size:14px;background:#efe; } .note-item { margin-bottom:20px;overflow:hidden; } .note-item .datetime { margin-bottom:5px; } .note-item .lnk-more{ float:right;width:30px;height:15px;overflow:hidden;line-height:10em;background:url({SITE_URL}/public/images/arrow.png) no-repeat center 3px; margin-top:3px; margin-right:10px;} .note-item .lnk-more:hover{ background-color:#fff; border-radius:3px;} .note-item .lnk-more-on{ float:right;width:30px;height:15px;overflow:hidden;line-height:10em;background:url({SITE_URL}/public/images/arrow.png) no-repeat center -13px; margin-top:3px; margin-right:10px;} .note-item .lnk-more-on:hover{ background-color:#fff; border-radius:3px;} .ui-tooltip { width: 270px } </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','room',array('siteid'=>$siteid,'roomid'=>$roomid))}">&gt; 回{$strSite[sitename]}</a> </div> <h1>{$strNotes[title]}</h1> {if $userid>0 && $strNotes[userid]==$userid} <div class="title-link"> <a class="lnk-flat" href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'create','notesid'=>$notesid))}">+ 写新日记</a> </div> {/if} <div class="mod"> <script language="javascript"> function openfn(id,obj) { $('#note_'+id+'_footer').slideToggle('fast'); if($(obj).attr('class') =='lnk-more') { $(obj).attr('class','lnk-more-on'); }else{ $(obj).attr('class','lnk-more'); } } </script> <!--{loop $arrNote $item}--> <div class="note-item" id="note-$item[contentid]"> <div class="note-hd"> <a class="lnk-more" href="javascript:;" onClick="openfn($item[contentid],this)">展开</a> <h3> <a href="{SITE_URL}{tsUrl('site','notes',array('notesid'=>$item[notesid],'noteid'=>$item[contentid]))}" title="{$item[title]}"> {$item[title]} </a> </h3> </div> <span class="datetime">{php echo date('Y-m-d H:i:s',$item[addtime])}</span> <div id="note_$item[contentid]_short" class="summary"> {php echo getsubstrutf8(t($item[content]),0,120)} </div> <div class="note-content" id="note_$item[contentid]_full"> <div id=""></div> </div> <br> <div class="note-ft" style="display:none" id="note_$item[contentid]_footer"> <span class="count">&nbsp;{$item[count_view]}人阅读</span> <span class="reply"><a href="{SITE_URL}{tsUrl('site','notes',array('notesid'=>$item[notesid],'noteid'=>$item[contentid]))}#note_{$item[contentid]}_footer">({$item[count_comment]}回应)</a></span> {if $userid>0 && $strNotes[userid]==$userid} <a href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'edit','notesid'=>$item[notesid],'noteid'=>$item[contentid]))}">&gt; 修改</a> <a title="真的要删除这篇日记吗?" onClick="return confirm('真的要删除这篇日记吗?')" class="a_confirm_link" href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'delnote','notesid'=>$item[notesid],'noteid'=>$item[contentid]))}">&gt; 删除</a> {/if} <div class="sns-bar"></div> </div> </div> <!--{/loop}--> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/notes_list.html
HTML
oos
3,623
{php include pubTemplate("footer");}
12ik
trunk/app/site/html/footer.html
HTML
oos
36
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> .editor-toolbar { text-align:right; } #text { width:98.5%;height:300px; } form .item-submit { padding-left:0; } form .item { margin-top:10px; } form label { width:6em; } .frm-addlink input { width:70%; } </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','bulletin',array('siteid'=>$siteid,'bulletinid'=>$bulletinid))}">&gt; 返回{$strBulletin[title]}</a> </div> <h1>编辑公告栏</h1> <div class="mod"> <form name="bulletin_form" method="post" action=""> <div style="display:none;"><input name="ck" value="" type="hidden"></div> <div class="editor-toolbar"> <a id="addlink" href="javascript:void(0)">添加链接</a> </div> <div class="item"> <textarea id="text" name="content">{$strBulletin[content]}</textarea> <input type="hidden" name="historyurl" value="{$jump}"/> </div> <div class="item-submit"> <span class="bn-flat-hot"><input name="submit" value="提交" type="submit"></span> &nbsp;&nbsp; <a onClick="javascript:history.go(-1)" href="javascript:;" >取消</a> </div> </form> </div> <script> IK('dialog','common', function(){ var templ_link = '<form class="frm-addlink"><div class="item">' + '<label>链接文字: </label><input name="linktext" type="text" value="SEL">' + '</div>' + '<div class="item">' + '<label>网址: </label><input name="href" type="text" value="">' + '</div><input type="submit" style="display:none;"></form>', addlink = function(frm, o){ var text = $.trim(frm[0].elements['linktext'].value), url = $.trim(frm[0].elements['href'].value); if(url !== ''){ url = /^http:\/\//.test(url)? url:"http://"+url; $('#text').insert_caret('[url=' + url + ']' + (text===''? url : text) + "[/url]"); o.close(); } }; $('#addlink').click(function(e){ e.preventDefault(); var s = $('#text').get_sel(), dlg = dui.Dialog({ content: templ_link.replace('SEL', s), width: 400, title: '添加链接', buttons: [{ text: '添加', method: function(o){ addlink( o.node.find('form'), o); } },'cancel'] }).open(); dlg.node.find('form').submit($.proxy(function(e){ e.preventDefault(); addlink($(e.target), this); }, dlg)); }); }); </script> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/bulletin_update.html
HTML
oos
3,286
{template header} <div class="midder"> <div class="mc"> <h1>{$title}</h1> <div class="cleft"> <form method="POST" action="{SITE_URL}index.php?app=site&ac=new_site&ts=create" onsubmit="return createSite(this);" enctype="multipart/form-data"> <table width="100%" cellpadding="0" cellspacing="0" class="table_1"> <tr> <th>小站名称:</th> <td><input style="width:200px;" type="text" value="" size="15" name="sitename" gtbfieldid="2" class="txt" placeholder="请填写标题" maxlength="15"></td></tr> <tr> <th>小站介绍:</th> <td> <textarea style="width:400px;height:150px;" id="editor_full" cols="55" rows="20" name="sitedesc" class="txt" placeholder="请填写内容" maxlength="250"></textarea> <span class="tip">最多 250 个字</span> </td> </tr> <tr> <th>小站标签:</th> <td><input style="width:400px;" type="text" value="" size="50" name="tag" gtbfieldid="2" class="txt" id="tag" > <span class="tip">最多 5 个标签</span> </td> </tr> <tr> <th>&nbsp;</th> <td><div class="site-tags"> <dl class="tag-items" id="tag-items"> <dd onClick="tags(this)">生活</dd> <dd onClick="tags(this)">同城</dd> <dd onClick="tags(this)">影视</dd> <dd onClick="tags(this)">工作室</dd> <dd onClick="tags(this)">艺术</dd> <dd onClick="tags(this)">音乐</dd> <dd onClick="tags(this)">品牌</dd> <dd onClick="tags(this)">手工</dd> <dd onClick="tags(this)">闲聊</dd> <dd onClick="tags(this)">设计</dd> <dd onClick="tags(this)">服饰</dd> <dd onClick="tags(this)">摄影</dd> <dd onClick="tags(this)">媒体</dd> <dd onClick="tags(this)">美食</dd> <dd onClick="tags(this)">读书</dd> <dd onClick="tags(this)">公益</dd> <dd onClick="tags(this)">互联网</dd> <dd onClick="tags(this)">动漫</dd> <dd onClick="tags(this)">旅行</dd> <dd onClick="tags(this)">绘画</dd> <dd onClick="tags(this)">美容</dd> <dd onClick="tags(this)">购物</dd> <dd onClick="tags(this)">电影</dd> <dd onClick="tags(this)">教育公益</dd> <dd onClick="tags(this)">游戏</dd> </dl> </div></td> </tr> <tr> <th>&nbsp;</th> <td> <input class="submit" type="submit" value="创建小站"> </td> </tr> </table> </form> </div> <div class="cright"> <div class="setting-tips"> <h2>小站创建 &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;· </h2> <p>小站需要审核通过后才能完成创建, 管理员会在 3 日内审核申请,审核结果会用豆邮通知你, 请耐心等待。</p> <br> <p class="pl">考虑到中国法律法规和相关政策的要求,本站不欢迎色情、激进话题、意识形态方面的讨论, 并保留解散这类主题小站的权利。 </p> <br> <br> <h2>小站标签 &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;· </h2> <p>小站标签用来描述小站的内容。标签作为关键词可以被用户搜索到。 多个标签之间用<u style="color:#ff6600">空格</u>分隔开。 </p> <p>小站名称本身可以被搜索,就不用再加在标签里了。小站的名称、介绍、标签在创建后都可以随时更改。</p> </div> </div> </div> </div> {template footer}
12ik
trunk/app/site/html/new_site.html
HTML
oos
4,154
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> #note_text, #note_title { width:572px; } form label { float:none; width:initial; } .note { word-wrap:break-word; width:100%; overflow:hidden; margin-top:10px; } input { font-size:12px; vertical-align:middle; } .rr { float:right; padding:0 0 16px 16px; } .ll { float:left; padding:0 16px 16px 0; } .cc { clear:both; display:block; text-align:center; } #preview .note-hd h3 { margin:0 0 10px 0; line-height:1.2; font-size:22px; color:#333; } #preview .note-bd .note { font-size:14px; } @import url({SITE_URL}app/{$app}/css/site/create_note.css); </style> <script> // plugins, modules IK.add('template', {path: '{SITE_URL}public/js/lib/jquery.tmpl.js', type: 'js'}); IK.add('dialog-css', {path: '{SITE_URL}public/css/ui/dialog.css', type: 'css'}); IK.add('dialog', {path: '{SITE_URL}public/js/ui/dialog.js', type: 'js', requires: ['dialog-css']}); IK.add('modernizr.dnd', { path: '{SITE_URL}public/js/lib/modernizr.dnd.js', type: 'js'}) IK.add('iframe-post-form-css', {path: '{SITE_URL}public/css/lib/iframe-post-form.css', type: 'css'}); IK.add('iframe-post-form', {path: '{SITE_URL}public/js/lib/iframe-post-form.min.js', type: 'js', requires: ['iframe-post-form-css']}); IK.add('uploadify', {path: '{SITE_URL}public/js/lib/jquery.uploadify.min.js', type:'js', requires: ['{SITE_URL}public/js/uploadify/swfobject.js']}); </script> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'list','notesid'=>$notesid))}">&gt; {$strNotes[title]}</a> </div> <h1>{$title}</h1> <div class="mod"> <div class="bd"> <form id="form_note" method="post"> <div style="display:none;"> <input name="ck" value="" type="hidden"> <input name="userid" id ="userid" value="{$IK_USER[user][userid]}" type="hidden"> <input type="hidden" id="note_id" name="note_id" value="{$noteid}" /> </div> <div class="row note-title"> <label for="note_title" class="field">题目:</label> <div><input type="text" autofocus="" name="note_title" id="note_title" tabindex="1"></div> </div> <div class="row note-text"> <ul class="control-panel"> <li class="image-btn"> <a title="插入图片" href="#image" class="lnk-flat">图片</a> </li> <li class="video-btn"> <a title="插入视频" href="#video" class="lnk-flat">视频</a> </li> <li class="link-btn"> <a title="插入链接" href="#link" class="lnk-flat">链接</a> </li> </ul> <label for="note_text" class="field">正文:</label> <textarea name="note_content" id="note_text" tabindex="2"></textarea> </div> <div class="images"></div> <div class="row note-reply"> <label for="isreply" class="field">权限设置: </label> <label> <input type="checkbox" name="isreply" id="isreply" tabindex="6" value="1"><span>不允许回应</span> </label> </div> <div class="row footer"> <div class="error-msg board"></div> <span class="bn-flat cancel-note"> <input type="submit" name="cancel_note" class="bn-flat" value="取消" id="cancel_note" tabindex="9"> </span> <span class="bn-flat"> <input type="button" class="bn-flat" value="预览" id="preview_note" tabindex="7"> </span> &nbsp; <input type="submit" name="note_submit" class="btn" value="发表" id="publish_note" tabindex="8"> </div> </form> <div id="preview"></div> <!--script--> <script type="text/javascript"> var postParams = { siteCookie: { name: 'upload_auth_token', value: '38672004:17fb1650e2c07ed759051d454054b2a43ec58b07' } }; var UPLOAD_PHOTO_URL = "{SITE_URL}{tsUrl('site','notes',array('ts'=>'add_photo','notesid'=>$notesid))}"; var AUTOSAVE_URL = '/j/note/autosave'; var PREVIEW_URL = '/j/note/preview'; </script> <script id="image_item_tmpl" type="text/template"> <div class="image-item" data-seq="{{#= seq}}"> <a class="delete-image" href="#" title="删除该图片">X</a> <div class="thumbnail"> <label class="image-name">[图片{{#= seq}}]</label> <div class="image-thumb"> <img src="{{#= thumb}}" alt="图片{{#= seq}}" /> </div> </div> <div class="image-desc"> <label class="field" for="p{{#= seq}}_title">图片描述(30字以内)</label> <input type="hidden" name="p{{#= seq}}_seqid" value="{{#= seq}}"/> <textarea id="p{{#= seq}}_title" name="p{{#= seq}}_title" maxlength="30"></textarea> </div> <div class="image-layout"> <label class="field">图片位置:</label> <label> <input name="p{{#= seq}}_align" type="radio" value="left"/><span class="alignleft">左</span> </label> <label> <input name="p{{#= seq}}_align" type="radio" value="center" checked/><span class="aligncenter">中</span> </label> <label> <input name="p{{#= seq}}_align" type="radio" value="right"/><span class="alignright">右</span> </label> </div> </div> </script> <script id="image_dlg_tmpl" type="text/template"> <div id="image_upload"> <form id="upload-area" action="{{#= UPLOAD_URL}}" method="post" enctype="multipart/form-data"><div style="display:none;"><input type="hidden" name="ck" value="CMiz"/></div> <input type="hidden" name="note_id" value="{{#= nid}}" /> {{#if dnd}} <div class="drag-drop"> <span class="text"> 将图片文件拖到这里<br/> 或<br/> {{#if flash}} <input id="image_file" name="image_file" type="file" multiple/> {{#else}} <div id="noflash"> 安装Flash Player,使用批量上传 <br/> (官方下载 <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11.exe" rel="nofollow">IE用户</a> / <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe" rel="nofollow">非IE用户</a> / <a target="_blank" href="http://get.adobe.com/cn/flashplayer/" rel="nofollow">非Windows用户</a>) </div> {{#/if}} </span> </div> {{#else flash}} <input id="image_file" name="image_file" type="file" multiple/> {{#else (!flash && !basic)}} <div id="noflash"> 安装Flash Player,使用批量上传 <br/> (官方下载 <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_11.exe" rel="nofollow">IE用户</a> / <a target="_blank" href="http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe" rel="nofollow">非IE用户</a> / <a target="_blank" href="http://get.adobe.com/cn/flashplayer/" rel="nofollow">非Windows用户</a>) </div> {{#else (!flash && basic)}} <input name="userid" id ="userid" value="{$IK_USER[user][userid]}" type="hidden"> <input type="hidden" name="ct" value="text" /> <label for="image_file" class="field">选择图片: </label><input id="image_file" name="image_file" type="file" /> {{#/if}} </form> <div class="upload-tip"> 图片不超过2M,一次最多20张 <br/> {{#if (!basic)}} <span class="upload-alternative">不能正确上传?请尝试使用<a class="upload-basic" href="#">普通上传</a></span> {{#else}} <span class="upload-alternative">现在可以使用批量上传了。使用<a class="upload-multi" href="#">批量上传</a></span> {{#/if}} </div> <div class="upload-info"> <div class="header"> <span class="image-name">图片</span> <span class="image-size">大小</span> <span class="image-delete">删除?</span> </div> <div id="image-slots"></div> <div class="footer"> <span class="total-num">共<span class="image-num">{{#= 0}}</span>张<span class="num-warning">超过20张的部分,请另上传</span></span> <span class="total-size">总计:<span class="image-total-size">{{#= 0}}KB</span></span> </div> </div> </div> </script> <script id="image_slot" type="text/template"> <div class="slot" data_id="{{#= ID}}"> <span class="image-name">{{#= name}}</span> <span class="image-size">{{#= sizeText}}</span> <span class="image-delete"> <a title="取消该图片" class="image-delete"><img src="{SITE_URL}/public/images/icon-recycle.png"/></a> </span> </div> </script> <script id="image_slot_loading" type="text/template"> <div class="slot image-loading" data_id="{{#= ID}}"> {{#if isBasic}} <span class="image-name">{{#= name}}</span> <span class="basic-loading">上传中...</span> {{#else}} <span class="image-name">{{#= name}}</span> <span class="image-size">{{#= sizeText}}</span> <span class="percentage"></span> <div class="progress"></div> {{#/if}} </div> </script> <script id="image_slot_error" type="text/template"> <div class="slot error" data_id="{{#= ID}}"> {{#if isBasic}} <span class="image-name">{{#= name}}</span> <span class="image-error">{{#= msg}} {{#else}} <span class="image-name">{{#= name}}</span> <span class="image-error">{{#= msg}} {{#if retry}} &nbsp;|&nbsp;<a href="#" class="image-retry">重试</a> {{#/if}} </span> <span class="image-size">{{#= sizeText}}</span> {{#/if}} <span class="image-delete"><a title="取消该图片" class="image-delete"><img src="{SITE_URL}/public/images/icon-recycle.png"/></a></span> </div> </script> <script id="link_dlg" type="text/template"> <div class="link-dlg"> <div class="row"> <label for="link_text" class="field">链接文字</label> <input id="link_text" type="text" value="SEL" /> </div> <div class="row"> <label for="link_url" class="field">网址</label> <input type="text" name="link_url" id="link_url" /> </div> </div> </script> <script id="video_item_tmpl" type="text/template"> <div class="video-item"> <input type="hidden" name="video{{#= 1}}" value="{{#= 1}}" /> <a href="#" class="delete-video" title="删除该视频">X</a> <div class="thumbnail"> <label class="video-name">[视频{{#= 1}}]</label> <div class="video-thumb"> <div class="video_overlay"></div> <a href="{{#= 1}}" target="_blank"> <img src="{{#= 1}}" alt="{{#= 1}}"/> </a> </div> </div> <div class="video-info"> <label>视频信息</label> <div> <span class="video-title">{{#= 1}}</span> <a href="{{#= 1}}" class="video-url" target="_blank">{{#= 1}}</a> </div> </div> </div> </script> <script id="video_dlg" type="text/template"> <div class="video-dlg"> <div class="video-tip"> 目前支持豆瓣电影预告片,以及土豆、优酷、酷6、QQ播客、新浪播客、搜狐视频、Mofile等多家网站视频。 </div> <div class="row"> <label class="field" for="video_url">输入视频播放页地址</label> <input id="video_url" type="text" /> <div class="msg"></div> </div> </div> </script> <script id="preview_tmpl" type="text/template"> <div class="note-hd"> <h3>{{#= title}}</h3> </div> <div class="note-bd"> <pre class="note">{{html body}}</pre> </div> <div class="note-ft"> <span class="pl">{{#= cannot_reply}}</span> &nbsp; <span class="pl">{{#= note_privacy}}</span> </div> <div class="preview-footer"> <span class="bn-flat"> <input class="continue-edit" value="继续编辑" type="button" class="bn-flat" /> </span> &nbsp; <input class="submit-note btn" value="保存" type="button"/> </div> </script> <script src="{SITE_URL}app/site/js/create_note.js" type="text/javascript"></script> <!--script--> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/notes_create.html
HTML
oos
12,355
{template header} <div class="midder"> <div class="mc"> <div class="cleft"> <div id="new-site-result"> <div class="hd"> <h1>{$title}</h1> </div> <div class="bd"> <p>{$IK_SITE[base][site_title]}的工作人员将核实你提交的内容,确定是否开通你的{$IK_SITE[base][site_title]}小站,需要你等待一段时间,我们会在五日内给你发站内信通知审核结果。 先去 <a href="{SITE_URL}{tsUrl('site','explore',array('ts'=>'site'))}">看看别人的小站</a> 吧!</p> <br> <p>如有疑问,请发送邮件至:12ik.wang@gmail.com</p> </div> </div> </div> <div class="cright"> </div> </div> </div> {template footer}
12ik
trunk/app/site/html/result.html
HTML
oos
889
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <style> #sp-admin li, #sp-followers li { width:16%; } .sidenav p { margin-bottom: 20px } .tips-light { font-size: 12px; margin-bottom: 30px } #sp-followers .error-msg { color: #FF2200; padding-left: 20px; } .host-event-admin {fint-size:12px;margin-left:5px;} </style> <!--main--> <div class="main"> <h1>{$title}</h1> <div class="user-search"> <form method="get" action="{SITE_URL}{tsUrl('site','likers',array('ts'=>'search'))}" name="usp_form"> <input type="text" title="名号、个人域名、常居地、email" value="" maxlength="36" class="search-input" name="keyword"> <input type="submit" class="search-submit"> </form> </div> {if $adminUser[userid] == $IK_USER[user][userid]} <div class="mod" id="sp-admin"> <div class="hd"> <h2> <span>小站管理员</span> <span class="pl"> </span> </h2> </div> <div class="bd"> <div class="followers-admin"> <ul class="list-s"> <li> <div class="pic"> <a class="nbg" href="{SITE_URL}{tsUrl('hi','',array('id'=>$adminUser[doname]))}"> <img title="{$adminUser[username]}" alt="{$adminUser[username]}" class="imgg" src="{$adminUser[face]}"></a> </div> <div class="info"> <span class="name"> <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$adminUser[doname]))}">{$adminUser[username]}</a> </span> <span class="opt"><a title="授予小豆管理权限" href="#"></a> </span> </div> </li> </ul> </div> </div> </div> {/if} <div class="mod" id="sp-followers"> <div class="hd"> <h2> <span>普通成员</span> <span class="pl"> </span> </h2> </div> <div class="bd"> <ul class="list-s"> {loop $arrlikeUser $item} <li> <div class="pic"> <a class="nbg" href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[doname]))}"> <img title="{$item[username]}" alt="{$item[username]}" class="imgg" src="{$item[face]}"> </a> </div> <div class="info"> <span class="name"><a href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[doname]))}">{$item[username]}</a> <em></em> </span> <span class="loca">({$item[area][areaname]})</span> {if $adminUser[userid] == $IK_USER[user][userid]} <span class="opt"> <a title="担任管理员" href="{SITE_URL}{tsUrl('site','likers',array('ts'=>'promote','userid'=>$item[userid]))}" class="icon-star"></a> <a title="拉入黑名单" href="{SITE_URL}{tsUrl('site','likers',array('ts'=>'blacklist','userid'=>$item[userid]))}" class="icon-ban"></a> </span> {/if} </div> </li> {/loop} </ul> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> {if $adminUser[userid] == $IK_USER[user][userid]} <div class="mod sidenav"> <p>&gt;&nbsp;<a href="#">管理黑名单</a></p> <p>&gt;&nbsp;<a href="#">转让小站主人身份</a></p> </div> {/if} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/likers.html
HTML
oos
3,767
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <style> #content h1 { margin:0 0 10px 0;line-height:1.2; } .note-item { margin-bottom:30px; } .note-hd h3 { font-size:14px;color:#060; } .left { float:left;padding:0 16px 16px 0; } .center { clear:both;display:block;text-align:center; } .center table {margin:0 auto;} .right {float:right;padding:0 0 16px 16px;} .left table, .center table, .right table { width:1px; } .note-ft { clear:both;padding-top:4px; } .note-ft .rec { margin-top:-2px; } .note-content div { font-size:14px; } .ui-tooltip { width: 270px } </style> <div class="main"> <div class="content-nav"> <a href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'list','notesid'=>$notesid))}">&gt; {$strNotes[title]}</a> </div> <div class="mod"> <div class="note-item" id="note-{$noteid}"> <div class="note-hd"> <h1>{$strNote[title]}</h1> </div> <span class="datetime">{php echo date('Y-m-d H:i:s',$strNote[addtime])}</span> <div id="note_{$noteid}_short" class="summary"> </div> <div class="note-content" id="note_{$noteid}_full"> <div id="link-report"> {php echo nl2br($strNote[content])} <div class="report"><a href="#" rel="nofollow">举报</a></div> </div> </div> <br> <div class="note-ft" style="" id="note_{$strNote[contentid]}_footer"> <span class="count">&nbsp;{$strNote[count_view]}人阅读</span> {if $strNotes[userid]==$userid} <a href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'edit','notesid'=>$notesid,'noteid'=>$noteid))}">&gt; 修改</a> <a title="真的要删除这篇日记吗?" onClick="return confirm('真的要删除这篇日记吗?')" class="a_confirm_link" href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'delnote','notesid'=>$notesid,'noteid'=>$noteid))}">&gt; 删除</a> {/if} </div> </div> <!--评论--> <div class="post-comments"> <div id="comments"> <!--{loop $arrComment $item}--> <div id="13299013" class="comment-item"> <div class="pic"> <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[user][doname]))}"><img alt="{$item[user][username]}" src="{$item[user][face]}"></a> </div> <div class="content report-comment"> <div class="author"> <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[user][doname]))}">{$item[user][username]}</a> {php echo date('Y-m-d H:i:s',$item[addtime])} </div> <p>{php echo nl2br($item[content])}</p> <div class="op-lnks"> {if $userid>0} {if $item[user][userid]==$userid || $strNotes[userid]==$userid} <a title="删除{$item[user][username]}的留言?" class="" href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'del_comment','notesid'=>$notesid,'noteid'=>$noteid,'commentid'=>$item['commentid']))}" rel="nofollow" onClick="return confirm('删除{$item[user][username]}的留言?')">删除</a> {/if} {/if} {if $userid>0}<div class="comment-report"><a href="#" rel="nofollow">举报</a></div>{/if} </div> </div> </div> <!--{/loop}--> <div id="last"></div> {if $userid == '' } <div class="comment-lnk">&gt;&nbsp; <a href="#add_comment" rel="nofollow" class="a_show_login">我来回应</a> </div> {/if} {if $mycommentTime && $userid>0} <h2>你的回应 &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;· </h2> <div id="add_comment" class="comment-form txd"> <form action="{SITE_URL}{tsUrl('site','notes',array('ts'=>'add_comment','notesid'=>$notesid,'noteid'=>$noteid))}" method="post" name="comment_form"> <div style="display:none;"> <input type="hidden" value="-PMQ" name="ck"> </div> <div class="item"> <textarea cols="64" rows="4" name="content"></textarea> <br> </div> <div class="item"> <span class="bn-flat-hot "> <input type="submit" value="加上去"> </span> </div> </form> </div> {elseif $userid>0} <div class="comment-lnk">&gt;&nbsp; <a href="{SITE_URL}{tsUrl('site','notes',array('notesid'=>$notesid,'noteid'=>$noteid,'goon'=>'1'))}#add_comment" rel="nofollow">继续发言</a> </div> {/if} </div> </div> <!--//评论--> {template comment_tpl} </div> </div> <!--//main--> <!--aside--> <div class="aside"> </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/note.html
HTML
oos
4,974
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <noscript> <div class="message"> 您的浏览器不支持javascript,不能使用此页面的全部功能。 请换用其他浏览器或者开启对javascript的支持。 </div> </noscript> <!--{loop $strLeftMod $item}--> {if $strSite[userid] == $IK_USER[user][userid]} <div class="mod sort" id="{$item[table]}-{$item[itemid]}"> {else} <div class="mod" id="{$item[table]}-{$item[itemid]}"> {/if} <div class="hd"> <h2> <span>$item[title]</span> {if $strSite[userid] == $IK_USER[user][userid]} {if $item[list]} <span class="pl"> ( {$item[list]}&nbsp;&middot;&nbsp;{$item[action]} ) </span> {else} <span class="pl"> ( {$item[action]} ) </span> {/if} {elseif $item[list] } <span class="pl"> ( {$item[list]} ) </span> {/if} </h2> <div class="edit"> {if $strSite[userid] == $IK_USER[user][userid]} {$item[settingurl]} {/if} </div> </div> <div class="bd"> <!--{if $item[table]=='bulletin'}--> <div class="bulletin-content" >{php echo nl2br($item[content])}</div> <!--{/if}--> <!--{if $item[table]=='notes'}--> <!--{if $item[content]==''}--> <div class="createnew"> 记录你的最新动向 <a href="{SITE_URL}{tsUrl('site','notes',array('ts'=>'create','notesid'=>$item[itemid]))}"> &gt; 提笔写日记</a> </div> <!--{else}--> <!-- {loop $item[content] $item} --> <div class="item-entry"> <div class="title"> <a href="{SITE_URL}{tsUrl('site','notes',array('notesid'=>$item[notesid],'noteid'=>$item[contentid]))}" title="{$item[title]}">{$item[title]}</a> </div> <div class="datetime">{php echo date('Y-m-d H:i:s',$item[addtime])}</div> <div id="note_$item[contentid]_short" class="summary"> {php echo getsubstrutf8(t($item[content]),0,120)} <a href="{SITE_URL}{tsUrl('site','notes',array('notesid'=>$item[notesid],'noteid'=>$item[contentid]))}#note_{$item[contentid]}_footer">({$item[count_comment]}回应)</a> </div> </div> <!-- {/loop} --> <!--{/if}--> <!--{/if}--> <!--{if $item[table]=='forum'}--> <table class="list-b"> <tr><td>话题</td><td>作者</td><td nowrap="nowrap">回应</td><td align="right">更新时间</td></tr> <!-- {loop $item[content] $item} --> <tr> <td>{if $item[istop]==1}<img src="/public/images/stick.gif"/>{/if} <a title="{$item[title]}" href="{SITE_URL}{tsUrl('site','forum',array('forumid'=>$item[forumid],'discussid'=>$item[discussid]))}">{$item[title]}</a></td> {php $struser = aac('user')->getOneUser($item[userid]);} <td>来自 <a href="{SITE_URL}{tsUrl('hi','',array('id'=>$struser[doname]))}"> {$struser[username]}</a> </td> <td class="count" nowrap="nowrap">{$item[count_comment]}</td> <td class="date">{php echo date('Y-m-d H:i:s',$item[addtime])}</td> </tr> <!-- {/loop} --> </table> <!--{/if}--> </div> </div> <script type="text/javascript">IK('common', 'setting-eventhandler'); </script> <!--{/loop}--> <!--{if $countAchives > 0}--> <div id="div_archives" class="mod"> <a href="{SITE_URL}{tsUrl('site','archives',array('roomid'=>$roomid))}">&gt; 更多应用</a> </div> <!--{/if}--> <div class="mod" id="sp-rec-room"> <div class="bd"> <div class="rec-sec"> <span class="rec"></span> </div> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> <div id="sp-user" class="mod" > <div class="bd"> <div class="user-pic"> <img src="{$strSite[icon_180]}" alt="{$strSite[sitename]}"> </div> <div class="site-follow"> <!--{if $ismyfollow }--> <span>我喜欢这个小站。</span><span><a id="unlike" href="{SITE_URL}{tsUrl('site','siteac')}" class="lnk-unfollow a_lnk_unlike" title="确实不再关注 {$strSite[sitename]} 吗?">&gt;取消</a></span> <input id="followed" value="1" type="hidden"> <!--{else}--> <!--{if $IK_USER[user][userid] > 0}--> <a class="lnk-follow a_lnk_like" href="{SITE_URL}{tsUrl('site','siteac')}" id="like">喜欢</a> <!--{else}--> <a class="lnk-follow a_show_login" href="{SITE_URL}{tsUrl('site','siteac')}" id="like">喜欢</a> <!--{/if}--> <input id="followed" type="hidden" value="0" /> <!--{/if}--> </div> <div class="desc"> {$strSite[sitedesc]} </div> <div class="share" id="share-site"> <p> <strong class="title">分享小站</strong> <span class="shuo" title="豆瓣广播"><a href="#" class="a_lnk_share" rel="http://www.douban.com/recommend/?|douban|{$strSite[sitename]}|推荐{$strSite[sitename]}的爱客小站|{SITE_URL}{tsUrl('site','mine',array('siteid'=>$siteid))}">&nbsp;</a></span> <span class="sina" title="新浪微博"><a href="#" class="a_lnk_share" rel="http://v.t.sina.com.cn/share/share.php?appkey=|sina|{$strSite[sitename]}|推荐{$strSite[sitename]}的爱客小站|{SITE_URL}{tsUrl('site','mine',array('siteid'=>$siteid))}">&nbsp;</a></span> <span class="tqq" title="腾讯微博"><a href="#" class="a_lnk_share" rel="http://v.t.qq.com/share/share.php?source=|qzone|{$strSite[sitename]}|推荐{$strSite[sitename]}的爱客小站|{SITE_URL}{tsUrl('site','mine',array('siteid'=>$siteid))}">&nbsp;</a></span> </p> <script>IK('sharetool')</script> </div> <div class="site-info"> 网站信息 </div> </div> </div> <div class="mod" id="db-followers"> <div class="hd"> <h2> <span>喜欢该小站的成员</span> <span class="pl"> ( <a href="{SITE_URL}{tsUrl('site','likers',array('id'=>$strSite[siteid]))}">{$likesiteNum}</a> ) </span> </h2> </div> <div class="bd"> <ul class="list-s"> {loop $arrlikeUser $item} <li> <div class="pic"> <a class="nbg" href="{SITE_URL}{tsUrl('hi','',array('id'=>$item[doname]))}" title="{$item[username]}"> <img alt="{$item[username]}" class="imgg" src="{$item[face_32]}"> </a> </div> </li> {/loop} </ul> </div> </div> <!--{loop $strRightMod $item}--> <div class="mod sort" id="{$item[table]}-{$item[itemid]}"> <div class="hd"> <h2> <span>$item[title]</span> <span class="pl"> ( <a href="updateurl">修改</a> ) </span> </h2> <div class="edit"> <a href="#" rel="settingurl" class="a_lnk_mod_setting">设置</a> </div> </div> <div class="bd"> <!--{if $item[table]=='bulletin'}--> <div class="bulletin-content" >{php echo nl2br($item[content])}</div> <!--{/if}--> <!--{if $item[table]=='notes'}--> <!--{if $item[content]==''}--> <div class="createnew"> 记录你的最新动向 <a href="http://site.douban.com/widget/notes/8528623/create"> &gt; 提笔写日记</a> </div> <!--{else}--> {$item[content]} <!--{/if}--> <!--{/if}--> </div> </div> <!--{/loop}--> </div> <!--//aside--> <div class="extra"> <a href="#" class="gact">&gt; 举报不良信息</a> </div> </div> <!--//内容--> <!--{if $strSite[userid] == $IK_USER[user][userid]}--> <script type="text/javascript"> var mine_page_url="{SITE_URL}{tsUrl('site','layout',array('ts'=>'update','roomid'=>$roomid))}"; var globalsiteid = "{$siteid}", globalroomid = "{$roomid}"; var aside = false; IK('{SITE_URL}public/js/lib/jquery-ui-sortable-dd.js', '{SITE_URL}app/site/js/mod_dragdrop.js', '{SITE_URL}app/site/js/nav_dragdrop.js'); </script> <!--{/if}--> <script type="text/javascript"> var pop_like_form = "{SITE_URL}{tsUrl('site','siteac',array('ts'=>'pop_like_form','siteid'=>$siteid))}"; var pop_unlike_form = "{SITE_URL}{tsUrl('site','siteac',array('ts'=>'pop_unlike_form','siteid'=>$siteid))}"; IK('room-action'); </script> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/room.html
HTML
oos
10,927
<!--头部--> {template site_header} <!--//头部--> <!--导航--> {template site_nav} <!--//导航--> <!--内容--> <div id="content"> <!--main--> <div class="main"> <h1>小站管理</h1> <div class="mod" id="sp-setting"> <div class="hd"> {template setting_nav} </div> <div class="bd log-list"> <h3>2012-05-07</h3> <ul> <li> <div class="pic"> <img src="http://img3.douban.com/pics/dou48.gif"> </div> <div class="info"> <p>系统 添加了房间 <a href="http://site.douban.com/156430/room/1623787/">未命名房间</a></p> <p>系统 将用户 <a href="http://www.douban.com/people/charm_888/">小麦</a> 提升为 所有者</p> </div> </li> <li> <div class="pic"> <a href="http://www.douban.com/people/charm_888/"><img src="http://img3.douban.com/icon/u38672004-11.jpg"></a> </div> <div class="info sep"> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 重新设计了小站</p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 删除了应用 <a href="http://site.douban.com/widget/videos/8123174/">乖乖网的视频</a></p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 在房间 <a href="http://site.douban.com/156430/room/1623787/">首页</a> 添加了应用 <a href="http://site.douban.com/widget/videos/8123174/">乖乖网的视频</a></p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 删除了应用 <a href="http://site.douban.com/widget/bulletin/8122773/">乖乖网的公告栏</a></p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 将 <a href="http://site.douban.com/widget/bulletin/8122773/">乖乖网的公告栏</a> 的公告更新为 "[url=http://baidu.com]人文网站[/url] 现CSS代码格式化 css在线压缩工具,用来减少文件体积或增加可读性... 提供的CSS代码格式化和css在线压缩工具,经过测试,经常格式化后的代码,有时会因为书写css伪类时冒"</p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 将 <a href="http://site.douban.com/widget/bulletin/8122773/">乖乖网的公告栏</a> 的公告更新为 "[url=http://baidu.com]人文网站[/url]"</p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 在房间 <a href="http://site.douban.com/156430/room/1623787/">首页</a> 添加了应用 <a href="http://site.douban.com/widget/bulletin/8122773/">乖乖网的公告栏</a></p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 将房间 未命名房间 改名为 <a href="http://site.douban.com/156430/room/1623787/">首页</a></p> <p><a href="http://www.douban.com/people/charm_888/">小麦</a> 在房间 <a href="http://site.douban.com/156430/room/1623787/">未命名房间</a> 添加了应用 <a href="http://site.douban.com/widget/miniblog/8088085/">乖乖网的广播</a></p> </div> </li> </ul> </div> </div> </div> <!--//main--> <!--aside--> <div class="aside"> {template admins_aside} </div> <!--//aside--> <div class="extra"> </div> </div> <!--//内容--> <!--尾部--> {template site_footer} <!--//尾部-->
12ik
trunk/app/site/html/log.html
HTML
oos
3,998
<?php defined('IN_IK') or die('Access Denied.'); return array( 'name' => '小站', 'version' => '1.0', 'desc' => '如果想向大家分享某一兴趣主题的精彩内容,可以创建一个小站!', 'url' => 'http://www.12ik.com', 'email' => '160780470@qq.com', 'author' => '小麦', 'author_url' => 'http://www.12ik.com', 'isoption' => '0', 'isinstall' => '1', 'issql' => '1', 'issystem' => '1', 'isappnav' => '1', );
12ik
trunk/app/site/about.php
PHP
oos
448
@charset "utf-8"; #sp-setting { margin:0 80px 0 60px } #sp-setting h2 { color:#666; margin-bottom:8px } #sp-setting .selected { border:1px solid #333 } .sys-bg-list { margin-bottom:6px } .sys-bg-list li { cursor:pointer; margin:0 5px 5px 0; *margin-bottom:2px; border:1px solid #fff } .sys-bg-list img { border:1px solid #fff; margin-bottom:-5px } .type-nav { position:relative; height:24px; margin:-33px 0 25px; margin:-33px 0 15px\9; *margin:-33px 0 0; text-align:right } .type-nav li { display:inline-block; *display:inline; zoom:1; margin-right:10px } .type-nav a { display:inline-block; padding:3px 8px; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px } .sp-design-opt { margin:0 0 10px } .sp-design-opt .btn-large { margin-right:5px } .sp-design-opt label { display:block; float:none; width:auto; color:#999 } .btn-large,.btn-large-active { display:inline-block; *display:inline; zoom:1; cursor:pointer; outline:0; outline-style:none; color:#666; width:221px; height:40px; line-height:40px; text-align:center; font-size:14px; border:1px solid #d8dad8; background:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e4e4)); background:-moz-linear-gradient(-90deg,#fff,#e6e4e4); background:url(sp_all_4.png) repeat-x 0 -650px\9; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px } .btn-large:hover { background:-webkit-gradient(linear,0 0,0 100%,from(#f9f9f9),to(#e0e0e0)); background:-moz-linear-gradient(-90deg,#f9f9f9,#e0e0e0) } .btn-large:active { background:#ececec } .btn-large-active,.btn-large-active:hover { color:#666; border:1px solid #e8eae8; color:#cbcbcb; background:#f7f7f7 } #sp-bg-upload { margin:15px 0 8px } .sp-bg-preview { margin-top:10px } .sp-bg-preview .selected { border:1px solid #999 } .sp-bg-show { float:left; width:105px; height:72px; cursor:pointer; margin-right:6px; border:1px solid #fff; background:#edf0ed; overflow:hidden } .sp-bg-show img { width:105px } .sp-bg-none { float:left; width:105px; height:72px; border:1px solid #fff; cursor:pointer; background:#f0f0f0 url(no_repeat.png) no-repeat center center } .sp-bg-sel { clear:both; padding-top:7px } .sp-bg-sel label { margin-right:18px } .sp-theme-sel { margin-top:18px } .sp-theme-sel li { display:inline-block; *display:inline; zoom:1; width:80px; margin-right:10px } .sp-theme-sel a { display:block; position:relative; overflow:hidden; outline:0; height:74px; border:1px solid #999; border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px } .sp-theme-sel em { position:absolute; display:inline-block; *display:inline; zoom:1; color:#666; font-size:9px; text-align:center; width:11px; height:11px; line-height:12px; _line-height:14px; overflow:hidden; background:#fff; border:1px solid #999; right:3px; bottom:3px } .sp-theme-sel .kind { display:block; text-align:center; color:#999; margin-bottom:5px } .sp-setting-btn { margin-top:40px; text-align:center } .sp-setting-btn .bn-flat-hot { margin-right:15px } #sp-bg-modify,#sp-theme-modify,#bg-upload-form { display:none } #sp-bg-repeat { margin-top:8px } .sp-bg-preview label { display:inline } #sp-setting-form { color:#5c6a6e } #sp-setting-form .item { margin-bottom:2ex } #sp-setting-form .item-submit { padding:10px 0 0 90px } #sp-setting-form .item-submit .bn-flat-hot { margin-right:15px } #sp-setting-form .tips { display:block; color:#999; margin:3px 0 0 90px } #sp-setting-form .tips em { color:#f66 } #sp-setting-form .form-tips { margin:0 0 5px 90px; width:330px } #sp-setting-form .form-tips em { color:#108fbe } #sp-setting-form .sp-desc { height:60px } #sp-setting-form h2 { margin:50px 0 30px } #sp-setting-form p { margin:15px 0 5px 90px } #sp-setting-form label { font-size:14px; width:90px } #sp-setting-form .sp-input,#sp-setting-form .sp-desc { width:330px; color:#666; font-size:12px; border:1px solid #cdd5cf; padding:5px; border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px } .lnk-tips { color:#999; margin:20px 0 0 } .sp-icon-b,.sp-icon-s { vertical-align:top; margin-right:10px } .sp-icon-s { width:48px; height:48px } .sp-icon,.sp-icon-opt { display:inline-block; *display:inline; zoom:1; vertical-align:top } .sp-icon { width:180px; margin-right:20px } .sp-icon-opt { width:295px } .sp-icon-opt h2 { font-size:13px } .sp-icon-opt li { height:180px; margin-bottom:15px; border-bottom:1px dashed #ddd } .sp-icon-opt p { color:#666 } .sp-icon-opt p.tips { color:#999; margin:-8px 0 8px } .sp-icon-opt .last { border:0 } .submit-icon { margin-top:30px } .submit-icon .bn-flat-hot { margin-right:15px } .icon-wrapper { float:left; margin-right:10px; display:block; width:48px; height:48px; overflow:hidden } #upload-tips { color:#f66 } .type-intro { color:#999; font-size:14px } .type-intro li { margin-top:30px } .type-intro p { line-height:23px; margin-top:8px } .setting-list li { margin-bottom: 8px; } .setting-list label { float: none; margin-left: 5px; width: auto; } .log-list h3 { clear: both; padding-top: 10px; font-size: 14px; border-bottom: 1px solid #ddd; } .log-list li { margin-bottom: 15px; } .log-list .pic, .log-list .info { display: inline-block; *display: inline; zoom: 1; padding-top: 15px; } .log-list .pic { vertical-align: top; width: 50px; margin-right: 16px; _float:left } .log-list .info { width: 436px } .log-list .info p { line-height: 18px; margin-bottom: 15px } .log-list .sep { border-top: 1px solid #eee } #dou-balance { margin-bottom: 25px } #dou-balance em { color:#f30; } #dou-details table { table-layout:fixed; width:100%; } #dou-details th, #dou-details td { padding:4px 0;border-bottom:1px dashed #dedede;color:#666; } #dou-details th { color:#333; white-space:nowrap; } #dou-details .bd { margin-bottom:10px; } #dou-details .ft { text-align:right; font-size:14px; } #dou-details .td-user { min-width:7em; _width:7.5em; padding-right:8px; } .td-in, .td-out, .td-datetime { width:3em; } .td-datetime { text-align:left; } .td-type { width:6em; } .td-datetime { width:7em; } .td-note { width:6em; _width:auto; } #sp-setting-form .item label { line-height: 1 } #sp-setting-form .writer-setting label { width:9em; } #sp-setting-form .writer-setting .note { padding-left:128px; } form .item-group label { float:none;width:auto;font-size:12px;margin-right:1ex; } form .item-group input { margin:0; } #sp-setting-form .item-group label { font-size:12px; } .feedback-tips {color:#333;} #sp-setting-form .item .long { margin: 10px 0; font-size: 14px } #sp-setting-form .item .sp-desc { margin-bottom: 5px; } #sp-setting-form .tips-error { color: #fe2617 } #sp-setting-form .validate-wrap { display: inline; position: absolute; line-height: 25px; } #sp-setting-form .validate-option { display: inline; color: #666666 } #sp-setting-form .validate-error { color: #fe2617 } #sp-setting-form .tips-error, #sp-setting-form .validate-error, #sp-setting-form .validate-option { background: url(tips_arrow.gif) no-repeat; display: block; line-height: 25px; padding-left: 10px; margin-left: 10px;} #sp-setting-form .tips-error, #sp-setting-form .validate-error { background-position: 0 -46px } #sp-setting-form .validate-option { background-position: 0 9px }
12ik
trunk/app/site/skins/default/setting.css
CSS
oos
7,684
charset "utf-8"; body { color:#333 } td { word-break:break-all } pre { white-space:pre-wrap; word-wrap:break-word; font-family:arial,helvetica,sans-serif } textarea { overflow:auto; border:1px solid #ccc; padding:3px; font-size:12px } .notes { font-size:12px; color:#666 } .datetime { color:#666 } .list-b .count { text-align:left } .list-b .date { width:10em } .message { margin:10px; padding:10px; border:1px solid #ef9c3b; color:#ef9c3b; background:#fff9df } .hidden { display:none!important } a.processing:link,a.processing:visited { color:#666 } a.processing:hover,a.processing:active { background-color:#666; color:#fff } textarea { resize:none } input[type=text]:focus,input[type=password]:focus,textarea:focus { outline:0 } .clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden } .clearfix { zoom:1; display:inline-block; _height:1px } *html .clearfix { height:1% } *+html .clearfix { height:1% } .clearfix { display:block } .extra { clear:both; overflow:hidden; padding:0 20px; text-align:right; color:#999 } .extra a { color:#999 } .extra a:hover { color:#fff } .wrapper { width:950px; padding:0 5px } .main,.aside { padding:40px 0 0 0 } .main { float:left; width:650px; word-wrap:break-word } .aside { width:300px } #header { margin:0; padding:0 } #content { min-height:500px; _height:500px; padding-bottom:50px; background:#fff } #content h1 { font-weight:normal; font-size:22px; margin:0 0 10px 35px; line-height:1; color:#333 } .bg { position:absolute; top:0; left:0; z-index:-1; width:100%; height:300px; background:#d0c6db } .bg. mask { display:none } .mod { width:auto; *zoom:1; margin-bottom:50px } .mod h2 { padding:0; font-size:16px } .mod .hd { position:relative; *display:inline-block; margin-bottom:14px } .mod h2 .pl { font-size:12px } .mod .hd .edit { padding:0 3px; line-height:1.5; visibility:hidden; position:absolute; background:#fff; right:0; bottom:0; border-radius:3px; -webkit-border-radius:3px; -moz-border-radius:3px } .mod-stat-active .hd .edit { visibility:visible } .mod .stat-active div.edit { visibility:visible } .mod:after { content:'\0020'; clear:both; display:block } .main .mod { margin:0 35px 50px } .aside .mod { margin:0 50px 50px } .list-s li { float:none; display:-moz-inline-box; display:inline-block; *display:inline; *zoom:1; vertical-align:top; margin-bottom:10px; margin-right:-3px } .paginator a,.paginator .on { padding:1px 5px } .item-submit input { _height:1.4em } .top-nav { position:relative; overflow:hidden; border:0; height:auto; margin:0; padding:11px 0 14px 0 } .top-nav .logo { float:left; width:155px; height:30px; overflow:hidden; line-height:10em; background:url(../logo.png); _background:0; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/pics/site/sp_logo.png',sizingMethod='crop'); _cursor:pointer } a.logo:hover,a.logo:active { background-color:transparent } .top-nav a:link,.top-nav a:visited,.top-nav a:hover,.top-nav a:active { color:#8b8b8b } .top-nav .top-nav-info a:hover { background-color:#8b8b8b; color:#fff } .sp-nav { padding:22px 20px 0; background:#beb1cc; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; -webkit-border-top-left-radius:6px; -webkit-border-top-right-radius:6px; border-top-left-radius:6px; border-top-right-radius:6px } .nav-items { clear:both; *display:inline-block } .nav-items li { float:left; position:relative; height:28px; line-height:28px; *line-height:25px; background:#d0c6db; margin-right:2px; margin-top:2px } .nav-items li a { display:block; padding:0 15px 0; color:#fff; outline:0; *padding-top:3px } .nav-items li a:link,.nav-items li a:visited { color:#fff } .nav-items li a:hover,.nav-items li a:active { background-color:transparent } .nav-items li.on { border:1px solid #ddd; padding-bottom:1px; margin-top:0; border-bottom:0; background:#fff } .nav-items li.on a:hover { background-color:#fff } .nav-items li.on a,.nav-items li.on a:link,.nav-items li.on a:visited { color:#4e4e4e; padding:1px 14px 0; *padding-top:3px } .nav-items li.on em { display:inline-block; *display:inline; zoom:1; vertical-align:middle; line-height:20em; overflow:hidden; width:14px; height:26px; *height:25px; margin:0 -5px 0 5px; background:url(sp_all_4.png) no-repeat 0 -70px; cursor:pointer } .nav-items li.on a:hover em,.nav-items li.on em.current { background-position:0 -95px } .nav-items li.opt { position:relative; z-index:888 } .nav-items li.opt a { padding:0 8px 0; *padding-top:3px } .nav-items li.opt ul { display:none; position:absolute; z-index:999; width:150px; border:1px solid #bbc5be; margin:-1px 0 0; padding:5px 0; *padding:5px 0 2px; background:#fff } .nav-items li.opt li { float:none; margin:0; padding:0; height:25px; line-height:25px; width:auto; background:0 } .nav-items li.opt li a:link,.nav-items li.opt li a:visited { display:block; color:#5c6a6e; padding:0 8px } .nav-items li.opt li a:hover { background:#eceaea } .sp-logo { margin-bottom:15px } .sp-nav:after,.sp-logo:after { content:'\0020'; clear:both; display:block } .sp-logo .logo { float:left } .sp-logo .sigture { float:left; padding-top:14px; color:#ddd } .sp-logo img { vertical-align:middle; margin-right:12px; margin-bottom:5px; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px } .sp-logo a,.sp-logo a:link,.sp-logo a:visited { font-size:25px; color:#fff; font-family:Georgia; outline:0 } .sp-logo a:hover,.sp-logo a:active { background-color:transparent } .content-nav { margin:-14px 35px 0 0; text-align:right } .content-nav a { margin-left:10px } .title-link { position:relative; margin:0 35px 10px 0; text-align:right; clear:both } .title-link a { margin-left:10px } #admin-icon,#manage-room { background-image:url(sp_all_4.png); background-repeat:no-repeat } #manage-room { padding-left:33px; background-position:15px -193px } #admin-icon { background-color:#bbb; width:30px; height:28px; padding:0; line-height:10em; overflow:hidden; background-position:7px -142px } #admin-icon:hover,.admin-icon-active { background-color:#a9a9a9!important } .rec-num { margin:0 0 0 6px } .lnk-sharing { display:inline-block; *display:inline; zoom:1; padding:0 8px; vertical-align:middle; *vertical-align:baseline; height:19px; line-height:19px; line-height:21px\9; overflow:hidden; border:1px solid #b9dcd0; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px } a.lnk-sharing:link,a.lnk-sharing:visited { border-color:#e3f1ed; background-color:#f2f8f2; color:#4f946e } a.lnk-sharing:hover,a.lnk-sharing:active { border-color:#c4e2d8; background-color:#eff5ef!important; color:#4f946e!important } .rec-btn { letter-spacing:4px } .rec-btn,.rec-btn:hover { color:#4f946e!important; display:inline-block; *display:block; margin-left:6px; vertical-align:text-bottom; background:url(bg_rec_btn.png) no-repeat; width:46px; height:20px; padding-left:26px; line-height:20px; overflow:hidden } .rec-btn:hover { background-color:transparent!important; background-position:0 -20px } .ic-auth,.lnk-flat,.lnk-follow,.lnk-followed,.lnk-rec,.lnk-rec span,.bn-flat-hot,.bn-flat { display:-moz-inline-box; display:inline-block; border-width:1px; border-style:solid; border-color:#d9d9d9 #ccc #c9c9c9; *display:inline; *zoom:1; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; overflow:hidden; vertical-align:middle } .bn-flat-hot:hover,.bn-flat:hover,a.lnk-flat:hover { border-color:#c9c9c9 } .lnk-flat,.bn-flat-hot input,.bn-flat input { border:0; height:25px; padding:0 14px; color:#333; background:transparent url(sp_all_4.png) repeat-x 0 -700px\9; outline:0; font-size:12px; *padding:3px 8px 0; margin:0!important; cursor:pointer; -webkit-appearance:none; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; background-image:-moz-linear-gradient(-90deg,#fff 50%,#e9e8e8 100%); background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0.5,#fff),color-stop(1,#e9e8e8)) } a.lnk-flat:hover,a.lnk-flat:active,.bn-flat input:hover,.bn-flat-over input { color:#333!important; background-color:transparent!important; background-position:1px -706px\9; background-image:-moz-linear-gradient(-90deg,#f5f5f5 40%,#dedede 100%); background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0.4,#f5f5f5),color-stop(1,#dedede)) } a.lnk-flat:active,.bn-flat input:active,.bn-flat-active input { background:#ebebeb!important } .lnk-flat { border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px } .bn-flat-hot input { font-weight:bold } .bn-flat-hot input:hover { background-position:0 -706px\9; background-image:-moz-linear-gradient(-90deg,#f5f5f5 40%,#dedede 100%); background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0.4,#f5f5f5),color-stop(1,#dedede)) } .bn-flat-hot input:active { background:#ebebeb } .bn-flat-red input { cursor:pointer; height:22px; line-height:1; padding:0 6px; color:#ff7676; border:1px solid #ffa4a4; background:#fcdada; zoom:1; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; padding-top:1px\9; *padding:3px 0 0 } .bn-flat-red input:hover { color:#fff; border-color:#ee3434; background:#ff9494 } @-moz-document url-prefix() { .bn-flat-red input { height:23px; padding-bottom:2px } }.lnk-flat { height:24px; padding:0 8px; line-height:24px; border:1px solid #d9d9d9 } a.lnk-flat:link,a.lnk-flat:visited { color:#333; background:transparent url(sp_all_4.png) repeat-x 0 -641px\9 } a.lnk-flat:hover { color:#333; background-position:0 -701px\9 } a.lnk-flat:active { color:#333; background:#ebebeb } .lnk-rec span { border-width:0; padding:2px 10px; cursor:pointer; background:url(sp_all_4.png) no-repeat 10px -812px; padding-left:30px; vertical-align:baseline } .lnk-rec { border-color:#b9dcd0; height:24px; line-height:21px; overflow:hidden; vertical-align:baseline } .mod a.lnk-rec:link,.mod a.lnk-rec:visited { color:#4f946e; background:#eff7ef } .mod a.lnk-rec:hover { color:#4f946e; background:#ecf3ec!important } .mod a.lnk-rec:active { color:#4f946e; background:#e5eee5 } @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0) { .lnk-flat,.bn-flat-hot input,.bn-flat input { background:transparent url(sp_all_4.png) repeat-x 0 -700px } a.lnk-flat:hover,a.lnk-flat:active,.bn-flat input:hover,.bn-flat-over input { background-position:1px 706px } a.lnk-flat:link,a.lnk-flat:visited { background:transparent url(sp_all_4.png) repeat-x 0 -641px } a.lnk-flat:hover { background-position:0 -701px } }.bn-small { background:#fdd; border:1px solid #ffabab; color:#ff7676; -moz-border-radius:4px; -webkit-border-radius:4px; border-radius:4px; -webkit-appearance:none; cursor:pointer; height:16px\9; *height:17px; padding:0 2px; *padding:0 } a.bn-small:link,a.bn-small:visited,a.bn-small:hover,a.bn-small:active { background:#fdd; color:#ff7676; padding:0 4px; line-height:1.8; font-size:12px; *line-height:1.3; zoom:1; *height:13px; *overflow:hidden } .bn-big { background:#fdd; border:1px solid #ffabab; color:#ff7676; border-radius:3px 3px 3px 3px; display:inline-block; -moz-border-radius:4px; -webkit-border-radius:4px; -webkit-appearance:none; overflow:hidden; padding:0 8px; vertical-align:middle; word-warp:break-word; padding-top:1px; padding-bottom:1px; font-size:12px; font-family:arial,helvetica,sans-serif } a.bn-big:link,a.bn-big:visited,a.bn-big:hover,a.bn-big:active { background:#fdd; color:#ff7676; padding:0 4px; line-height:1.8; font-size:12px; *line-height:1.3; zoom:1; *height:13px; *overflow:hidden } .mod .lnk-follow { border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; border:1px solid #0baf57; padding:0 25px 0 25px; height:25px; line-height:25px; font-size:13px; overflow:hidden; background:url(sp_all_4.png) repeat-x 0 -851px\9; background-color:transparent!important; *vertical-align:baseline } .mod a.lnk-follow:link,.mod a.lnk-follow:visited { color:#fff; background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#2cc677),color-stop(1,#1eb964)); background:-moz-linear-gradient(-90deg,#2cc677,#1eb964) } .mod a.lnk-follow:hover { color:#fff; background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#2abd71),color-stop(1,#1db05e)); background:-moz-linear-gradient(-90deg,#1db05e,#1db05e); background:url(sp_all_4.png) repeat-x 0 -885px\9 } .mod a.lnk-follow:active { color:#fff; background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#13b863),color-stop(1,#0baf58)); background:-moz-linear-gradient(-90deg,#13b863,#0baf58); background:url(sp_all_4.png) repeat-x 0 -919px\9 } .mod a.lnk-follow:hover { background-position:0 -885px } .mod a.lnk-follow:active { background-position:0 -919px } a.lnk-followed:hover,a.lnk-followed:active,.lnk-followed { border-color:#dfdfdf; overflow:hidden; padding:0 10px 0 30px; font-size:13px; color:#666; line-height:26px; background:#f2f2f2 url(sp_all_4.png) 10px -958px no-repeat } .spec-icon { margin:15px 0 0; text-align:center } .ic-auth { border:0; color:#aaa; line-height:21px; padding-left:30px; background:transparent url(sp_all_4.png) 0 -1329px } a.rec-btn:link,a.rec-btn:visited,a.rec-btn:hover,a.rec-btn:active { background:url(bg_rec_btn.png) no-repeat; width:46px; height:20px; padding-left:26px; letter-spacing:4px; text-indent:0; line-height:20px; overflow:hidden } a.rec-btn:hover { background-position:0 -20px } .collect-dialog .rr { float:right } .collect-dialog label { width:auto } .collect-dialog textarea { width:90% } .collect-dialog .a_stars { display:block; margin-bottom:10px } #populartags { padding-top:10px; margin-bottom:10px } #populartags dt,.collect-dialog .tagbtn,#populartags dd { display:inline-block; *display:inline; *zoom:1; vertical-align:top } #populartags dt { margin-right:10px; color:#666 } #populartags dd { width:80% } .collect-dialog .tagbtn { color:#060; text-decoration:none; line-height:1.2; font-size:12px; text-align:center; border-right:1px solid #afa; border-bottom:1px solid #afa; background-color:#efe; padding:3px 3px 2px 3px; margin-bottom:2px; cursor:pointer; white-space:nowrap } .collect-dialog .selected { background-color:#efe; border-bottom:1px solid #afa; border-right:1px solid #afa; color:#bbb } #rateword { color:#999 } .rate_stars img { vertical-align:text-bottom } .rec-sec { float:right } .rec-sec .rec-num,.rec-sec .rec { float:none } .rec-sec .rec { margin-left:4px; vertical-align:middle } .rec-sec .rec-num { vertical-align:baseline; zoom:1 } .admin-lnks { padding:5px 0 } .admin-lnks,.admin-lnks a:link,.admin-lnks a:visited { color:#ccc } .admin-lnks a:hover,.admin-lnks a:active { color:#fff; background:#ccc!important } .comment-item .admin-lnks,.update-item .admin-lnks { text-align:right } .msg { border:1px solid #faf3ca; padding:10px; background:#fffadc; margin-bottom:10px; font-size:12px } .db-ad { text-align:center } #sp-user-card { padding:4px; margin:20px 0 50px; background-color:#edeee0 } #sp-user-card .hd { text-align:center; margin:0; padding:13px 10px 5px; border:1px solid #e5e4e1; border-bottom:0; background-color:#fff } #sp-user-card .bd { padding:15px; background:#fff; border:1px solid #e5e4e1; border-top:0; word-wrap:break-word } #sp-user-card .bd li { line-height:21px } #sp-user-card .bd li span { color:#777 } #sp-user-card .signature { padding-top:15px; text-align:right } #sp-user-card .signature img { margin-left:10px } #sp-user-card .title { padding-bottom:10px; border-bottom:1px solid #e5e4e1 } #sp-user-card .title a { font-size:14px } #sp-user-card .title a:link,#sp-user-card .title a:visited { text-decoration:underline } #sp-user-card .title a:hover,#sp-user-card .title a:active { background:transparent } .site-info .sp-user-card { padding:4px; margin:20px 0 50px; background-color:#edeee0 } .sp-user-card .hd { text-align:center; margin:0; padding:13px 10px 5px; border:1px solid #e5e4e1; border-bottom:0; background-color:#fff } .sp-user-card .bd { padding:15px; background:#fff; border:1px solid #e5e4e1; border-top:0; word-wrap:break-word } .sp-user-card .bd li { line-height:21px } .sp-user-card .bd li span { color:#777 } .sp-user-card .signature { padding-top:15px; text-align:right } .sp-user-card .signature img { margin-left:10px } .sp-user-card .title { padding-bottom:10px; border-bottom:1px solid #e5e4e1 } .sp-user-card .title a { font-size:14px } .sp-user-card .title a:link,.sp-user-card .title a:visited { text-decoration:underline } .sp-user-card .title a:hover,.sp-user-card .title a:active { background:transparent } .book-card .title a:link,.book-card .title a:visited,.book-card .title a:hover,.book-card .title a:active,.bizstore-card .title a:link,.bizstore-card .title a:visited,.bizstore-card .title a:hover,.bizstore-card .title a:active,.host-card .title a:link,.host-card .title a:visited,.host-card .title a:hover,.host-card .title a:active,.music-card .title a:link,.music-card .title a:visited,.music-card .title a:hover,.music-card .title a:active { color:#65b899 } .book-card .signature { color:#21aabd } .book-card .hd { background:url(sp_all_4.png) no-repeat 17px -1187px } .music-card .hd { background:url(/pics/site/music-beam-16.png) no-repeat 16px 16px } .bizstore-card .map-small { display:block; overflow:hidden; margin-bottom:20px } .bizstore-card .list li { margin-bottom:5px } .bizstore-card .list p { color:#999 } .bizstore-card .title { background:url(/pics/site/ic_bizstore.png) no-repeat 4px 2px } .host-card .title { background:url(/pics/site/ic_host.png) no-repeat 4px 2px } .movie-site-card .title a:link,.movie-card .title a:visited,.movie-card .title a:hover,.movie-card .title a:active { color:#65b899 } .movie-site-icon .title { background:url(/pics/site/lc_cinema.png) no-repeat 12px 4px } .movie-site-card li { margin-bottom:5px } .movie-site-card li.gray-a { margin-bottom:0 } .movie-site-card li.gray-a span { color:#333 } .movie-site-card li.gray-a span.pl { color:#666 } .movie-site-card .gray-a a { color:#333 } .movie-site-card .gray-a a:hover { color:#fff; background:#777 } #movie-site-card { background-color:#edeee0; margin:20px 0 50px; padding:4px } .board form { margin-bottom:20px } .board .update-item .author { min-height:48px; _height:48px; border-bottom:1px solid #ddd } .board-text { width:96%; height:50px; margin-bottom:5px } .board .func { margin-bottom:20px } .board .pic img { height:36px } .board .update-item { margin-bottom:0 } .board .update-item .author { min-height:38px; _height:38px; padding-bottom:5px; margin:-2px 0 7px } .board .update-item .content { padding-left:4em } .doulist-desc { margin-bottom:10px } .doulist .list-s li { width:20% } .add-new-item em { color:#999 } .item-entry { margin-top:20px } .item-entry .title { font-size:14px } .item-entry .summary { overflow:hidden; width:100%; word-wrap:break-word } .summary .ll,.item-entry .summary .pic { float:left; margin:0 10px 5px 0 } .createnew { margin-top:15px; color:#999; font-size:14px; text-align:center } .aside .sidenav { color:#666; padding:20px } .sidenav a { font-size:14px } .sidenav li { margin-top:4px } .navbar { padding-bottom:2px; margin-bottom:20px; text-align:right; color:#666; border-bottom:1px solid #ddd } .navbar a { margin-right:5px } .xbar { background:#fff6ee; margin-bottom:20px; border-bottom:1px solid #faeee4; -moz-border-radius-topleft:3px; -moz-border-radius-topright:3px; -webkit-border-top-left-radius:3px; -webkit-border-top-right-radius:3px; border-top-left-radius:3px; border-top-right-radius:3px } .xbar ul { margin-left:20px } .xbar li { display:-moz-inline-box; display:inline-block; *display:inline; *zoom:1; vertical-align:middle; padding:3px 12px 1px; border-top-left-radius:4px; border-top-right-radius:4px; -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -webkit-border-top-left-radius:4px; -webkit-border-top-right-radius:4px } .xbar li.on { position:relative; background:#fff; margin-bottom:-1px; border:1px solid #faeee4; border-bottom:0 } .xbar .more { float:right; margin-right:10px; *display:inline; line-height:1.8 } .dui-dialog .rectitle,.dui-dialog .rectitle a,.dui-dialog .rectitle .m,.dui-dialog .rectitle .gact,.dui-dialog .recsubmit { display:none } .dui-dialog .recsmr { display:block; margin-bottom:10px; color:#666 } .reccomment .pl { float:left; margin-right:20px } .reccomment textarea { width:97% } .reccomment label { position:absolute; width:auto; color:#999; margin:2px 0 0 6px; cursor:text } .rectitle { margin-bottom:20px; color:#666 } .dlg-success { text-align:center; color:#060; padding:10px 0; font-size:16px } .item .title { font-size:14px; margin-bottom:6px; text-align:left } .item .title span { font-size:12px; color:#666 } .paginator { clear:both; text-align:center; color:#666 } .followers-admin .name em { position:relative; z-index:10; display:inline-block; *display:inline; zoom:1; vertical-align:middle; overflow:hidden; margin:0 0 2px 6px; *top:3px; width:0; height:0; line-height:0; border:3px dashed transparent; border-top-width:6px; border-top-style:solid; border-top-color:#ccc; cursor:pointer } .followers-admin .hover em { *top:0; margin-bottom:7px; *margin-bottom:4px; border:3px dashed transparent; border-bottom-width:6px; border-bottom-style:solid; border-bottom-color:#ccc } .followers-admin .info .opt { display:none } .follower-overlay { display:none; position:absolute; backgroundd:#fff; border:1px solid #ccc } .follower-overlay .bd { padding:4px; background:#fff; -webkit-box-shadow:1px 1px 4px rgba(0,0,0,.3); -moz-box-shadow:1px 1px 4px rgba(0,0,0,.3); box-shadow:1px 1px 4px rgba(0,0,0,.3) } .follower-overlay .hd { position:absolute; width:14px; top:-21px; right:-1px; height:20px; background:#fff; border:1px solid #aaa; border-bottom:0; -webkit-box-shadow:1px 1px 4px rgba(0,0,0,.2); -moz-box-shadow:1px 1px 4px rgba(0,0,0,.2); box-shadow:1px 1px 4px rgba(0,0,0,.2) } .follower-overlay .hd em { position:absolute; top:0; left:0; width:14px; height:24px; background:#fff } .follower-overlay .bd a { display:block } .events-list .item { margin-bottom:40px; border:0 } .events-list .item .pic { width:170px; max-height:170px; padding-right:20px; overflow:hidden; _height:expression(this.height>170 ? 170:true) } .events-list .item .pic img { max-width:170px; max-height:170px; _width:expression(this.width>170 ? 170:true); _height:expression(this.height>170 ? 170:true) } .events-list .item .date { margin-left:0; font-size:14px } .events-list .item .info { float:none } .events-list .item .info h3 { font-size:15px; margin-bottom:15px } .events-list .item .info p { color:#808080 } .events-list .item .info p span { display:block } .events-list .discuss { margin-top:15px } .events-list-s .item { height:48px; margin-bottom:20px; border:0 } .events-list-s .date,.events-list-s .pic { display:inline-block; *display:inline; zoom:1; vertical-align:top; position:relative; z-index:99 } .events-list-s .date { width:48px; height:43px; margin:0 -3px 0 0; *margin:0; padding-top:5px; color:#333; font-size:12px; text-align:center; background:#ededed } .events-list-s .date b { display:block; font:24px Hei; line-height:.7; *line-height:24px; *margin-top:-3px } .events-list-s .pic { float:none; padding:0; width:48px; height:48px; margin:0 -3px 0 0; *margin:0; overflow:hidden } .events-list-s .pic img { width:48px; height:48px } .events-list-s .info { float:none; display:block; position:relative; height:47px; margin:-48px 0 0; padding:7px 0 0 115px; border-top:1px solid #dbdbdb } .events-list-s .info.long { padding:7px 0 0 67px } .events-list-s .item .info span { color:#808080 } .events-list-s .info h3 { font-size:14px; margin-bottom:3px; #margin-bottom:2px; _margin-bottom:3px } .events-list-s .follow { position:absolute; top:10px; right:5px } .events-list-s .item.close .date { color:#666; height:48px; padding:0; line-height:48px } .events-list-s .item.close .info { border:0; height:34px; background:#ededed; padding-top:14px } .events-list-s .item.close .follow { top:16px; right:10px } .event-head .pic,.event-head .info { display:inline-block; *display:inline; zoom:1; vertical-align:top } .event-head .pic,.event-head .pic img { max-width:170px; max-height:170px; _width:expression(this.width>170 ? 170:true); _height:expression(this.height>170 ? 170:true) } .event-head .pic { overflow:hidden; margin-right:20px } .event-head .info b { font-weight:normal; color:#777 } .event-head .info span { display:block } #content .event-head h1 { margin:0 0 15px } .event-head .opt { margin-top:15px } a.redbutt:link { color:#ff7676 } .post-list { margin-bottom:20px } .post { width:100%; display:inline-block; margin-bottom:40px } .post-author { float:left } .post-content { margin-left:75px } .post-content p { margin:10px 0 } .post-content .rec { float:right } .post-info { margin-bottom:10px; font-size:14px } .post-info .datetime { color:#060; margin-right:2em } .post-info .from { color:#666 } .post-comments { padding-left:75px } .post-title { font-size:12px; width:435px; padding:3px; border:1px solid #ccc } .comment-item .author { background:#efe; color:#666; padding:2px 4px } .comment-lnk { color:#666; font-size:14px; margin-bottom:20px } .comment-lnk a { font-size:14px } .comment-form { margin-bottom:30px } #comments .comment-report { visibility:hidden; text-align:right } #comments .comment-report a { color:#bbb } .votes { border-bottom:1px dashed #ddd; padding-bottom:10px; margin-bottom:20px } .votes h2 { float:none } .mod .votes h2 span { color:#666 } .votes ul { margin-bottom:10px } .votes li { overflow:hidden; *display:inline-block; margin-bottom:5px } .votes p { margin-bottom:10px; color:#666 } .votes form .item-submit { padding:0 } .voted { margin:0 5px; font-size:12px } .vote-item,.vote-line,.vote-line em,.vote-percent { display:-moz-inline-box; display:inline-block; *zoom; vertical-align:top } .vote-item input,.vote-item-long input { margin-right:5px } .vote-item label,.vote-item-long label { float:none; width:auto } .vote-item { float:left; width:40% } .vote-line { width:35%; padding-top:4px; overflow:hidden; margin-right:10px } .vote-line em { height:8px; overflow:hidden; background:#e0e78a } .vote-percent { color:#999; font-size:10px } #db-vote-explain .bd { color:#666 } #db-vote-explain p { margin-top:10px } .voted { color:#666 } .top-tips,.vote-top-tips { width:450px; color:#666; margin-bottom:25px; padding:12px 20px 2px; border:1px solid #e2e5e5; background:#f8f8f8; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px } .top-tips h3,.vote-top-tips h3 { font-size:14px; margin-bottom:8px; color:#333 } .top-tips p { margin-bottom:10px } .item-video { width:140px; word-wrap:break-word; text-align:left } .item-video .pic { margin-bottom:6px } .item-video .info { color:#666; *vertical-align:baseline } .item-video .pic a { position:relative; display:block; width:130px; height:97px; overflow:hidden } .item-video .pic a:hover .video-overlay { background-position:0 -97px } .video-overlay { position:absolute; width:130px; height:97px; top:0; left:0; background:url(/pics/video_overlay.png); cursor:pointer; _background:0; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader('/pics/video_overlay_ie6.png') } .video-list:after { content:'\0020'; clear:both; display:block } .video-list .list-s li { width:33%; float:none\9; display:inline-block\9; *display:inline; *zoom:1; vertical-align:top\9; text-align:left } .aside .video-list .list-s li { width:100%; *display:inline-block } .aside .video-list .item-video { width:auto } .aside .video-list .item-video .pic { float:left } .aside .video-list .item-video .info { margin-left:145px; *display:inline-block; *margin-left:140px } #db-video-list li { clear:both; margin-bottom:30px; overflow:hidden } #db-video-list .item-video { width:auto } #db-video-list .item-video .pic { float:left; margin-right:20px; vertical-align:top } #db-video-list .item-video .info { *float:left } .video-player { margin-bottom:10px } .video-info { margin-bottom:50px } .video-info .rec { float:right } .video-info p { color:#666 } .frm-video p { color:#666 } .frm-video .item { margin-top:10px } .frm-video .item label { width:6em } .frm-video .item input { width:80% } #sp-rec-room { background:#f6f6f6; border:1px solid #eaeaea; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px } #sp-rec-room .bd { padding:5px; *zoom:1 } #sp-rec-room .rec { float:right } #sp-rec-room .rec-sec { text-align:right } #sp-rec-room .rec-num { display:inline; margin-right:5px } .rec-num em { font-weight:800 } .event-album-list { margin-bottom:20px } .event-album-list li { width:25%; *width:24.5% } .event-album-list-b li { width:50% } .event-album-list .datetime,.event-album-list .desc { text-align:left; color:#666; *vertical-align:baseline } .event-album-list .cover,.event-album-list .title { text-align:left; *vertical-align:baseline } .album-photo-s { width:auto; padding-right:10px } .album-photo-s .cover { padding:4px 8px 8px 4px; background:url(/pics/albumback_s.gif) no-repeat 0 0 } .album-photo .cover { background-position:0 -299px } .aside .event-album-list li { width:50% } .widget-photo-desc { margin:20px 20px 20px 0 } .widget-photo-desc a { font-size:14px } .widget-photo-desc .quote { overflow:hidden; *zoom:1; word-wrap:break-word } .widget-photo-desc .quote span.inql { background:url(/pics/quotel.gif) no-repeat left 4px; color:#666; padding-right:10px; display:inline-block } .widget-photo-desc .quote span.inqr { background:url(/pics/quoter.gif) no-repeat right 4px; color:#666; padding-left:10px; display:inline-block } .widget-photo-list { margin-top:-14px } .widget-photo-list li { width:20%; text-align:left; margin:14px -3px 0 0; position:relative; left:0; top:0; zoom:1 } .widget-photo-list .info { display:none; position:absolute; left:25px; top:-48px; background:#fff; border:1px solid #999; padding:5px; width:36px; height:36px; z-index:3 } .widget-photo-list .info p { color:#666; display:none } .widget-photo-list .info .pic { display:block; position:absolute; right:5px; top:5px } .widget-photo-list .info .pic img { width:36px; height:36px } .widget-photo-list .info .arrow { left:16px; border:6px dashed transparent; display:block; position:absolute; top:44px; height:0; width:0; font:0; line-height:0; _clear:both } .widget-photo-list .info .inner { top:43px; border-top:6px solid #fff; z-index:5 } .widget-photo-list .info .outer { border-top:6px solid #666; z-index:4 } .widget-photo-list .desc { left:-23px; width:130px } .widget-photo-list .desc .arrow { left:65px } .widget-photo-list .desc p { display:block; float:left; width:90px; _line-height:15px } .widget-photo-list .rec-num { margin:10px 15px 0 0 } .album-thumbnail img { width:56px; height:56px; background-position:50% 30%; background-repeat:no-repeat } .widget-photo-set .album-thumbnail li { float:left; width:56px; height:56px; overflow:hidden; margin:0 3px 3px 0 } .widget-photo-set .album-thumbnail { padding-top:20px; overflow:hidden; *zoom:1 } .widget-photo-set .album-thumbnail ul { margin-left:20px } .widget-photo-set .album-cover { float:left; padding:20px; background:#f5f5f5; text-align:center } .widget-photo-set .album-cover a { display:block; width:240px; height:240px; overflow:hidden; font-size:0; line-height:0 } .widget-photo-set .album-cover a:hover,.widget-photo-set .album-cover a:active,.widget-photo-set a:hover,.widget-photo-set a:active { background-color:transparent } .widget-photo-set .num { clear:both; padding-top:5px; color:#666 } .mod-album-layout1 em,.mod-album-layout2 em,.mod-event-layout1 em,.mod-event-layout2 em { visibility:hidden } .mod-album-layout1 input,.mod-album-layout2 input { height:24px; *height:auto } .mod-album-layout1,.mod-album-layout2,.mod-event-layout1,.mod-event-layout2 { display:inline-block; *display:inline; *zoom:1; height:22px; vertical-align:middle; overflow:hidden; padding:2px 0 0 0; font-size:0; line-height:0; background:url(sp_all_4.png) no-repeat 20px -1039px } .mod-album-layout2 { background-position:20px -1069px } .mod-event-layout1 { background-position:20px -1560px } .mod-event-layout2 { background-position:20px -1608px } .photo-item { text-align:left } .photo-item .desc { margin-top:10px; color:#666 } .event-photo-list li { width:33%; margin-bottom:20px } .photitle { margin:-5px 0 20px; _margin-top:-4px; padding-bottom:5px; text-align:right; border-bottom:1px solid #ddd; color:#666 } .phodesc { margin-bottom:20px } .album-info { margin-bottom:20px; color:#666 } .album-info .views { float:right } .admin-mod { color:#666 } .admin-mod legend { font-size:12px; padding:0 } .admin-mod fieldset { border:1px solid #ddd; padding:10px } .phoview { _width:580px; margin-bottom:10px; text-align:center; overflow:hidden } .phoview img { max-width:580px } .phoview a:hover { background:0 } .phoinfo .recs,.phoinfo .stat { float:right; color:#666 } .phoinfo .recs { margin-top:-2px } #db-photo-view { margin-bottom:30px } #db-photo-view .photitle { text-align:center } #db-photo-view .photitle .back-lnk { float:right } #db-photo-view .photitle .nums { float:left } .blocktip { text-align:left; padding:5px; border:1px solid #e3e3e3; border-width:1px 2px 2px 1px; background:#fff; position:absolute; z-index:100; display:none } .tipwrap { position:relative } .blocktip_content { margin:3px 0; float:left; width:100%; clear:both; font-size:12px } .blocktip_content div { margin-bottom:10px } .artist_tip { width:230px; padding:4px 8px } #pop_win_login .pop_rem label { float:none } #pop_win_login .login_input { margin-bottom:5px } #pop_win_login .login_input span { float:left; width:40px } #pop_win_login .pop_rem { padding-left:40px; margin-bottom:10px } #pop_win_login .pop_sub { padding-left:40px; margin-bottom:20px } .dialog-login .dui-dialog-content .recsubmit { display:block } .note-item { *display:inline-block } .note-item .datetime { margin-bottom:10px } .note-ft .count,.note-ft .reply { float:right; margin-left:5px; color:#666 } .note-content pre { width:100%; font-size:14px; line-height:1.8 } .rec-num { color:#666; display:inline } .bulletin-content { width:auto; background:#f4f4ec; padding:25px } #sp-talk textarea { width:90%; height:3em } #sp-talk .item-submit { padding:0 } #sp-user { position:relative; z-index:1; margin-top:-100px } #sp-user .user-pic { margin-bottom:15px; text-align:center; color:#666 } #sp-user .user-pic img { padding:5px; border:1px solid #eee; background:#fff; margin-bottom:2px } #no-pic:hover { background:0 } .setting-panel { clear:both; margin-bottom:20px; color:#666; background:#eee; border:1px solid #e8e6e6; overflow:hidden } .setting-panel .loading { padding:30px 0; text-align:center } .setting-panel legend { display:none } .setting-panel label { width:6em } .setting-panel form { padding:20px 30px } .aside .setting-panel select { width:10em } .setting-panel form .item-submit { padding:0 0 0 6em } .setting-panel .item-submit .bn-flat-hot { margin-right:2em } .setting-panel .item { margin-bottom:10px } .setting-panel .setting-panel-ops { float:right; line-height:1.2; margin-top:7px; *margin-top:-1.7em } .setting-panel-ops,.setting-panel-ops a:link,.setting-panel-ops a:visited { color:#999 } .setting-panel-ops a:hover,.setting-panel-ops a:active { background-color:#999; color:#fff } .mod a.a_cancel_setting_panel:link,.mod a.a_cancel_setting_panel:visited { color:#6fcd96 } .mod a.a_cancel_setting_panel:hover,.mod a.a_cancel_setting_panel:active { background-color:#6fcd96; color:#fff } .aside .setting-panel { width:100% } .aside .setting-panel label { width:5em } .aside .setting-panel form { padding:10px 0 5px 5px } .aside .setting-panel .item-r label { margin-right:1px } .a_lnk_mod_setting { background:transparent url(sp_all_4.png) no-repeat 0 -150px!important; padding-left:15px; color:#aaa!important; outline:0 } a.a_lnk_mod_setting:hover,.stat-active .a_lnk_mod_setting { background-position:0 -225px!important; color:#999!important } .aside .sp-tips { margin:80px 0 0 } .setting-tips { color:#666; width:180px; padding:20px; border:1px solid #e2e5e5; background:#f8f8f8; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px } .setting-tips h3 { font-size:14px; margin-bottom:8px } .setting-tips p { line-height:1.8; color:#999; margin-top:8px } .form-tips { display:inline-block; _display:inline; zoom:1; color:#666; background:#fcfdef; padding:4px 6px } #top-tips { display:none; z-index:9999; position:fixed; top:0; cursor:pointer; color:#666; font-size:18px; height:60px; width:100%; line-height:60px; text-align:center; background:#fff; opacity:.85; filter:alpha(opacity=85); border-bottom:3px solid #efefef\9; _border-bottom:3px solid #efefef; box-shadow:0 0 2px rgba(204,204,204,75%); -webkit-box-shadow:0 3px 3px rgba(204,204,204,75%); -moz-box-shadow:0 3px 3px rgba(204,204,204,75%); _position:absolute; _top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop:document.body.scrollTop) } .error-tips { color:red!important } .feedback-tips { width:180px; padding:20px } .site-follow { margin-bottom:15px; text-align:center } .site-follow span { margin:5px 0; color:#333 } .site-info { color:#666 } .site-follow .lnk-unfollow { position:absolute } .lnk-unfollow:link,.lnk-unfollow:visited { color:#b6b6b6 } .mod .lnk-unfollow:hover,.mod .lnk-unfollow:active { background-color:#b6b6b6; color:#fff } .like-form .note { color:#666; padding-left:1.4em } .like-form .submit-button { padding-top:10px; text-align:center } .ic-pre { position:absolute; width:40px; height:14px; line-height:20em; overflow:hidden; background:url(sp_all_4.png) no-repeat 0 -1100px } .placeholder { border:2px dashed #ccc } .sort .hd h2 { cursor:move } .ui-draggable-dragging { border:1px solid #cfc } .sort_helper { margin:0 35px 0; border:2px dashed #cdc } #content .songlst a:hover { background:0; color:#369 } .songlst td { border-bottom:1px dashed #ccc; height:23px; color:#999 } .songlst .full { background:url(http://t.douban.com/pics/playicon.png) 0 -31px no-repeat; color:#777 } .songlst .selsong .full { background:url(http://t.douban.com/pics/playicon.png) -20px -5px no-repeat #eaf9e6; color:#777 } .songlst .full a { padding-left:21px } .selsong { background:#eaf9e6 } #content .songlst2 a:hover { background:0; color:#369; table-layout:fixed } .songlst2 .tr-0 { background-color:#fff; height:40px } .songlst2 .tr-1 { background-color:#ededed } .songlst2 td { border-bottom:1px dashed #ccc; height:23px; color:#999 } .songlst2 .tr-0 .full { color:#777; background:url(http://t.douban.com/pics/playicon.png) no-repeat 0 -24px; background-color:#fff; weight:300px } .songlst2 .tr-1 .full { color:#777; background:url(http://t.douban.com/pics/playicon.png) 0 -25px no-repeat; background-color:#ededed } .songlst2 .full a { padding-left:21px } #errordiv { margin-bottom:20px } .attn { color:#f30 } #db-followers ul { zoom:1; margin-left:-17px } #db-followers li { float:left; width:36px; height:36px; overflow:hidden; margin:0 0 20px 17px } #db-followers li img { width:36px; height:36px } #db-similar-sites .item { margin-top:10px; padding-bottom:8px; border-bottom:1px solid #eee } #db-similar-sites .item .likes { color:#999 } #db-similar-sites .item .title { margin:2px 0 0 0 } #db-similar-groups li { width:33%; text-align:center; margin-bottom:20px } #db-shuo-topic .item { padding:5px 0; border-bottom:1px solid #f0f0f0 } #db-shuo-topic .shuo-image { float:left; overflow:hidden } #db-shuo-topic .shuo-image img { vertical-align:middle } #db-shuo-topic .shuo-content { margin-left:40px } #db-shuo-topic .shuo-content .ft { font-size:10px } #db-shuo-topic .shuo-content .ft a { color:#bbb } #db-shuo-topic .shuo-content .ft a:hover { color:white; background-color:#bbb } #db-shuo-topic .item .text { word-wrap:break-word } .icon-save,.icon-save:hover { display:inline-block; *display:inline; zoom:1; width:14px; height:14px; background:url(sp_all_4.png) no-repeat -72px -74px; line-height:11em; overflow:hidden } .icon-save:hover { background-position:-72px -99px } .room-box .icon-save { position:absolute; top:33px; left:184px; cursor:pointer } .sp-fn-box { display:none; height:178px; position:relative; background:#393939; padding:18px; border-top:3px solid #fff } .room-box,.widgets-box { display:inline-block; *display:inline; zoom:1; vertical-align:top } .widgets-box { padding:10px 5px 0 25px; width:664px; border-left:1px dashed #333 } .room-box { width:180px; height:166px; padding:8px 25px 4px 8px; border-right:1px dashed #4b4b4b; margin-right:-3px; *margin-right:0 } .room-box input { color:#666; width:139px; font-size:12px; padding:6px 30px 6px 6px; padding:8px 30px 4px 8px\9; margin:0 0 10px; border:1px solid #fff } .widget-tips { cursor:pointer; display:block; font-size:14px; color:#ccc; padding:6px 10px; margin:0 0 5px; background:#393939; border:1px solid #393939 } .widget-tips em { float:right; margin:7px 0 0 0; margin:6px 0 0 0\9; *margin:-22px 10px 0 0; font-size:0; line-height:0; border-color:transparent transparent transparent #a4a4a4; border-style:dashed dashed dashed solid; border-width:4px 4px 4px 8px; height:0; width:0; line-height:23px; overflow:hidden } .widget-tips:hover { color:#fff } .widget-tips:hover em { border-color:transparent transparent transparent #fff } .room-box .selected { cursor:pointer; display:block; font-size:14px; color:#fff; padding:6px 10px; background:#335333; border:1px solid #245c06 } .room-box .selected em { border-color:transparent transparent transparent #fff } a.room-del:link,a.room-del:visited,a.room-del:active,a.room-del:hover { position:absolute; bottom:25px; left:158px; color:#ccc; outline:0; background:0; *white-space:nowrap } a.room-design:link,a.room-design:visited,a.room-design:active,a.room-design:hover { position:absolute; bottom:25px; left:26px; color:#ccc; outline:0; background:0; *white-space:nowrap } a.lnk-add:link,a.lnk-add:visited,a.lnk-add:active,a.lnk-add:hover { outline:0; color:#fff; padding:5px 16px; background:-webkit-gradient(linear,0 0,0 100%,from(#4eb550),to(#236f19)); background:-moz-linear-gradient(-90deg,#4eb550,#236f19); background:url(sp_all_4.png) repeat-x 0 -581px\9; border-radius:15px; -webkit-border-radius:15px; -moz-border-radius:15px } a.lnk-add:hover { background:-webkit-gradient(linear,0 0,0 100%,from(#28a826),to(#18620e)); background:-moz-linear-gradient(-90deg,#28a826,#18620e); background-position:0 -585px\9 } a.lnk-add:active { background:#1e872b } @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0) { a.lnk-add:link,a.lnk-add:visited,a.lnk-add:hover { background:url(sp_all_4.png) repeat-x 0 -581px } a.lnk-add:hover { background-position:0 -585px } a.lnk-add:active { background:#1e872b } }a.box-close:link,a.box-close:visited,a.box-close:hover,a.box-close:active { position:absolute; top:10px; right:15px; font:bold 13px Verdana; color:#999; background:0 } a.box-close:hover { color:#eee } .widgets-slider { position:relative; clear:both; width:660px; height:130px; margin-bottom:8px; overflow:hidden } .widgets-slider ul { position:absolute; overflow:hidden } .widgets-slider li { width:150px; margin-right:12px; margin-right:12px\9; *margin-right:15px } .widgets-slider .intro { height:62px; padding:10px 20px; margin:0 0 16px; background:#2d2d2d; border:1px solid #444; border-radius:5px; -webkit-border-radius:5px; -moz-border-radius:5px } .widgets-slider h2 { font-weight:bold; font-size:14px; color:#fff; margin-bottom:5px } .widgets-slider p { color:#999; text-align:left } .slider-switcher { text-align:right } .switcher-dot { display:inline-block; *display:inline; zoom:1; height:8px; height:auto\9; vertical-align:middle\9; line-height:13px; padding-right:3px; *padding-right:6px; padding-top:3px\9; *padding-top:5px } .switcher-dot li { cursor:pointer; width:8px; height:8px; margin-right:4px; line-height:10em; overflow:hidden; background:#a4a4a4; border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px; background:transparent url(sp_all_4.png) no-repeat -1px -426px\9 } .switcher-dot .on { background:#4fb550; background:transparent url(sp_all_4.png) no-repeat -1px -401px\9 } .switcher-prev,.switcher-next,.switcher-dis { display:inline-block; outline:0; *display:inline; zoom:1; cursor:pointer; color:#3e3e3e; text-align:center; font-size:18px; width:30px; height:30px; line-height:30px; margin-left:3px; background:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#ababab)); background:-moz-linear-gradient(-90deg,#fff,#ababab); background:url(sp_all_4.png) repeat-x 0 -769px\9; border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px } .switcher-dis { color:696969; background:#515151!important } .switcher-prev:hover,.switcher-next:hover { background:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#eaeaea)); background:-moz-linear-gradient(-90deg,#fff,#eaeaea); background:url(sp_all_4.png) repeat-x 0 -769px\9 } .switcher-prev:active,.switcher-next:active { background:#e2e2e2 } @media all and (min-width:0) { .switcher-prev,.switcher-next { background:url(sp_all_4.png) repeat-x 0 -769px } .switcher-prev:active,.switcher-next:active { background:#e2e2e2 } }.txt-added { color:#fff } .txt-added em { display:inline-block; *display:inline; zoom:1; margin-right:6px; width:12px; height:8px; background:url(sp_all_4.png) no-repeat 0 -126px } .box-loading { color:#fff; margin-top:80px; *margin-top:95px; text-align:center } .user-guide { z-index:9999; position:absolute; left:-25px; width:180px; padding:20px; margin:16px 0 0 -5px; background:#1f2d20; border-radius:4px; -webkit-border-radius:4px; -moz-border-radius:4px } .user-guide h1 { font-weight:bold; font-size:14px; color:#fff; margin-top:-5px } .user-guide span { float:right; color:#899d81; margin-top:-29px } .nav-items li.opt .user-guide em,.nav-items li.on .user-guide em { position:absolute; width:0; height:0; top:-15px; left:30px; border-width:0 15px 15px; border-style:solid; border-color:transparent transparent #1f2d20; background:0 } .user-guide p { color:#b1bfab; line-height:2; padding:5px 0 10px } .nav-items li.opt .user-guide a,.nav-items li.on .user-guide a { display:inline-block; color:white; line-height:auto; text-align:center; padding:0 16px } a.icon-star,a.icon-ban,a.icon-return,a.icon-transfer { display:inline-block; *display:inline; zoom:1; line-height:11em; overflow:hidden; width:14px; height:14px; background:url(sp_all_4.png) no-repeat } a.icon-star { background-position:0 -300px } a.icon-ban { background-position:0 -350px } a.icon-return { background-position:0 -250px } a.icon-transfer { background-position:1px -1246px } a.icon-star:hover { background-position:0 -325px } a.icon-ban:hover { background-position:0 -375px } a.icon-return:hover { background-position:0 -275px } a.icon-transfer:hover { background-position:0 -1288px } .list-s .info span { display:block; margin-top:3px } #sp-followers { *clear:both } .search-input { font-size:12px; padding:6px 3px; *padding:4px 3px; padding:4px 3px\9; color:#aaa; width:160px; border:1px solid #c0c0c0; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px; background:url(/pics/site/icon_search.png) no-repeat 147px center } .search-submit { position:absolute; top:2px; left:141px; cursor:pointer; opacity:0; filter:alpha(opacity=0); width:25px; height:25px } .main .user-search { float:right; position:relative; margin:-30px 30px 30px 0; *margin:-30px 30px 0 0 } .user-none { color:#999; font-size:14px; margin:20px 0 0 } .aside-title p { color:#999; font-size:14px; margin-top:15px } a.redbutt { display:inline-block; *display:inline; zoom:1; overflow:hidden; background:transparent url(http://t.douban.com/pics/redbutt.gif) no-repeat scroll right top; color:#ff7676; height:24px; padding-right:7px; font:normal 12px sans-serif; margin:0 5px 0 0; cursor:pointer } a.redbutt span { background:transparent url(http://t.douban.com/pics/redbutt.gif) no-repeat; display:block; padding:4px 1px 4px 8px; line-height:18px } html*a.redbutt span { [font-size:12px; padding-top:3px; ] padding-top:4px } a.redbutt:visited { color:#ff7676; text-decoration:none } a.redbutt:hover { background:transparent url(http://t.douban.com/pics/redbutt.gif) no-repeat right -24px; color:white } a.redbutt:hover span,a.redbutt:hover input { background-position:left -24px; color:white } .badge { position:absolute; top:-7px; right:-17%; font-weight:normal; line-height:1; padding:2px 5px; color:#fff; background:#b01; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px; z-index:999 } .notification-items ul.old { color:#808080 } .notification-items li { padding:6px 10px 4px } .notification-items li.date { font-size:14px; color:#060; padding-left:0 } .notification-items ul.new li { background:#ffe } .notification-items ul.new li.date { background:0 } .tabsbar { text-align:right; padding:5px 10px 0; margin:0 0 15px; background:#f5f5f5; border-bottom:1px solid #e7e7e7 } .tabsbar li { display:inline-block; *display:inline; zoom:1; padding:4px 10px 1px; margin:0 0 -1px 3px } .tabsbar .current { color:#666; border-width:1px; border-style:solid; border-color:#d7d7d7 #d7d7d7 #fff; border-radius:5px 5px 0 0; background:#fff; -webkit-border-radius:5px 5px 0 0; -moz-border-radius:5px 5px 0 0 } .artist-site-list li,.music-list li { width:24%; margin-bottom:7px; color:#999 } .extra-nav-link { font-size:12px; float:right } .miniblog-content .miniblog { margin-bottom:20px } .miniblog-content .notify input { margin-top:9px } .miniblog-content .mbt { padding:0; margin:0; clear:both } .miniblog-content .mbt tr { vertical-align:top } .miniblog-content .mbtl { float:left; width:55px; margin:8px 7px 0 0; padding:0 } .miniblog-content .mbtr { border-bottom:1px solid #eee; padding:5px 0; min-height:55px; overflow:hidden; margin:5px 0 5px 0 } .miniblog-content .mbtr2 { margin-bottom:20px; overflow:hidden } .miniblog-content ul .mbtr2 { border-bottom:1px solid #ddd } .miniblog-content .mbtrdot { border-bottom:1px solid #eee; padding:4px 0; min-height:55px; overflow:hidden } .miniblog-content .mbtrmini { border-bottom:1px dashed #ddd; padding:4px 0 4px 12px; word-wrap:break-word; background:url(http://t.douban.com/pics/listdot.gif) 0 8px no-repeat } .miniblog-content .mbtrmini .quote { display:inline } * html .miniblog-content .mbtr { word-break:break-all; height:55px; overflow:visible } * html .miniblog-content .mbtrdot { word-wrap:break-word; word-break:break-all; height:55px; overflow:visible } * html .miniblog-content .mbtrmini { word-break:break-all; overflow:visible } .miniblog-content .mbdiv { padding-top:10px 0 6px 0; border-top:1px dashed #ddd } .miniblog-content .actfromfri .event_long { width:65% } #album { overflow:hidden; width:100% } #sp-talk .attn { margin-top:10px } .miniblog-content .broadsmr { padding:5px 24px; color:#999 } .miniblog-content .quote { overflow:hidden; padding:0 24px 5px 15px; margin:8px 0 0 26px; background:url(http://t.douban.com/pics/quotel.gif) no-repeat left 4px; width:auto; *zoom:1; word-wrap:break-word } .miniblog-content .quote span.inq { display:inline; background:url(http://t.douban.com/pics/quoter.gif) no-repeat right bottom; color:#333; padding-right:15px; display:inline-block } .miniblog-content .broadimg { border:1px solid #ddd; float:right; margin-left:14px } .miniblog-content .blst { padding:0; margin:0 } .miniblog-content .blst li { border-top:1px solid #ddd; padding:6px 0 } .miniblog-content .videothumb { margin-left:24px } .miniblog-content .vthumbwrap { width:130px; height:97px; text-align:center; position:relative } .miniblog-content .vthumbwrap img { width:130px; height:97px } .miniblog-content .recreplylst { padding-left:42px } .miniblog-content .recreplylst .simplelst { border-bottom:1px dashed #ccc; margin:4px 0 4px -14px } .miniblog-content .timeline-album { float:left; margin:8px 12px 8px 0 } .miniblog-content .timeline-album-rec { float:left; margin:8px 14px 0 0 } .miniblog-content .indentrec { margin-left:24px; line-height:1.6em; color:#333 } .miniblog-content .mbtr a.gact { float:right; margin-left:1em; *margin-top:-1em } .miniblog-content a.gact:link,.miniblog-content a.gact:visited { color:#ccc } .miniblog-content a.gact:hover,.miniblog-content a.gact:active { color:#fff; background:#ccc } .miniblog-content .pl { color:#666; line-height:1.5 } .miniblog-content div.full-addr { color:#999; margin-bottom:5px } .miniblog-content .site-follow { float:right } .donated-success { color:#5a7e59; background:url(/pics/ic_dz.png) no-repeat 0 50%; padding-left:12px } .donated-fail { color:#fab0b6 } .dou-tip { width:230px; text-align:center } .dou-tip .frm-item { position:relative; margin-bottom:5px; text-align:left; color:#666 } .dou-tip .frm-item label { position:absolute; left:4px; top:0; top:2px\9; width:100%; line-height:1.6; cursor:text; color:#999 } .dou-tip .frm-item input { padding:2px; width:96%; border:1px solid #ddd; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px } .dou-tip .frm-item input:focus { border-color:#aaa } .dou-tip b { font-weight:300; color:#ff201a } .dou-tip p { color:#666; margin:0; text-align:left } .dou-tip .frm-submit .bn-flat { margin-right:1em } .dou-tip .bn-flat input { height:22px; padding:0 5px } .widget-dou-donation { background-color:#f5f6f7; padding:20px 25px; overflow:hidden; zoom:1 } .widget-dou-donation .pic,.widget-dou-donation .text { display:inline-block; *display:inline; zoom:1; vertical-align:top } .widget-dou-donation .pic { text-align:center; background:url('/pics/site/dou_dounation_logo.png') no-repeat 0 0; width:120px; height:60px } .widget-dou-donation .text { margin-left:20px; width:370px } .widget-dou-donation .text .bn-flat-hot { float:right; margin-top:20px } .add-movie-schedule { text-align:right } .wgt-wall { width:545px; margin-bottom:20px } .wgt-wall form { position:relative } .wgt-wall-list li { width:100%; float:left; margin:20px 0 0 0; position:relative } .wgt-wall-list .pic { margin:0 0 0 10px; float:left } .wgt-wall-list .pic,.wgt-wall-list .pic img { width:35px; height:35px; background:#ccc } .wgt-wall-list .content { background:#f2f2f2; padding:8px 10px; width:460px; float:right; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px } .wgt-wall-list .x1 { position:absolute; right:479px; top:10px; border-color:transparent #f2f2f2 transparent transparent; border-style:dashed solid dashed dashed; border-width:10px 10px 0 0; font-size:0; height:0; width:0; overflow:hidden } .wgt-wall-list .datetime { color:#999; margin:0 5px } .wgt-wall-list .author { margin:0 5px 0 0 } .wgt-wall .gact { position:absolute; right:10px } .wgt-wall .gact a { color:#bbb } .wgt-wall .recreplylst { padding:5px 0 0 120px; clear:both } .wgt-wall .recreplylst .simplelst { margin:0 } .wgt-wall .recreplylst .text { width:330px; margin:5px 5px 0 0 } .wgt-wall .recreplylst .show { display:none } .wgt-wall .pl { color:#666; line-height:1.5 } .wgt-wall-talk textarea.text,.wgt-wall-talk label { width:523px; height:16px; padding:6px 10px; line-height:16px } .wgt-wall-talk label { float:none; position:absolute; top:2px; left:2px; padding:5px 9px; color:#b4b4b4; background:#fff } .wgt-wall-talk .bn-flat { display:none; float:right; margin-top:4px } .wgt-bazaar .desc { padding:10px 80px 0 0 } .wgt-bazaar .desc a { font-size:14px; float:right } .wgt-bazaar .desc .func { position:relative; zoom:1 } .wgt-bazaar .desc .func a.lnk-flat { border:0; height:auto; line-height:normal; padding:0; background:0; display:inline; color:#52946f } .wgt-bazaar .desc .func .blocktip { right:0 } .wgt-bazaar .quote { width:300px; float:left } .wgt-bazaar .quote span.inql { background:url(/pics/quotel.gif) no-repeat left 4px; color:#666; padding-right:10px; display:inline-block; position:relative } .wgt-bazaar .quote span.inqr { background:url(/pics/quoter.gif) no-repeat right 4px; color:#666; padding-left:10px; display:inline-block } .wgt-bazaar .post-list { clear:both; padding-top:10px; padding:10px } .wgt-bazaar .post-list td { padding:10px 0 } .wgt-bazaar .post-list tfoot td { border-bottom:0 } .wgt-bazaar .good-name img { width:60px; height:40px; vertical-align:middle; margin-right:10px } .wgt-bazaar .list-b .v_sync { display:block; width:16px; height:16px; background:url(/pics/site/bazaar/v-icon.png) no-repeat top right; cursor:default } .wgt-bazaar .list-b i { font-style:normal; padding:0 4px 0 0 } .wgt-bazaar-create { width:580px; overflow:hidden } .wgt-bazaar-create h3 { font-size:14px; margin:10px 0 20px 0 } .wgt-bazaar-create ul { width:600px; padding:0 } .wgt-bazaar-create li { width:142px; height:160px; padding:20px; background:#f7f9f9; margin:0 15px 0 0; float:left; position:relative; text-align:center; border-radius:6px; -webkit-border-radius:6px; -moz-border-radius:6px } .wgt-bazaar-create li p { text-align:left; color:#666 } .wgt-bazaar-create li p strong { font-weight:500; color:#f00 } .wgt-bazaar-create li .btn { position:absolute; bottom:16px; width:140px; padding:0; left:20px } .wgt-bazaar-good .meta .datetime { color:#999; margin:0 15px 0 0 } .wgt-bazaar-good .meta .doumail { margin-left:15px } .wgt-bazaar-good .intro { margin:20px 0 0 0 } .wgt-bazaar-good .intro .pic,.wgt-bazaar-good .intro .pic img { width:215px; float:left } .wgt-bazaar-good .intro .info { width:345px; float:right; font-size:14px } .wgt-bazaar-good .intro .info p { margin:0 0 18px 0 } .wgt-bazaar-good .intro .info .v_sync { padding:0 0 0 18px; background:url(/pics/site/bazaar/v-icon.png) no-repeat top left } .wgt-bazaar-good .intro .status { font-size:12px } .wgt-bazaar-good .intro .status .stat { float:right } .wgt-bazaar-good .intro .status form { display:inline } .wgt-bazaar-good .intro .status form a input { display:inline; border:0; background:0; padding:0; margin:0; color:#369 } .wgt-bazaar-good .intro .status form a:hover input { color:#fff; background:#369 } .wgt-bazaar-good .intro .admin-lnks { text-align:right; font-size:12px } .wgt-bazaar-good .rec-sec { text-align:right; clear:both; overflow:hidden; float:none } .wgt-bazaar-good .rec-sec .rec { float:right } .wgt-bazaar-good .rec-sec .rec-btn { text-align:center } .wgt-bazaar-good .mod { margin:25px 0; padding:0 } .wgt-bazaar-good .good-photo li { margin:15px 15px 0 0; float:left; width:100px; height:100px; overflow:hidden } .wgt-bazaar-good .good-photo li img { width:100px } .wgt-bazaar-good .tipbox { border:1px solid #ccc; color:#999; line-height:180%; padding:10px } .wgt-bazaar-good .tipbox p { padding-left:24px } .wgt-bazaar-good .tipbox h3 { padding-top:6px } .wgt-bazaar-buy fieldset { margin:0 } .wgt-bazaar-buy legend { line-height:30px; font-size:16px; border-bottom:1px solid #eee; padding:0; color:#000; display:block; width:100% } .wgt-bazaar-buy label { width:80px; padding-right:10px; text-align:right } .wgt-bazaar-buy fieldset p { clear:both; line-height:25px; margin:12px 0; position:relative } .wgt-bazaar-buy fieldset p em { color:#f00; position:absolute; top:2px; left:80px } .wgt-bazaar-buy fieldset p span strong { color:#f60; font-weight:bold; font-size:14px } .wgt-bazaar-buy fieldset p .note { color:#999; display:block } .wgt-bazaar-buy fieldset p.error { color:#f00 } .wgt-bazaar-buy fieldset p select { width:100px; margin:0 4px 0 0 } .wgt-bazaar-buy fieldset input { height:16px; padding:3px; border:1px solid #ccc } .wgt-bazaar-buy fieldset textarea { float:right; width:482px } .wgt-bazaar-buy fieldset .empty { color:#999 } .wgt-bazaar-buy fieldset .invalid { border-color:#f00 } .photo-complete { margin-bottom:15px; padding:15px 20px 1px; background:#f8f8f8 } .photo-item { margin-bottom:15px } .photo-item .cover,.photo-item .intro { display:inline-block; *display:inline; zoom:1 } .photo-item .cover { margin-right:10px; vertical-align:top } .photo-item .cover a { text-align:center; width:100px; display:block; margin-bottom:-3px } .photo-item .cover a:hover { background:0 } .photo-item .choose-cover { text-align:center } .photo-item .intro p { text-align:right; margin:0 } .photo-item .intro textarea { color:#666; width:414px; margin-bottom:3px\9; padding:5px; height:90px; border:1px solid #ddd } .submit-area { text-align:center } .btn-fav { display:inline-block; *display:inline; zoom:1; padding:0 8px 0 30px; vertical-align:middle; *vertical-align:baseline; height:19px; line-height:19px; line-height:21px\9; overflow:hidden; border:1px solid #edceba; margin-left:4px; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px } a.btn-fav:link,a.btn-fav:visited { border-color:#f2ece7; background-color:#fff6ee; color:#99776b } a.btn-fav:hover,a.btn-fav:active { border-color:#edceba; background-color:#fff0e2!important; color:#99776b!important } .fav-add,.fav-add:link,.fav-add:hover { background:url(/pics/ic_like.png) no-repeat 8px 3px } .fav-cancel,.fav-cancel:link,.fav-cancel:hover { background:url(/pics/ic_like.png) no-repeat 8px -17px } .fav-num { display:inline-block; *display:inline; zoom:1; color:#666 } .fav-userlist { position:absolute; width:210px; left:50%; padding:0 0 20px 10px; background:#fff; border:1px solid #999; -moz-box-shadow:0 0 4px rgba(0,0,0,.2); -webkit-box-shadow:0 0 4px rgba(0,0,0,.2); box-shadow:0 0 4px rgba(0,0,0,.2); zoom:1 } .fav-userlist .bd { width:97% } .fav-userlist ul { margin-top:-2px } .fav-userlist li { margin-top:2px } .fav-userlist .pic { margin-right:8px; *display:inline; zoom:1 } .fav-userlist .pic img { vertical-align:middle } .fav-userlist .hd { position:relative; text-align:right; padding:5px 10px; line-height:1.2; zoom:1 } .fav-userlist .arrow { position:absolute; width:12px; height:7px; overflow:hidden; left:12px; top:-6px; background:url(/pics/bg_popup_arr.png) no-repeat 0 0 } .arrow-bottom .arrow { top:auto; bottom:-6px; _bottom:-7px; background:url(/pics/bg_popup_arr.png) no-repeat 0 -11px } .sns-bar { clear:both; overflow:hidden; margin-bottom:20px; padding-top:20px; color:#666; *display:inline-block } .sns-bar-fav { float:right } .sns-bar-donate { float:left; margin-right:15px } .sns-bar-rec { float:left; width:300px } .sns-bar form,.sns-bar .rec-sec { float:none; display:inline-block; *display:inline; zoom:1 } .tribe-from { font-size:18px; font-weight:400 } .tribe-info-mod { padding:10px 20px; line-height:1.2; color:#666; background:#efefef } .tribe-info-mod .tribe-name,.tribe-info-mod .tribe-name:link,.tribe-info-mod .tribe-name:visited,.tribe-info-mod .tribe-name:hover { font-size:16px; margin:0 5px } .share { margin-top:16px; height:20px } .share strong.title { font-weight:400; float:left; margin-right:16px; vertical-align:middle; height:16px; line-height:16px; font-size:14px } .share span { background-image:url("/pics/site/share_btns.png"); background-repeat:no-repeat; margin-right:14px; display:block; height:16px; width:16px; float:left } .share span a,.share span a:hover { display:block; height:16px; width:16px; background:0 } .share span.shuo { background-position:0 0 } .share span.sina { background-position:-16px } .share span.tqq { background-position:-32px }
12ik
trunk/app/site/skins/default/reset.css
CSS
oos
68,591
.mc .footer{ background-color: #F8F8F8; padding: 21px 0; text-align: center; margin-top:20px; } .tags-nav { border-bottom: 1px solid #DDDDDD; color: #999999; font-size: 0; line-height: 1.8; padding-bottom: 15px; } .tags-nav li { display: inline-block; font-size: 12px; } .tags-nav li a:hover, .tags-nav li a.active { background: none repeat scroll 0 0 #82BF71; color: white; } .tags-nav li a { display: block; margin-bottom: 3px; margin-right: 5px; padding: 2px 0; text-align: center; width: 60px; } /**loading**/ .site-loading { display: none; margin: 15px 0; text-align: center; } .ajax-process .stat, .site-loading .state { background: url(loading.gif) no-repeat scroll 0 0 transparent; padding-left: 20px; } .site-list { display: none; font-size: 0; margin-left: -5%; margin-top: -1px; } .site-item { border-top: 1px solid #EFEFEF; display: inline-block; margin: 0 -2px 0 0; padding-bottom: 20px; padding-left: 5%; padding-top: 20px; vertical-align: top; width: 45%; } .site-item .pic { float: left; padding-right: 10px; } .site-item .info { overflow: hidden; } .site-item .title { font-size: 14px; } .site-item .info p { font-size: 12px; color: #666666; margin: 0; } /*加载更多*/ .site-more { background-color: #F8F8F8; cursor: pointer; display: block; height: 36px; line-height: 36px; margin-top: 5px; position: relative; text-align: center; z-index: 1; cursor: pointer; } .site-more:hover{ background-color:#F0F0F0} /**右侧**/ .site-rec .list-items { margin-top: -15px; } .site-rec .list-item { font-size: 0; padding: 15px 0; } .site-rec .pic { display: inline-block; } .site-rec .info { display: inline-block; font-size: 12px; overflow: hidden; padding-left: 10px; vertical-align: top; } .site-rec .like-num { color: #666666; } /**site-tags**/ .site-tags{ width:400px; } .site-tags dd{ background-color: white; color: #666666; cursor: pointer; display: inline-block; font-size: 12px; margin: 3px 3px 3px 0; padding: 2px 12px; } .site-tags dd:hover{ background-color:#f2f2f2; border-radius:2px;} .site-tags dd.selected, .site-tags dd.selected:hover{ background-color: #F5F5F5;color: #999999;} /**result**/ #new-site-result{} #new-site-result .hd{ margin-bottom:15px} #new-site-result h1{ border-bottom:#ccc solid 1px; padding-bottom:10px} #new-site-result .bd{} #new-site-result .bd p{ line-height:20px; margin-bottom:10px}
12ik
trunk/app/site/skins/default/style.css
CSS
oos
2,731
@charset "utf-8"; body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0 } table { border-collapse:collapse; border-spacing:0 } fieldset,img { border:0 } address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal } ol,ul { list-style:none } caption,th { text-align:left } h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal } q:before,q:after { content:'' } abbr,acronym { border:0 } body { font:12px/1.6 arial,helvetica,sans-serif } a:link { color:#369; text-decoration:none } a:visited { color:#669; text-decoration:none } a:hover { color:#fff; text-decoration:none; background:#039 } a:active { color:#fff; text-decoration:none; background:#f93 } textarea { resize:none } button { cursor:pointer; line-height:1.2 } a img { vertical-align:text-bottom } .mod { width:100% } .hd:after,.bd:after,.ft:after,.mod:after { content:'\0020'; display:block; clear:both; height:0 } .bn-close { margin-left:2em } a.bn-close:link,a.bn-close:visited,a.bn-close:hover,a.bn-close:active { color:#aaa; font-size:9px; padding:0 2px } a.bn-close:hover,a.bn-close:active { background:#f10; color:#fff; border:2px solid #f00 } .hide { position:absolute; visibility:hidden; left:-1000em; top:-1000em } .clear { display:block; clear:both } .cr { float:none; display:block; width:100%; clear:both; margin:0; padding:0; font-size:0; line-height:0; height:0; overflow:hidden; *margin-bottom:-2px } #content h1 { font-size:26px; font-weight:800; margin-bottom:.4em; color:#555 } #header { margin-bottom:.8em; padding-top:.8em } #content { margin-bottom:.8em } .wrapper { width:950px; margin:0 auto } #header,#content,#footer { width:100% } .mod .hd:after,.mod .bd:after,.mod .ft:after,#header:after,#content:after,#footer:after { content:'\0020'; display:block; clear:both; height:0 } .article { float:left; width:590px } .aside { float:right; width:310px } .nav { float:left; width:150px; margin-right:10px } .mod { margin-bottom:1.4em } .mod h2 { font-size:14px; padding-bottom:1em; color:#060 } body { margin-top:0 } #header { width:100%; margin:0 0 40px 0; background:0 } #searbar { margin:0 } #header { width:100% } #header:after,.site-nav:after,.top-nav-items:after,.top-nav:after,.site-nav .bd:after { content:'\0020'; display:block; clear:both; height:0 } .top-nav { clear:both; width:100%; color:#d4d4d4; margin-bottom:20px; height:30px; border-bottom:1px dashed #d4d4d4 } .top-nav .bd { width:950px; margin:0 auto } .top-nav-items { float:left; *position:relative; font-size:12px; margin-top:3px } .top-nav-items li { float:left; display:inline; margin:2px 20px 0 0 } .nav-srh { float:left; height:38px; padding-left:5px; background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 0 0 } .nav-srh form { padding:0 1px 0 0; height:38px; *float:left; background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 100% 0 } .nav-srh input { float:left; width:300px; height:26px; line-height:26px; border:1px solid #a6d098; background:#fff; padding:0 2px } .nav-srh .inp { padding-top:5px; width:366px } .nav-srh .bn-srh { width:54px; height:29px; padding:0 0 3px 6px; border:0; background:transparent url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 0 -100px; cursor:pointer; letter-spacing:6px; text-align:center } .nav-srh .bn-srh { padding:2px 0 0 3px\9 } .pro-nav .nav-srh { float:left } .site-nav { width:100%; height:36px; clear:both } .site-nav .bd { float:right; height:36px; width:84% } .site-nav-logo { float:left; position:relative; *margin-top:2px } #db-nav-main .site-nav-logo em { display:none } #db-nav-main .bd { width:774px; background-color:#e7f3e7 } .site-nav-logo img { margin-bottom:-3px } .site-nav-logo a:hover,.site-nav-logo a:active,.site-nav-logo a { background:transparent } .top-nav-info { float:right; margin-top:5px; *margin-top:6px } .top-nav a:link,.top-nav a:visited,.top-nav a:hover,.top-nav a:active { color:#566d5e } .top-nav a:hover { background-color:#566d5e; color:#fff } .top-nav li.on { color:#000 } .top-nav li.on,.top-nav li.on a:link,.top-nav li.on a:visited,.top-nav li.on a:hover,.top-nav li.on a:active { color:#219a44; font-weight:800 } .top-nav li.on a:hover { color:#fff; background:#219a44 } .top-nav em,.site-nav em { font-style:normal } .top-nav-info a { margin-left:10px } .site-nav-items { float:left; padding-left:28px; line-height:36px; color:#d4d4d4 } .site-nav-items li { float:left; margin-right:14px; background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 0 -140px } .site-nav-items li a:link,.site-nav-items li a:hover,.site-nav-items li a:visited,.site-nav-items li a:active { font-size:14px; color:#0c7823; margin-left:14px; vertical-align:middle } .site-nav-items li a:hover { background-color:#0c7823; color:#fff } .site-nav h1 { font-size:21px; padding:8px 0 } .nav-tip { margin-bottom:-2em; text-align:right; line-height:2; *position:relative } .nav-tip a { margin-left:10px } .srh-group { border-top:1px solid #ddd; margin-top:5px; padding-top:5px } .srh-group a:hover { background:#777!important } .single-nav { padding-top:15px } .blur { color:#ddd } .submenu { float:left; position:relative; width:45px; height:21px; border:1px solid #b6c9c1; border-left:none; margin:0 2px 0 -5px; background:#fff; padding:2px 0 1px 0 } .submenu .menu { position:absolute; width:85px; top:24px; right:-1px; background:#fff; border:1px solid #b6c9c1 } .submenu .selected { padding:0 0 0 5px; border-left:1px solid #b6c9c1; cursor:pointer } .submenu .selected span { position:absolute; width:7px; height:5px; right:4px; top:10px; overflow:hidden; background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat -240px -124px } .submenu .menu li { width:100% } .submenu .menu a { display:block; padding:2px 10px } .nav-srh .open span { background-position:-240px -100px } .submenu .line { height:1px; font-size:0; line-height:0; margin-bottom:1px; overflow:hidden; border-bottom:1px solid #c3c3c3 } a.bn-radio:link,a.bn-radio:visited,a.bn-radio:hover,a.bn-radio:active { position:relative; margin:0 4px; padding:0 0 0 24px; zoom:1; height:14px; overflow:hidden; vertical-align:text-bottom; background:url(http://t.douban.com/pics/nav/ic_radio2.gif) no-repeat 0 0; *vertical-align:baseline; line-height:15px; *margin:0; *top:-1px } a.bn-radio:hover { color:#fff; background-color:#6a7e71 } #db-nav-movie .site-nav-items li { margin-right:9px } #db-nav-movie .nav-srh { background-position:0 -50px } #db-nav-movie .nav-srh form { background-position:100% -50px } #db-nav-movie .nav-srh input { border-color:#8cd4de } #db-nav-movie .nav-srh .bn-srh { background-position:-130px -100px } #db-nav-movie .site-nav-items li a:link,#db-nav-movie .site-nav-items li a:hover,#db-nav-movie .site-nav-items li a:visited,#db-nav-movie .site-nav-items li a:active { font-size:14px; color:#0090b3; margin-left:12px; vertical-align:middle } #db-nav-movie .site-nav-items li a:hover { background-color:#0090b3; color:#fff } #db-nav-book .site-nav-items li { margin-right:9px } #db-nav-book .site-nav-items li a:link,#db-nav-book .site-nav-items li a:hover,#db-nav-book .site-nav-items li a:visited,#db-nav-book .site-nav-items li a:active { margin-left:12px } #db-nav-book li .lnk-buy { display:-moz-inline-box; display:inline-block; zoom:1; width:66px; height:21px; line-height:22px; *line-height:23px; overflow:hidden; background:transparent url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat -280px -120px; font-size:12px; color:#368332; *margin-top:8px } #db-nav-movie .site-nav-items,#db-nav-book .site-nav-items { padding-left:20px } #db-nav-book li .lnk-buy em { margin-left:24px } #db-nav-main .site-nav-items li { margin-right:28px; background:0; color:#e9f4e9 } #db-nav-main .site-nav-items li a { margin:0 } #db-nav-main .bd { background-color:#e9f4e9 } #db-nav-main .nav-srh input { width:264px; height:24px } #db-nav-main .nav-srh .inp { width:300px } #db-nav-music .site-nav-items li { margin-right:30px; background:0; color:#eff2ef } #db-nav-music .bd { background-color:#e9ede9 } #db-nav-main .nav-srh,#db-nav-main .nav-srh form,#db-nav-music .nav-srh,#db-nav-music .nav-srh form { background:0 } #db-nav-main .nav-srh,#db-nav-music .nav-srh { float:right; height:36px } #db-nav-main .nav-srh form,#db-nav-music .nav-srh form { height:36px } #db-nav-music .nav-srh input { width:235px; height:24px } #db-nav-main .nav-srh .bn-srh,#db-nav-music .nav-srh .bn-srh { width:50px; height:26px; *padding-top:1px } #db-nav-music .nav-srh .inp { width:300px } #db-nav-music .site-nav-items li a:link,#db-nav-music .site-nav-items li a:hover,#db-nav-music .site-nav-items li a:visited,#db-nav-music .site-nav-items li a:active { font-size:14px; color:#3b5343; margin-left:0; vertical-align:middle } #db-nav-music .site-nav-items li a:hover { background-color:#607869; color:#fff } #db-nav-music .nav-srh input { border-color:#b6c9c1 } #db-nav-music .nav-srh .bn-srh { background-position:-60px -100px } #db-nav-main .nav-srh .bn-srh { width:27px; margin-left:-4px; overflow:hidden; text-indent:-100px; background-position:-190px -100px } #db-nav-main .site-nav-logo { padding-top:3px; _padding-top:5px; _height:34px } #db-nav-music .site-nav-logo,#db-nav-movie .site-nav-logo,#db-nav-book .site-nav-logo,#db-nav-location .site-nav-logo { padding-top:5px } .db-services { width:100%; margin-bottom:1em; overflow:hidden; line-height:2; border-top:1px dashed #ddd; color:#999; padding-top:.5ex } .db-services .services { float:left; margin-right:4em; *margin-right:2.6em } .db-services .basic { width:100%; overflow:hidden; margin:0 } .db-services .basic li { float:left; margin-right:4.2em; *margin-right:3.6em } .db-services .last,.db-services .basic .last { margin:0 } .db-services a.first:link,.db-services a.first:visited { color:#369 } .db-services a.first:hover,.db-services a.first:active { color:#fff; background:#039 } .db-services a:link,.db-services a:visited { color:#999 } .db-services a:hover,.db-services a:active { color:#fff; background:#999 } .db-inc { clear:both; color:#999; padding-bottom:1em } .db-inc .about { float:right } .list-s { clear:both } .list-s li { float:left; text-align:center } .list-m .title a { font-size:14px } .list-m p,.list-m .title span { color:#666 } .list-m li { border-bottom:1px dashed #ccc; padding:2px 0 } .list-m .date { margin-left:1em } .list-m .last { border:0 } .list-t dt { border-bottom:1px solid #ccc } .list-t dd { margin-bottom:1em } .list-t .list-m li { padding-left:12px; background:url(data:image/png; base64,R0lGODlhDAAKAIAAAKOjo////yH5BAAAAAAALAAAAAAMAAoAAAINjI+pywjfHoiw2YttAQA7) no-repeat 0 6px; *background-image:url(mhtml:http://t.douban.com/css/ui/inline_img.css!list-dot) } blockquote { padding:0 1em; margin:1em; color:#000; background:url(data:image/png; base64,R0lGODlhCgAIALMAAPf39+jo6NjY2NHR0fv7+9zc3MnJyeDg4OTk5NTU1Ozs7PPz883Nzf///8XFxQAAACH5BAAAAAAALAAAAAAKAAgAAAQvsDVkglSsTMdIW46zAIajSINzNEeINEooNExoFnZrJ4nt9KECwsZY1AYEQs+wiAAAOw==) no-repeat 0 0; *background-image:url(mhtml:http://t.douban.com/css/ui/inline_img.css!quote-left) } blockquote q { *zoom:1; padding-right:1em; margin-right:1ex; background:url(data:image/png; base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAMAAABstdySAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRF8/PzycnJ+/v7zc3N0dHR7Ozs8PDw9/f36Ojo2NjY3Nzc5OTk4ODg1NTUxcXF////KgVc/gAAABB0Uk5T////////////////////AOAjXRkAAABKSURBVHjahMy7FoAwDAJQ+lDTpoX//9vi4mqGe4AhQOdSHdwVm2SmGTDcbyemmWEa5CW03GGbdJEPUHhLnSmMElL6oaDvfuMRYABv3gXwJw084AAAAABJRU5ErkJggg==) no-repeat right bottom; *background-image:url(mhtml:http://t.douban.com/css/ui/inline_img.css!quote-right) } .list-b { width:100%; color:#666 } .list-b th { padding:2px; border-bottom:1px dashed #ccc; color:#000 } .list-b td { padding:2px; border-bottom:1px dashed #ccc; vertical-align:middle } .list-b .author,.list-b .count,.list-b .date { width:6em; text-align:right; white-space:nowrap } .list-b .count { width:3em } .list-b .author { text-align:left } .list-b .tit-reply,.list-b .tit-last { text-align:right } .item { *display:inline-block; overflow:hidden } .item .pic { display:table-cell; *float:left; padding-right:12px; text-align:center; vertical-align:top } .item .pic span { display:block } .item .info { display:table-cell; *float:left; text-align:left; vertical-align:top; *vertical-align:baseline } .item .info span { color:#666 } .item .info ul { margin-left:1em } .info li { float:none; text-align:left } .info li span { display:inline } .update-item,.comment-item { *zoom:1; overflow:hidden; margin-bottom:1.6em } .update-item .pic,.comment-item .pic { float:left; margin-right:-100em } .update-item .content,.comment-item .content { float:right:100%; padding-left:6em } .comment-item h3 { margin-bottom:1ex } .comment-item p,.comment-item .author { margin-bottom:1em } .comment-item .title { font-size:14px } .update-item .content { padding-left:5em } .update-item .author { margin-bottom:.5em } .update-item blockquote,.update-item p { margin:.5em 0 } .update-item li { border-bottom:1px solid #eee; min-height:55px; _height:55px } .update-item p { color:#999 } .album-photo { text-align:left; overflow:hidden } .album-photo .cover { padding:3px 10px 10px 3px; background:transparent url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -300px } .album-photo .title { font-size:14px } .album-photo-s { width:100px; overflow:hidden } .album-photo-s .cover { padding:5px 8px 8px 5px; margin-bottom:1ex; background:transparent url(http://t.douban.com/pics/ui/core1.png) no-repeat -250px -170px } .album-photo-s .title { font-size:12px } .toprate { width:100% } .toprate .num { width:2em; font-size:9px } .toprate .stat { width:2em; font-size:9px; color:#666 } .up,.stay,.down { padding-left:12px; line-height:1.2; background:url(http://t.douban.com/pics/ui/core1.png) no-repeat -250px -120px } .down { background-position:-250px -132px } .stay { background-position:-250px -145px } form label { float:left; width:4em } legend { font-size:14px; padding-bottom:1em; color:#060 } .item-r label { float:none } form .item { margin-bottom:.5ex } form .item input { margin-right:1em } .item-r { margin:1ex 0 1em 4em } .item .item-r input,.item .item-r { margin:0 } .item .item-r label { font-size:1em; margin-right:1em } form .item-submit { padding:1ex 0 2em 4em } .frm-comment label { font-size:14px } .frm-comment textarea { width:440px; height:330px } .frm-comment .item-submit { padding-left:5em } .paginator { font-size:14px } .paginator a { margin:0 .5ex } .paginator .prev { margin-right:1em } .paginator .next { margin-left:1em } .paginator .on { background:#83bf73; color:#fff; padding:1px } .infobox .ex2,.infobox .ex1 { height:5px; line-height:0; font-size:0; margin-left:5px; background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 100% -100px } .infobox .ex2 span,.infobox .ex1 span { position:relative; display:block; margin-left:-5px; width:5px; height:5px; overflow:hidden; background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -100px } .infobox .ex2 { background-position:100% -105px } .infobox .ex2 span { background-position:0 -105px } .infobox .bd { padding:0 1em; background:#fef8f2; border:1px solid #f9f2ea; border-width:0 1px } .bn-add span,.bn-add,.bn-hot span,.bn-hot,.bn-std span,.bn-std { display:inline-block; display:-moz-inline-stack; *zoom:1; height:22px; line-height:0; font-size:0; padding-left:3px; vertical-align:middle; overflow:hidden } .bn-hot span,.bn-hot { height:24px } .bn-add,.bn-add span,.bn-hot,.bn-hot span,.bn-std span,.bn-std,x:default { display:inline-block } .bn-add span,.bn-hot span,.bn-std span { padding:0 8px 0 5px; background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 100% 0; line-height:23px; font-size:12px; cursor:pointer } .bn-hot span { background-position:100% -23px; line-height:24px } .bn-add span { background-position:100% -71px; padding-right:15px } a.bn-std:link,a.bn-std:visited,a.bn-std:hover,a.bn-std:active { background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 0; color:#000 } a.bn-hot:link,a.bn-hot:visited,a.bn-hot:hover,a.bn-hot:active { background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -23px; color:#eb928c } a.bn-add:link,a.bn-add:visited,a.bn-add:hover,a.bn-add:active { background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -71px; color:#9e9e9e; padding-left:25px } a.bn-hot:hover,a.bn-hot:active { background-position:0 -47px } a.bn-hot:hover span,a.bn-hot:active span { background-position:100% -47px; color:#f4473b } .rating1-t,.rating15-t,.rating2-t,.rating25-t,.rating3-t,.rating35-t,.rating4-t,.rating45-t,.rating5-t,.rating-t { display:inline; padding-left:55px; font-size:9px; line-height:1; background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 0; font-family:simsun } .rating1-t em,.rating15-t em,.rating2-t em,.rating25-t em,.rating3-t em,.rating35-t em,.rating4-t em,.rating45-t em,.rating5-t em,.rating-t em { color:#ff5c38; font-family:tahoma } .rating1-t { background-position:0 -216px } .rating15-t { background-position:0 -204px } .rating2-t { background-position:0 -193px } .rating25-t { background-position:0 -180px } .rating3-t { background-position:0 -168px } .rating35-t { background-position:0 -156px } .rating4-t { background-position:0 -144px } .rating45-t { background-position:0 -132px } .rating5-t { background-position:0 -120px } .rating1-b,.rating15-b,.rating2-b,.rating25-b,.rating3-b,.rating35-b,.rating4-b,.rating45-b,.rating5-b,.rating-b { display:inline-block; display:-moz-inline-stack; *zoom:1; height:14px; vertical-align:text-top; overflow:hidden; padding-left:80px; margin:-3px 1ex 0 0; font-size:14px; line-height:14px; background:url(http://t.douban.com/pics/ui/core1.png) no-repeat; *margin-top:0 } .rating1-b,.rating15-b,.rating2-b,.rating25-b,.rating3-b,.rating35-b,.rating4-b,.rating45-b,.rating5-b,.rating-b,x:default { display:inline-block } .rating1-b em,.rating15-b em,.rating2-b em,.rating25-b em,.rating3-b em,.rating35-b em,.rating4-b em,.rating45-b em,.rating5-b em,.rating-b em { color:#ff5c38; font-family:tahoma } .rating1-b { background-position:-120px -240px } .rating15-b { background-position:-120px -225px } .rating2-b { background-position:-120px -210px } .rating25-b { background-position:-120px -195px } .rating3-b { background-position:-120px -180px } .rating35-b { background-position:-120px -165px } .rating4-b { background-position:-120px -150px } .rating45-b { background-position:-120px -135px } .rating5-b { background-position:-120px -120px } .rating-l b { display:inline-block; display:-moz-inline-stack; *zoom:1; height:14px; overflow:hidden; background:#f5cbad; margin:-2px 2px 0 0; vertical-align:middle; *vertical-align:text-bottom } .rating-l em { font-size:9px; font-family:tahoma; line-height:1 } .srh-member,.srh-group { text-align:center } .srh-member legend,.srh-group legend { text-align:left } .srh-member .item input { width:242px; font-size:14px } .srh-all .item input { width:20em; font-size:14px; padding:2px; margin:0 1ex 0 0 } .srh-all .item button { font-size:14px } .srh-all .item-r,.srh-music .item-r { margin:0; padding:0 1em } .srh-all .item-r input,.srh-music .item-r input { margin:0 2px 0 0; vertical-align:middle } .srh-all .item-r label,.srh-music .item-r label { margin-right:1ex; line-height:1.2 } .srh-group p { color:#666 } .srh-group .item input,.srh-event .item input { width:350px; margin:0 .5ex 0 0 } .srh-group .item-s { margin-bottom:1em } .srh-movie .item input,.srh-book .item input { width:30em; margin:0 .5ex 0 0; padding:2px } .srh-music-artist .item input,.srh-music .item input { width:20em; margin:0 .5ex 0 0; padding:2px } .srh-music-artist .item input { width:16.7em } .tags { line-height:1.2 } .tags li { display:inline; margin:-1ex 1ex } .size1 a { font-size:1em } .size2 a { font-size:1.17em; font-weight:800 } .size3 a { font-size:1.5em } .size4 a { font-size:1.75em; font-weight:800 }
12ik
trunk/app/site/skins/default/site.css
CSS
oos
21,619
<?php defined('IN_IK') or die('Access Denied.'); /* *包含数据库配置文件 */ require_once IKDATA."/config.inc.php"; $skin = 'default'; $IK_APP['options']['appname'] = '小站';
12ik
trunk/app/site/config.php
PHP
oos
203
charset "utf-8"; body { color:#333; } td {word-break:break-all;} pre { white-space:pre-wrap;word-wrap:break-word;font-family:arial,helvetica,sans-serif; } textarea { overflow:auto;border:1px solid #ccc;padding:3px;font-size:12px; } .notes { font-size:12px;color:#666; } .datetime { color:#666; } .list-b .count { text-align:left; } .list-b .date { width:10em; } .message { margin:10px;padding:10px;border:1px solid #ef9c3b;color:#ef9c3b;background:#fff9df; } .hidden { display:none !important; } a.processing:link, a.processing:visited { color:#666; } a.processing:hover, a.processing:active { background-color:#666;color:#fff;} /* for webkit */ textarea { resize: none } input[type=text]:focus, input[type=password]:focus, textarea:focus { outline: 0 } /* clearfix */ .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden } .clearfix { zoom: 1; display: inline-block; _height: 1px } *html .clearfix { height: 1% } *+html .clearfix { height: 1% } .clearfix { display: block } .extra { clear:both;overflow:hidden;padding:0 20px;text-align:right;color:#999; } .extra a { color:#999; } .extra a:hover { color:#fff; } /* layout */ .wrapper { width:950px; padding: 0 5px; } .main, .aside { padding: 40px 0 0 0; } .main { float: left; width: 650px; word-wrap:break-word; } .aside { width: 300px; } #header { margin:0;padding:0; } #content { min-height:500px;_height:500px;padding-bottom:50px;background:#fff; } #content h1 { font-weight: normal; font-size:22px; margin: 0 0 10px 35px;line-height:1;color:#333; } .bg { position:absolute;top:0;left:0;z-index:-1;width:100%;height:300px;background:#d0c6db; } .bg. mask { display:none; } /* .bg .mask { position:absolute;bottom:0;left:0;width:100%;height:40px;background:#fff;opacity:0.4;filter:alpha(opacity=40); } */ /* mod */ .mod { width:auto;*zoom:1;margin-bottom:50px; } .mod h2 { padding:0;font-size:16px; } .mod .hd { position:relative;*display:inline-block;margin-bottom:14px; } .mod h2 .pl { font-size:12px; } .mod .hd .edit { padding: 0 3px; line-height: 1.5; visibility:hidden;position:absolute;background:#fff;right:0;bottom:0; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px } .mod-stat-active .hd .edit { visibility:visible; } .mod .stat-active div.edit { visibility:visible; } .mod:after { content:'\0020';clear:both;display:block; } .main .mod { margin:0 35px 50px; } .aside .mod { margin:0 50px 50px; } .list-s li { float:none;display:-moz-inline-box;display:inline-block;*display:inline;*zoom:1;vertical-align:top;margin-bottom:10px;margin-right:-3px; } .paginator a, .paginator .on { padding:1px 5px; } .item-submit input { _height:1.4em; } /* header */ .top-nav { position:relative;overflow:hidden;border:none;height:auto;margin:0;padding:11px 0 14px 0; } .top-nav .logo { float:left;width:140px;height:25px;overflow:hidden;line-height:10em;background:url(../../pics/site/sp_logo.png);_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='../../pics/site/sp_logo.png', sizingMethod='crop');_cursor:pointer; background-repeat:no-repeat } a.logo:hover, a.logo:active { background-color:transparent; } .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active { color:#8b8b8b; } .top-nav .top-nav-info a:hover { background-color:#8b8b8b;color:#fff; } /* nav */ .sp-nav { padding:22px 20px 0;background:#beb1cc;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px; } .nav-items { clear:both;*display:inline-block; } .nav-items li { float:left;position:relative;height:28px;line-height:28px;*line-height:25px;background:#d0c6db;margin-right:2px;margin-top:2px; } .nav-items li a { display:block;padding:0 15px 0;color:#fff;outline:none;*padding-top:3px; } .nav-items li a:link,.nav-items li a:visited { color:#fff; } .nav-items li a:hover,.nav-items li a:active { background-color:transparent; } .nav-items li.on { border:1px solid #ddd;padding-bottom:1px;margin-top:0;border-bottom:none;background:#fff; } .nav-items li.on a:hover { background-color:#fff; } .nav-items li.on a, .nav-items li.on a:link,.nav-items li.on a:visited { color:#4e4e4e; padding:1px 14px 0;*padding-top:3px; } .nav-items li.on em { display: inline-block; *display: inline; zoom: 1;vertical-align:middle;line-height: 20em;overflow: hidden; width: 14px; height: 26px;*height:25px; margin: 0 -5px 0 5px; background:url(../../pics/site/sp_all_4.png) no-repeat 0 -70px;cursor:pointer; } .nav-items li.on a:hover em, .nav-items li.on em.current { background-position: 0 -95px; } .nav-items li.opt { position:relative; z-index: 888; } .nav-items li.opt a { padding: 0 8px 0;*padding-top:3px; } .nav-items li.opt ul { display: none; position: absolute; z-index: 999; width: 150px; border: 1px solid #bbc5be; margin: -1px 0 0; padding: 5px 0; *padding: 5px 0 2px; background: #fff; } .nav-items li.opt li { float: none; margin: 0; padding: 0; height: 25px; line-height: 25px; width: auto; background: none } .nav-items li.opt li a:link,.nav-items li.opt li a:visited { display: block; color: #5c6a6e; padding: 0 8px } .nav-items li.opt li a:hover { background: #eceaea } .sp-logo { margin-bottom:15px; } .sp-nav:after, .sp-logo:after { content:'\0020';clear:both;display:block; } .sp-logo .logo { float:left; } .sp-logo .sigture { float:left;padding-top:14px;color:#ddd; } .sp-logo img { vertical-align:middle;margin-right:12px;margin-bottom:5px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px; } .sp-logo a, .sp-logo a:link, .sp-logo a:visited { font-size:25px;color:#fff;font-family:Georgia;outline:none; } .sp-logo a:hover, .sp-logo a:active { background-color:transparent; } .content-nav { margin:-14px 35px 0 0;text-align:right; } .content-nav a { margin-left:10px; } .title-link { position:relative;margin:0 35px 10px 0;text-align:right;clear:both; } .title-link a { margin-left:10px; } #admin-icon, #manage-room { background-image: url(../../pics/site/sp_all_4.png); background-repeat: no-repeat } #manage-room { padding-left: 33px; background-position: 15px -193px } #admin-icon { background-color: #bbb; width: 30px; height: 28px; padding: 0; line-height: 10em; overflow: hidden; background-position: 7px -142px } #admin-icon:hover, .admin-icon-active { background-color:#a9a9a9!important; } /* button */ .rec-num { margin:0 0 0 6px; } .lnk-sharing { display:inline-block;*display:inline;zoom:1;padding:0 8px;vertical-align:middle;*vertical-align:baseline;height:19px;line-height:19px;line-height:21px\9;overflow:hidden;border:1px solid #b9dcd0;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; } a.lnk-sharing:link, a.lnk-sharing:visited { border-color:#e3f1ed;background-color:#f2f8f2;color:#4f946e; } a.lnk-sharing:hover, a.lnk-sharing:active { border-color:#c4e2d8;background-color:#eff5ef !important;color:#4f946e !important; } .rec-btn { letter-spacing: 4px; } .rec-btn, .rec-btn:hover { color:#4f946e !important;display:inline-block;*display:block;margin-left:6px;vertical-align:text-bottom;background:url(../../pics/bg_rec_btn.png) no-repeat;width:46px;height:20px;padding-left:26px;line-height:20px;overflow:hidden; } .rec-btn:hover { background-color:transparent !important;background-position:0 -20px; } .ic-auth, .lnk-flat, .lnk-follow, .lnk-followed, .lnk-rec, .lnk-rec span, .bn-flat-hot, .bn-flat { display:-moz-inline-box;display:inline-block;border-width:1px;border-style:solid;border-color:#d9d9d9 #ccc #c9c9c9;*display:inline;*zoom:1;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;overflow:hidden;vertical-align:middle; } .bn-flat-hot:hover, .bn-flat:hover, a.lnk-flat:hover { border-color: #c9c9c9; } .lnk-flat, .bn-flat-hot input, .bn-flat input { border:none;height:25px;padding:0 14px;color:#333;background:transparent url(../../pics/site/sp_all_4.png) repeat-x 0 -700px\9;outline:none;font-size:12px;*padding:3px 8px 0;margin:0 !important;cursor:pointer;-webkit-appearance:none;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px; background-image: -moz-linear-gradient(-90deg, #ffffff 50%, #e9e8e8 100%); background-image: -webkit-gradient(linear,left top,left bottom, color-stop(0.5, #ffffff), color-stop(1, #e9e8e8)); } a.lnk-flat:hover, a.lnk-flat:active, .bn-flat input:hover, .bn-flat-over input{ color:#333 !important;background-color:transparent !important;background-position: 1px -706px\9; background-image: -moz-linear-gradient(-90deg, #f5f5f5 40%, #dedede 100%); background-image: -webkit-gradient(linear,left top,left bottom, color-stop(0.4, #f5f5f5), color-stop(1, #dedede)); } a.lnk-flat:active, .bn-flat input:active, .bn-flat-active input{ background:#ebebeb !important; } .lnk-flat { border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; } /*.bn-flat-hot { border-color:#6dbe77; } .bn-flat-hot input { border:none;background:#6fcd96;-moz-border-radius:2px;-webkit-border-radius:2px;color:#fff; } .bn-flat-hot input:hover, .bn-flat-hot-over input{ background:#57bd81; } .bn-flat-hot input:active, .bn-flat-hot-active input{ background:#47b175; }*/ .bn-flat-hot input { font-weight: bold } .bn-flat-hot input:hover { background-position: 0 -706px\9; background-image: -moz-linear-gradient(-90deg, #f5f5f5 40%, #dedede 100%); background-image: -webkit-gradient(linear,left top,left bottom, color-stop(0.4, #f5f5f5), color-stop(1, #dedede)); } .bn-flat-hot input:active { background:#ebebeb; } .bn-flat-red input { cursor: pointer; height: 22px; line-height: 1; padding: 0 6px; color: #ff7676; border: 1px solid #ffa4a4; background: #fcdada; zoom: 1; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; padding-top: 1px\9; *padding: 3px 0 0 } .bn-flat-red input:hover { color: #fff; border-color: #ee3434; background: #ff9494 } @-moz-document url-prefix() {.bn-flat-red input { height: 23px; padding-bottom: 2px }} .lnk-flat { height:24px;padding:0 8px;line-height:24px;border:1px solid #d9d9d9; } a.lnk-flat:link, a.lnk-flat:visited { color:#333;background:transparent url(../../pics/site/sp_all_4.png) repeat-x 0 -641px\9; } a.lnk-flat:hover { color:#333;background-position: 0 -701px\9; } a.lnk-flat:active { color:#333;background:#ebebeb; } .lnk-rec span { border-width:0;padding:2px 10px;cursor:pointer;background:url(../../pics/site/sp_all_4.png) no-repeat 10px -812px;padding-left:30px;vertical-align:baseline; } .lnk-rec { border-color:#b9dcd0;height:24px;line-height:21px;overflow:hidden;vertical-align:baseline; } .mod a.lnk-rec:link, .mod a.lnk-rec:visited { color:#4f946e;background:#eff7ef; } .mod a.lnk-rec:hover { color:#4f946e;background:#ecf3ec !important; } .mod a.lnk-rec:active { color:#4f946e;background:#e5eee5; } @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0){ .lnk-flat, .bn-flat-hot input, .bn-flat input { background:transparent url(../../pics/site/sp_all_4.png) repeat-x 0 -700px; } a.lnk-flat:hover, a.lnk-flat:active, .bn-flat input:hover, .bn-flat-over input { background-position: 1px 706px; } a.lnk-flat:link, a.lnk-flat:visited { background:transparent url(../../pics/site/sp_all_4.png) repeat-x 0 -641px; } a.lnk-flat:hover { background-position: 0 -701px; } } .bn-small { background:#ffdddd;border:1px solid #ffabab;color:#ff7676;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-webkit-appearance:none;cursor:pointer;height:16px\9;*height:17px;padding:0 2px;*padding:0; } a.bn-small:link, a.bn-small:visited, a.bn-small:hover, a.bn-small:active { background:#ffdddd;color:#ff7676;padding:0 4px;line-height:1.8;font-size:12px;*line-height:1.3;zoom:1;*height:13px;*overflow:hidden; } /* .bn-big { background:#ffdddd;border:1px solid #ffabab;color:#ff7676; margin-left:4px;vertical-align:baseline;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;-webkit-appearance:none;height:21px;line-height:21px;padding-top:0px;padding-bottom:0px;padding-right:8px;padding-left:8px;border-top-width:1px; border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow:hidden;display:inline;text-decoration:none;} */ .bn-big{ background:#ffdddd;border:1px solid #ffabab;color:#ff7676;border-radius:3px 3px 3px 3px;display:inline-block; -moz-border-radius:4px; -webkit-border-radius:4px; -webkit-appearance:none;overflow:hidden; padding:0 8px; vertical-align:middle;word-warp:break-word;padding-top:1px;padding-bottom:1px;font-size:12px;font-family:arial,helvetica,sans-serif;} a.bn-big:link, a.bn-big:visited, a.bn-big:hover, a.bn-big:active { background:#ffdddd;color:#ff7676;padding:0 4px;line-height:1.8;font-size:12px;*line-height:1.3;zoom:1;*height:13px;*overflow:hidden; } .mod .lnk-follow { border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;border:1px solid #0baf57;padding:0 25px 0 25px;height:25px;line-height:25px;font-size:13px;overflow:hidden;background:url(../../pics/site/sp_all_4.png) repeat-x 0 -851px\9;background-color:transparent !important;*vertical-align:baseline; } .mod a.lnk-follow:link, .mod a.lnk-follow:visited { color:#fff;background:-webkit-gradient(linear,left top,left bottom, color-stop(0, #2cc677), color-stop(1, #1eb964));background:-moz-linear-gradient(-90deg, #2cc677, #1eb964); } .mod a.lnk-follow:hover { color:#fff;background:-webkit-gradient(linear,left top,left bottom, color-stop(0, #2abd71), color-stop(1, #1db05e));background:-moz-linear-gradient(-90deg, #1db05e, #1db05e);background:url(../../pics/site/sp_all_4.png) repeat-x 0 -885px\9; } .mod a.lnk-follow:active { color:#fff;background:-webkit-gradient(linear,left top,left bottom, color-stop(0, #13b863), color-stop(1, #0baf58));background:-moz-linear-gradient(-90deg, #13b863, #0baf58);background:url(../../pics/site/sp_all_4.png) repeat-x 0 -919px\9; } @media all and (min-width:0px){ .mod a.lnk-follow:link, .mod a.lnk-follow:visited, .mod a.lnk-follow:hover { background:url(../../pics/site/sp_all_4.png) repeat-x 0 -851px; } .mod a.lnk-follow:hover { background-position: 0 -885px; } .mod a.lnk-follow:active { background-position: 0 -919px; } } a.lnk-followed:hover,a.lnk-followed:active, .lnk-followed { border-color:#dfdfdf;overflow:hidden;padding:0 10px 0 30px;font-size:13px;color:#666;line-height:26px;background:#f2f2f2 url(../../pics/site/sp_all_4.png) 10px -958px no-repeat; } .spec-icon { margin: 15px 0 0; text-align: center } .ic-auth { border:none;color:#aaa;line-height:21px;padding-left:30px;background:transparent url(../../pics/site/sp_all_4.png) 0 -1329px; } a.rec-btn:link, a.rec-btn:visited, a.rec-btn:hover, a.rec-btn:active { background:url(../../pics/bg_rec_btn.png) no-repeat;width:46px;height:20px;padding-left:26px;letter-spacing:4px;text-indent:0;line-height:20px;overflow:hidden; } a.rec-btn:hover { background-position:0 -20px; } /* collection */ .collect-dialog .rr { float:right; } .collect-dialog label { width:auto; } .collect-dialog textarea { width:90%; } .collect-dialog .a_stars { display:block;margin-bottom:10px; } #populartags { padding-top:10px;margin-bottom:10px; } #populartags dt, .collect-dialog .tagbtn, #populartags dd { display:inline-block;*display:inline;*zoom:1;vertical-align:top; } #populartags dt { margin-right:10px;color:#666; } #populartags dd { width:80%; } .collect-dialog .tagbtn { color: #006600; text-decoration: none; line-height:1.2; font-size: 12px; text-align: center; border-right: 1px solid #AAFFAA; border-bottom: 1px solid #AAFFAA; background-color: #EEFFEE; padding: 3px 3px 2px 3px; margin-bottom:2px; cursor:pointer; white-space:nowrap; } .collect-dialog .selected { background-color:#EEFFEE; border-bottom:1px solid #AAFFAA; border-right:1px solid #AAFFAA; color:#BBBBBB; } #rateword { color:#999; } .rate_stars img { vertical-align:text-bottom; } /* mod: recommend */ .rec-sec { float:right; } .rec-sec .rec-num, .rec-sec .rec { float:none; } .rec-sec .rec { margin-left:4px;vertical-align:middle; } .rec-sec .rec-num { vertical-align:baseline;zoom:1; } /* mod: admin links */ .admin-lnks { padding:5px 0; } .admin-lnks, .admin-lnks a:link, .admin-lnks a:visited { color:#ccc; } .admin-lnks a:hover, .admin-lnks a:active { color:#fff;background:#ccc !important; } .comment-item .admin-lnks, .update-item .admin-lnks { text-align:right; } /* mod: message */ .msg { border:1px solid #faf3ca;padding:10px;background:#fffadc;margin-bottom:10px;font-size:12px; } /* mod: ad */ .db-ad { text-align:center; } /* mod: info card */ #sp-user-card { padding:4px;margin:20px 0 50px;background-color:#edeee0; } #sp-user-card .hd { text-align:center;margin:0;padding:13px 10px 5px;border:1px solid #e5e4e1;border-bottom:none;background-color:#fff; } #sp-user-card .bd { padding:15px;background:#fff;border:1px solid #e5e4e1;border-top:none;word-wrap:break-word; } #sp-user-card .bd li { line-height:21px; } #sp-user-card .bd li span { color:#777; } #sp-user-card .signature { padding-top:15px;text-align:right; } #sp-user-card .signature img { margin-left:10px; } #sp-user-card .title { padding-bottom:10px;border-bottom:1px solid #e5e4e1; } #sp-user-card .title a { font-size:14px; } #sp-user-card .title a:link, #sp-user-card .title a:visited { text-decoration:underline; } #sp-user-card .title a:hover, #sp-user-card .title a:active { background:transparent; } .site-info .sp-user-card { padding:4px;margin:20px 0 50px;background-color:#edeee0; } .sp-user-card .hd { text-align:center;margin:0;padding:13px 10px 5px;border:1px solid #e5e4e1;border-bottom:none;background-color:#fff; } .sp-user-card .bd { padding:15px;background:#fff;border:1px solid #e5e4e1;border-top:none;word-wrap:break-word; } .sp-user-card .bd li { line-height:21px; } .sp-user-card .bd li span { color:#777; } .sp-user-card .signature { padding-top:15px;text-align:right; } .sp-user-card .signature img { margin-left:10px; } .sp-user-card .title { padding-bottom:10px;border-bottom:1px solid #e5e4e1; } .sp-user-card .title a { font-size:14px; } .sp-user-card .title a:link, .sp-user-card .title a:visited { text-decoration:underline; } .sp-user-card .title a:hover, .sp-user-card .title a:active { background:transparent; } .book-card .title a:link,.book-card .title a:visited,.book-card .title a:hover,.book-card .title a:active, .bizstore-card .title a:link,.bizstore-card .title a:visited,.bizstore-card .title a:hover,.bizstore-card .title a:active, .host-card .title a:link,.host-card .title a:visited,.host-card .title a:hover,.host-card .title a:active, .music-card .title a:link,.music-card .title a:visited,.music-card .title a:hover,.music-card .title a:active { color:#65b899; } .book-card .signature { color:#21aabd; } .book-card .hd { background:url(../../pics/site/sp_all_4.png) no-repeat 17px -1187px; } .music-card .hd { background:url(../../pics/site/music-beam-16.png) no-repeat 16px 16px; } .bizstore-card .map-small { display:block;overflow:hidden;margin-bottom:20px; } .bizstore-card .list li { margin-bottom:5px; } .bizstore-card .list p { color:#999; } .bizstore-card .title { background:url(../../pics/site/ic_bizstore.png) no-repeat 4px 2px; } .host-card .title { background:url(../../pics/site/ic_host.png) no-repeat 4px 2px; } /* movie site */ .movie-site-card .title a:link,.movie-card .title a:visited,.movie-card .title a:hover,.movie-card .title a:active { color:#65b899; } .movie-site-icon .title{background:url(../../pics/site/lc_cinema.png) no-repeat 12px 4px;} .movie-site-card li {margin-bottom:5px;} .movie-site-card li.gray-a {margin-bottom:0;} .movie-site-card li.gray-a span {color:#333;} .movie-site-card li.gray-a span.pl {color:#666;} .movie-site-card .gray-a a {color:#333;} .movie-site-card .gray-a a:hover {color:#fff; background:#777;} #movie-site-card { background-color: #edeee0; margin: 20px 0 50px; padding: 4px; } /* mod: board */ .board form { margin-bottom:20px; } .board .update-item .author { min-height:48px;_height:48px;border-bottom:1px solid #ddd; } .board-text { width:96%;height:50px;margin-bottom:5px; } .board .func { margin-bottom:20px; } /* mod: new board */ .board .pic img { height: 36px } .board .update-item { margin-bottom: 0 } .board .update-item .author { min-height: 38px; _height: 38px; padding-bottom: 5px; margin: -2px 0 7px } .board .update-item .content { padding-left: 4em } /* mod: doulist */ .doulist-desc { margin-bottom:10px; } .doulist .list-s li { width:20%; } .add-new-item em { color:#999; } /* mod: entry item */ .item-entry { margin-top:20px; } .item-entry .title { font-size:14px; } .item-entry .summary { overflow:hidden;width:100%;word-wrap:break-word; } .summary .ll, .item-entry .summary .pic { float:left;margin:0 10px 5px 0; } .createnew { margin-top: 15px; color: #999; font-size: 14px; text-align: center } /* mod: sidenav */ .aside .sidenav { color:#666;padding:20px; } .sidenav a { font-size:14px; } .sidenav li { margin-top:4px; } /* mod: navbar */ .navbar { padding-bottom:2px;margin-bottom:20px;text-align:right;color:#666;border-bottom:1px solid #ddd; } .navbar a { margin-right:5px; } .xbar { background:#fff6ee;margin-bottom:20px;border-bottom:1px solid #faeee4;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px; } .xbar ul { margin-left:20px;} .xbar li { display:-moz-inline-box;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:3px 12px 1px;border-top-left-radius:4px;border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px; } .xbar li.on { position:relative;background:#fff;margin-bottom:-1px;border:1px solid #faeee4;border-bottom:none; } .xbar .more { float:right;margin-right:10px;*display:inline;line-height:1.8; } /* mod: dialog */ .dui-dialog .rectitle, .dui-dialog .rectitle a, .dui-dialog .rectitle .m, .dui-dialog .rectitle .gact, .dui-dialog .recsubmit { display:none; } .dui-dialog .recsmr { display:block;margin-bottom:10px;color:#666; } .reccomment .pl { float:left;margin-right:20px; } .reccomment textarea { width:97%; } .reccomment label { position:absolute;width:auto;color:#999;margin:2px 0 0 6px;cursor:text; } .rectitle { margin-bottom:20px;color:#666; } .dlg-success { text-align:center;color:#006600; padding:10px 0;font-size:16px; } /* mod: item */ .item .title { font-size:14px;margin-bottom:6px;text-align:left; } .item .title span { font-size:12px;color:#666; } .paginator { clear:both;text-align:center;color:#666; } /* admin followers rules */ .followers-admin .name em { position:relative;z-index:10;display:inline-block;*display:inline;zoom:1;vertical-align:middle;overflow:hidden;margin:0 0 2px 6px;*top:3px;width:0;height:0;line-height:0;border:3px dashed transparent;border-top-width:6px;border-top-style:solid;border-top-color:#ccc;cursor:pointer; } .followers-admin .hover em { *top:0;margin-bottom:7px;*margin-bottom:4px;border:3px dashed transparent;border-bottom-width:6px;border-bottom-style:solid;border-bottom-color:#ccc; } .followers-admin .info .opt { display:none; } .follower-overlay { display:none;position:absolute;backgroundd:#fff;border:1px solid #ccc; } .follower-overlay .bd { padding:4px;background:#fff; -webkit-box-shadow:1px 1px 4px rgba(0,0,0,.3); -moz-box-shadow:1px 1px 4px rgba(0,0,0,.3); box-shadow:1px 1px 4px rgba(0,0,0,.3); } .follower-overlay .hd { position:absolute;width:14px;top:-21px;right:-1px;height:20px;background:#fff;border:1px solid #aaa;border-bottom:none; -webkit-box-shadow:1px 1px 4px rgba(0,0,0,.2); -moz-box-shadow:1px 1px 4px rgba(0,0,0,.2); box-shadow:1px 1px 4px rgba(0,0,0,.2); } .follower-overlay .hd em { position:absolute;top:0;left:0;width:14px;height:24px;background:#fff; } .follower-overlay .bd a { display:block; } /* mod: events list */ /* .events-list:after { content:'\0020';clear:both;display:block; } .events-list .pic img { padding:2px;border:1px solid #ddd;background:#fff; } .events-list .list-s li { width:50%;width:49.5%\9;float:none\9;display:inline-block\9;*display:inline;*zoom:1;vertical-align:top\9; } .events-list .list-s li .item { margin-right:10px; } .events-list .list-s li:nth-child(2n+1) { clear:left; } .events-list-single .list-s li { width:100%; } .events-list-single .pic { padding-right:20px; } .events-list-single .item { padding-bottom:5px;border-bottom:1px dashed #ddd; } .events-list-single .admin-lnks { text-align:right;padding:0; } .events-list-single .admin-lnks a:hover { color:#fff; } .aside .events-list .list-s li { width:100%; } #db-events-list .list-s li { margin-bottom:30px; } .events-list .list-s .info span { display:inline; } */ /* mod: events list v2 */ .events-list .item { margin-bottom: 40px; border: none } .events-list .item .pic { width: 170px; max-height: 170px; padding-right: 20px; overflow: hidden; _height: expression(this.height > 170 ? 170: true) } .events-list .item .pic img { max-width: 170px; max-height: 170px; _width: expression(this.width > 170 ? 170: true); _height: expression(this.height > 170 ? 170: true) } .events-list .item .date { margin-left: 0; font-size: 14px; } .events-list .item .info { float: none } .events-list .item .info h3 { font-size: 15px; margin-bottom: 15px } .events-list .item .info p { color: #808080 } .events-list .item .info p span { display: block } .events-list .discuss { margin-top: 15px } .events-list-s .item { height: 48px; margin-bottom: 20px; border: none } .events-list-s .date, .events-list-s .pic { display: inline-block; *display: inline; zoom: 1; vertical-align: top; position: relative; z-index: 99 } .events-list-s .date { width: 48px; height: 43px; margin: 0 -3px 0 0; *margin: 0; padding-top: 5px; color: #333; font-size: 12px; text-align: center; background: #ededed } .events-list-s .date b { display: block; font: 24px Hei; line-height: 0.7; *line-height: 24px; *margin-top: -3px } .events-list-s .pic { float: none; padding: 0; width: 48px; height: 48px; margin: 0 -3px 0 0; *margin: 0; overflow: hidden } .events-list-s .pic img { width: 48px; height: 48px } .events-list-s .info { float: none; display: block; position: relative; height: 47px; margin: -48px 0 0; padding: 7px 0 0 115px; border-top: 1px solid #dbdbdb } .events-list-s .info.long { padding: 7px 0 0 67px } .events-list-s .item .info span { color: #808080 } .events-list-s .info h3 { font-size: 14px; margin-bottom: 3px; #margin-bottom: 2px; _margin-bottom: 3px } .events-list-s .follow { position: absolute; top: 10px; right: 5px } /* closed events list */ .events-list-s .item.close .date { color: #666; height: 48px; padding: 0; line-height: 48px } .events-list-s .item.close .info { border: none; height: 34px; background: #ededed; padding-top: 14px } .events-list-s .item.close .follow { top: 16px; right: 10px } /* mod online event */ .event-head .pic, .event-head .info { display: inline-block; *display: inline; zoom: 1; vertical-align: top } .event-head .pic, .event-head .pic img { max-width: 170px; max-height: 170px; _width: expression(this.width > 170 ? 170: true); _height: expression(this.height > 170 ? 170: true) } .event-head .pic { overflow: hidden; margin-right: 20px } .event-head .info b { font-weight: normal; color: #777 } .event-head .info span { display: block } #content .event-head h1 { margin: 0 0 15px } .event-head .opt { margin-top: 15px } /* temp */ a.redbutt:link { color: #ff7676 } /* mod: forum */ .post-list { margin-bottom:20px; } .post { width:100%;display:inline-block;margin-bottom:40px; } .post-author { float:left; } .post-content { margin-left:75px; } .post-content p { margin:10px 0; } .post-content .rec { float:right; } .post-info { margin-bottom:10px;font-size:14px; } .post-info .datetime { color:#060;margin-right:2em; } .post-info .from { color:#666; } .post-comments { padding-left:75px; } .post-title { font-size: 12px; width: 435px; padding: 3px; border: 1px solid #ccc } .comment-item .author { background:#efe;color:#666;padding:2px 4px; } /* mod: comment */ .comment-lnk { color:#666;font-size:14px;margin-bottom:20px; } .comment-lnk a { font-size:14px; } .comment-form { margin-bottom:30px; } #comments .comment-report { visibility: hidden; text-align: right; } #comments .comment-report a { color: #bbb; } /* mod: vote */ .votes { border-bottom:1px dashed #ddd;padding-bottom:10px;margin-bottom:20px; } .votes h2 { float:none; } .mod .votes h2 span { color:#666; } .votes ul { margin-bottom:10px; } .votes li { overflow:hidden;*display:inline-block;margin-bottom:5px; } .votes p { margin-bottom:10px;color:#666; } .votes form .item-submit { padding:0; } .voted { margin:0 5px; font-size:12px; } .vote-item,.vote-line,.vote-line em,.vote-percent { display:-moz-inline-box;display:inline-block;*zoom;vertical-align:top; } .vote-item input, .vote-item-long input { margin-right:5px; } .vote-item label, .vote-item-long label { float:none;width:auto; } .vote-item { float:left;width:40%; } .vote-line { width:35%;padding-top:4px;overflow:hidden;margin-right:10px; } .vote-line em { height:8px;overflow:hidden;background:#e0e78a; } .vote-percent { color:#999;font-size:10px; } #db-vote-explain .bd { color:#666; } #db-vote-explain p { margin-top:10px; } .voted { color:#666; } .top-tips, .vote-top-tips { width: 450px; color: #666; margin-bottom: 25px; padding: 12px 20px 2px; border: 1px solid #e2e5e5; background: #f8f8f8; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px } .top-tips h3, .vote-top-tips h3 { font-size: 14px; margin-bottom: 8px; color: #333 } .top-tips p { margin-bottom: 10px } /* mod: video list */ .item-video { width:140px;word-wrap:break-word;text-align:left; } .item-video .pic { margin-bottom:6px; } .item-video .info { color:#666;*vertical-align:baseline; } .item-video .pic a { position:relative;display:block;width:130px;height:97px;overflow:hidden; } .item-video .pic a:hover .video-overlay { background-position:0 -97px; } .video-overlay { position:absolute;width:130px;height:97px;top:0;left:0;background:url(../../pics/video_overlay.png);cursor:pointer;_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader('../../pics/video_overlay_ie6.png'); } .video-list:after { content:'\0020';clear:both;display:block; } .video-list .list-s li { width:33%;float:none\9;display:inline-block\9;*display:inline;*zoom:1;vertical-align:top\9;text-align:left; } .aside .video-list .list-s li { width:100%;*display:inline-block; } .aside .video-list .item-video { width:auto; } .aside .video-list .item-video .pic { float:left; } .aside .video-list .item-video .info { margin-left:145px;*display:inline-block;*margin-left:140px; } #db-video-list li { clear:both;margin-bottom:30px;overflow:hidden; } #db-video-list .item-video { width:auto; } #db-video-list .item-video .pic { float:left;margin-right:20px;vertical-align:top; } #db-video-list .item-video .info { *float:left; } .video-player { margin-bottom:10px; } .video-info { margin-bottom:50px; } .video-info .rec { float:right; } .video-info p { color:#666; } /* video dialog */ .frm-video p { color:#666; } .frm-video .item { margin-top:10px; } .frm-video .item label { width:6em; } .frm-video .item input { width:80%; } /* mod: rec room */ #sp-rec-room { background:#f6f6f6;border:1px solid #eaeaea;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px; } #sp-rec-room .bd { padding:5px;*zoom:1;} #sp-rec-room .rec { float:right; } #sp-rec-room .rec-sec { text-align:right; } #sp-rec-room .rec-num { display:inline;margin-right:5px; } .rec-num em { font-weight:800; } /* mod: events album */ .event-album-list { margin-bottom:20px; } .event-album-list li { width:25%;*width:24.5%; } .event-album-list-b li { width:50%; } .event-album-list .datetime, .event-album-list .desc { text-align:left;color:#666;*vertical-align:baseline; } .event-album-list .cover, .event-album-list .title { text-align:left;*vertical-align:baseline; } .album-photo-s { width:auto;padding-right:10px; } .album-photo-s .cover { padding:4px 8px 8px 4px;background:url(../../pics/albumback_s.gif) no-repeat 0 0; } .album-photo .cover { background-position:0 -299px; } .aside .event-album-list li { width:50%; } /* mod: album widget */ .widget-photo-desc { margin: 20px 20px 20px 0 } .widget-photo-desc a { font-size: 14px } .widget-photo-desc .quote { overflow:hidden; *zoom:1; word-wrap:break-word } .widget-photo-desc .quote span.inql { background: url(../../pics/quotel.gif) no-repeat left 4px; color:#666; padding-right:10px; display:inline-block } .widget-photo-desc .quote span.inqr { background: url(../../pics/quoter.gif) no-repeat right 4px; color:#666; padding-left:10px; display:inline-block } .widget-photo-list { margin-top:-14px; } .widget-photo-list li { width:20%;text-align:left;margin:14px -3px 0 0; position: relative; left: 0; top: 0; zoom:1 } .widget-photo-list .info { display: none; position: absolute; left: 25px; top: -48px; background: #ffffff; border: 1px solid #999; padding: 5px; width: 36px; height: 36px; z-index: 3 } .widget-photo-list .info p { color: #666; display: none } .widget-photo-list .info .pic { display: block; position: absolute; right: 5px; top: 5px } .widget-photo-list .info .pic img { width: 36px; height: 36px } .widget-photo-list .info .arrow { left: 16px; border: 6px dashed transparent; display: block; position: absolute; top: 44px; height: 0; width: 0; font: 0; line-height: 0; _clear:both } .widget-photo-list .info .inner { top: 43px; border-top: 6px solid #fff; z-index: 5 } .widget-photo-list .info .outer { border-top: 6px solid #666; z-index: 4 } .widget-photo-list .desc { left: -23px; width: 130px } .widget-photo-list .desc .arrow { left: 65px } .widget-photo-list .desc p { display: block; float: left; width: 90px; _line-height: 15px } .widget-photo-list .rec-num { margin: 10px 15px 0 0 } .album-thumbnail img { width:56px;height:56px;background-position:50% 30%;background-repeat:no-repeat; } .widget-photo-set .album-thumbnail li { float:left;width:56px;height:56px;overflow:hidden;margin:0 3px 3px 0; } .widget-photo-set .album-thumbnail { padding-top:20px;overflow:hidden;*zoom:1; } .widget-photo-set .album-thumbnail ul { margin-left:20px; } .widget-photo-set .album-cover { float:left;padding:20px;background:#f5f5f5;text-align:center; } .widget-photo-set .album-cover a { display:block;width:240px;height:240px;overflow:hidden;font-size:0;line-height:0; } .widget-photo-set .album-cover a:hover, .widget-photo-set .album-cover a:active, .widget-photo-set a:hover, .widget-photo-set a:active { background-color:transparent; } .widget-photo-set .num { clear:both;padding-top:5px;color:#666; } .mod-album-layout1 em, .mod-album-layout2 em, .mod-event-layout1 em, .mod-event-layout2 em { visibility:hidden; } .mod-album-layout1 input, .mod-album-layout2 input { height:24px;*height:auto; } .mod-album-layout1, .mod-album-layout2, .mod-event-layout1, .mod-event-layout2 { display:inline-block;*display:inline;*zoom:1;height:22px;vertical-align:middle;overflow:hidden;padding:2px 0 0 0;font-size:0;line-height:0;background:url(../../pics/site/sp_all_4.png) no-repeat 20px -1039px; } .mod-album-layout2 { background-position:20px -1069px; } .mod-event-layout1 { background-position:20px -1560px; } .mod-event-layout2 { background-position:20px -1608px; } /* mod: events photo list */ .photo-item { text-align:left; } .photo-item .desc { margin-top:10px;color:#666; } .event-photo-list li { width:33%;margin-bottom:20px; } .photitle { margin:-5px 0 20px;_margin-top: -4px; padding-bottom:5px;text-align:right;border-bottom:1px solid #ddd;color:#666; } .phodesc { margin-bottom:20px; } .album-info { margin-bottom:20px;color:#666; } .album-info .views { float:right; } .admin-mod { color:#666; } .admin-mod legend { font-size:12px;padding:0; } .admin-mod fieldset { border:1px solid #ddd;padding:10px; } .phoview { _width: 580px; margin-bottom:10px;text-align:center;overflow:hidden; } .phoview img { max-width: 580px } .phoview a:hover { background: none } .phoinfo .recs, .phoinfo .stat { float:right;color:#666; } .phoinfo .recs { margin-top:-2px; } #db-photo-view { margin-bottom:30px; } #db-photo-view .photitle { text-align:center; } #db-photo-view .photitle .back-lnk { float:right; } #db-photo-view .photitle .nums { float:left; } /* mod: popup tip */ .blocktip{ text-align:left; padding:5px; border:1px solid #e3e3e3; border-width:1px 2px 2px 1px; background:#fff; position:absolute; z-index:100;display:none; } .tipwrap{position:relative;} .blocktip_content{ margin:3px 0;float:left;width:100%;clear:both;font-size:12px; } .blocktip_content div { margin-bottom:10px; } .artist_tip{width:230px;padding:4px 8px} /* mod: login */ #pop_win_login .pop_rem label { float:none; } #pop_win_login .login_input { margin-bottom:5px; } #pop_win_login .login_input span { float:left;width:40px; } #pop_win_login .pop_rem { padding-left:40px;margin-bottom:10px; } #pop_win_login .pop_sub { padding-left:40px;margin-bottom:20px; } .dialog-login .dui-dialog-content .recsubmit { display:block; } /* mod: notes */ .note-item { *display:inline-block;} .note-item .datetime { margin-bottom:10px; } .note-ft .count, .note-ft .reply { float:right;margin-left:5px;color:#666; } .note-content pre { width:100%;font-size:14px;line-height:1.8; } .rec-num { color:#666;display:inline; } /* bulletin */ .bulletin-content { width:auto;background:#f4f4ec;padding:25px; } /* mod: saying */ #sp-talk textarea { width:90%;height:3em; } #sp-talk .item-submit { padding:0;} /* mod: user */ #sp-user { position:relative;z-index:1;margin-top:-100px; } #sp-user .user-pic { margin-bottom:15px;text-align:center;color:#666; } #sp-user .user-pic img { padding:5px;border:1px solid #eee;background:#fff;margin-bottom:2px; } #no-pic:hover { background: none } /* setting panel */ .setting-panel { clear:both;margin-bottom:20px;color:#666;background:#eee;border:1px solid #e8e6e6;overflow:hidden; } .setting-panel .loading { padding:30px 0;text-align:center; } .setting-panel legend { display:none; } .setting-panel label { width:6em; } .setting-panel form { padding:20px 30px; } .aside .setting-panel select { width:10em; } .setting-panel form .item-submit { padding:0 0 0 6em; } .setting-panel .item-submit .bn-flat-hot { margin-right:2em; } .setting-panel .item { margin-bottom:10px; } .setting-panel .setting-panel-ops { float:right;line-height:1.2;margin-top:7px;*margin-top:-1.7em; } .setting-panel-ops, .setting-panel-ops a:link, .setting-panel-ops a:visited { color:#999; } .setting-panel-ops a:hover, .setting-panel-ops a:active { background-color:#999;color:#fff; } /* .setting-panel .a_delete_mod { float:right;line-height:1.2;margin-top:7px;*margin-top:-1.7em; } .mod a.a_delete_mod:link, .mod a.a_delete_mod:visited { color:#f66; } .mod a.a_delete_mod:hover, .mod a.a_delete_mod:active { background-color:#f66;color:#fff; } */ .mod a.a_cancel_setting_panel:link, .mod a.a_cancel_setting_panel:visited { color:#6FCD96; } .mod a.a_cancel_setting_panel:hover, .mod a.a_cancel_setting_panel:active { background-color:#6FCD96;color:#fff; } .aside .setting-panel { width:100%; } .aside .setting-panel label { width:5em; } .aside .setting-panel form { padding:10px 0 5px 5px; } .aside .setting-panel .item-r label { margin-right:1px; } .a_lnk_mod_setting { background:transparent url(../../pics/site/sp_all_4.png) no-repeat 0 -150px !important;padding-left:15px;color:#aaa !important;outline:none; } a.a_lnk_mod_setting:hover, .stat-active .a_lnk_mod_setting { background-position:0 -225px !important;color:#999 !important; } /* tips */ .aside .sp-tips { margin: 80px 0 0 } .setting-tips { color: #666; width: 180px; padding: 20px; border: 1px solid #e2e5e5; background: #f8f8f8; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px } .setting-tips h3 { font-size: 14px; margin-bottom: 8px } .setting-tips p { line-height: 1.8; color: #999; margin-top: 8px } .form-tips { display: inline-block; _display: inline; zoom: 1; color: #666; background: #fcfdef; padding: 4px 6px } #top-tips { display: none; z-index: 9999; position: fixed; top: 0; cursor: pointer; color: #666; font-size: 18px; height: 60px; width: 100%; line-height: 60px; text-align: center; background: #fff; opacity: 0.85; filter:alpha(opacity=85); border-bottom: 3px solid #efefef\9; _border-bottom: 3px solid #efefef; box-shadow: 0 0 2px rgba(204,204,204,75%); -webkit-box-shadow: 0 3px 3px rgba(204,204,204,75%); -moz-box-shadow: 0 3px 3px rgba(204,204,204,75%); _position: absolute; _top: expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop : document.body.scrollTop); } .error-tips { color: red !important; } .feedback-tips { width:180px;padding:20px; } /* user info */ .site-follow { margin-bottom:15px;text-align:center; } .site-follow span { margin:5px 0;color:#333; } .site-info { color:#666; } .site-follow .lnk-unfollow { position:absolute; } .lnk-unfollow:link, .lnk-unfollow:visited { color:#b6b6b6; } .mod .lnk-unfollow:hover, .mod .lnk-unfollow:active { background-color:#b6b6b6;color:#fff; } .like-form .note { color:#666;padding-left:1.4em; } .like-form .submit-button { padding-top:10px;text-align:center; } /* book */ .ic-pre { position:absolute;width:40px;height:14px;line-height:20em;overflow:hidden;background:url(../../pics/site/sp_all_4.png) no-repeat 0 -1100px; } /* mod dragdrop */ .placeholder { border:2px dashed #ccc; } .sort .hd h2 { cursor:move; } .ui-draggable-dragging { border:1px solid #cfc; } .sort_helper { margin:0 35px 0;border:2px dashed #82BF71; } /* mod playlist */ #content .songlst a:hover{background:none; color:#336699} .songlst td{border-bottom:1px dashed #ccc;height:23px;color:#999} .songlst .full{background:url(http://t.douban.com/pics/playicon.png) 0 -31px no-repeat; color:#777;} .songlst .selsong .full{background:url(http://t.douban.com/pics/playicon.png) -20px -5px no-repeat #eaf9e6; color:#777;} .songlst .full a{padding-left:21px;} .selsong{background:#EAF9E6} /* mod playlist -staggered*/ #content .songlst2 a:hover{background:none; color:#336699;table-layout:fixed} .songlst2 .tr-0{background-color:#FFFFFF;height:40px;} .songlst2 .tr-1{background-color:#EDEDED} .songlst2 td{border-bottom:1px dashed #ccc;height:23px;color:#999} .songlst2 .tr-0 .full{ color:#777;background:url(http://t.douban.com/pics/playicon.png) no-repeat 0px -24px;background-color:#FFFFFF;weight:300px;} .songlst2 .tr-1 .full{ color:#777;background:url(http://t.douban.com/pics/playicon.png) 0px -25px no-repeat; background-color:#EDEDED;} .songlst2 .selsong {} .songlst2 .full a{padding-left:21px;} .songlst2 .song{} /* error */ #errordiv { margin-bottom:20px; } .attn { color:#f30; } /* followers widget */ #db-followers ul { zoom:1;margin-left:-17px; } #db-followers li { float:left;width:36px;height:36px;overflow:hidden;margin:0 0 20px 17px; } #db-followers li img { width:36px;height:36px; } /* similer sites widget */ #db-similar-sites .item { margin-top:10px;padding-bottom:8px;border-bottom:1px solid #eee; } #db-similar-sites .item .likes { color:#999; } #db-similar-sites .item .title { margin:2px 0 0 0;; } /* similer groups widget */ #db-similar-groups li { width:33%;text-align:center;margin-bottom:20px; } /* shuo topic widget */ #db-shuo-topic .item { padding:5px 0; border-bottom:1px solid #f0f0f0; } #db-shuo-topic .shuo-image { float:left; overflow:hidden; } #db-shuo-topic .shuo-image img { vertical-align:middle; } #db-shuo-topic .shuo-content { margin-left:40px; } #db-shuo-topic .shuo-content .ft { font-size:10px; } #db-shuo-topic .shuo-content .ft a { color:#bbb; } #db-shuo-topic .shuo-content .ft a:hover { color:white; background-color:#bbb; } #db-shuo-topic .item .text { word-wrap:break-word; } /* mod room setting */ .icon-save, .icon-save:hover { display: inline-block; *display: inline; zoom: 1; width: 14px; height: 14px; background: url(../../pics/site/sp_all_4.png) no-repeat -72px -74px; line-height: 11em; overflow: hidden } .icon-save:hover { background-position: -72px -99px } .room-box .icon-save { position: absolute; top: 33px; left: 184px; cursor: pointer } .sp-fn-box { display: none; height: 178px; position: relative; background: #393939; padding: 18px; border-top: 3px solid #fff } .room-box, .widgets-box { display: inline-block; *display: inline; zoom: 1; vertical-align: top } .widgets-box { padding: 10px 5px 0 25px; width: 664px; border-left: 1px dashed #333 } .room-box { width: 180px; height: 166px; padding: 8px 25px 4px 8px; border-right: 1px dashed #4b4b4b; margin-right: -3px; *margin-right: 0 } .room-box input { color: #666; width: 139px; font-size: 12px; padding: 6px 30px 6px 6px; padding: 8px 30px 4px 8px\9; margin: 0 0 10px; border: 1px solid #fff } .widget-tips { cursor: pointer; display: block; font-size: 14px; color: #ccc; padding: 6px 10px; margin: 0 0 5px; background: #393939; border: 1px solid #393939 } .widget-tips em { float:right; margin:7px 0 0 0;margin:6px 0 0 0\9;*margin:-22px 10px 0 0;font-size:0;line-height:0;border-color:transparent transparent transparent #a4a4a4;border-style:dashed dashed dashed solid;border-width:4px 4px 4px 8px; height:0; width:0; line-height:23px;overflow:hidden; } .widget-tips:hover { color: #fff } .widget-tips:hover em { border-color: transparent transparent transparent #fff } .room-box .selected { cursor: pointer; display: block; font-size: 14px; color: #fff; padding: 6px 10px; background: #335333; border: 1px solid #245c06 } .room-box .selected em { border-color:transparent transparent transparent #fff } a.room-del:link, a.room-del:visited, a.room-del:active, a.room-del:hover { position:absolute;bottom:25px;left:158px;color:#ccc;outline:none;background:none;*white-space:nowrap; } a.room-design:link, a.room-design:visited, a.room-design:active, a.room-design:hover { position:absolute;bottom:25px;left:26px;color:#ccc;outline:none;background:none;*white-space:nowrap; } a.lnk-add:link, a.lnk-add:visited, a.lnk-add:active, a.lnk-add:hover { outline: none; color: #fff; padding: 5px 16px; background: -webkit-gradient(linear, 0 0, 0 100%, from(#4eb550), to(#236f19)); background: -moz-linear-gradient(-90deg, #4eb550, #236f19); background: url(../../pics/site/sp_all_4.png) repeat-x 0 -581px\9; border-radius: 15px; -webkit-border-radius: 15px; -moz-border-radius: 15px } a.lnk-add:hover { background: -webkit-gradient(linear, 0 0, 0 100%, from(#28a826), to(#18620e)); background: -moz-linear-gradient(-90deg, #28a826, #18620e); background-position: 0 -585px\9; } a.lnk-add:active { background: #1E872B; } @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0) { a.lnk-add:link, a.lnk-add:visited, a.lnk-add:hover { background: url(../../pics/site/sp_all_4.png) repeat-x 0 -581px; } a.lnk-add:hover { background-position: 0 -585px; } a.lnk-add:active { background: #1e872b; } } a.box-close:link, a.box-close:visited, a.box-close:hover, a.box-close:active { position: absolute; top: 10px; right: 15px; font: bold 13px Verdana; color: #999; background: none } a.box-close:hover { color: #eee } .widgets-slider { position: relative; clear: both; width: 660px; height: 130px; margin-bottom: 8px; overflow: hidden } .widgets-slider ul { position: absolute; overflow: hidden } .widgets-slider li { width: 150px; margin-right: 12px; margin-right: 12px\9; *margin-right: 15px } .widgets-slider .intro { height:62px;padding: 10px 20px; margin: 0 0 16px; background: #2d2d2d; border: 1px solid #444; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; } .widgets-slider h2 { font-weight: bold; font-size: 14px; color: #fff; margin-bottom: 5px } .widgets-slider p { color: #999; text-align: left } .slider-switcher { text-align: right } .switcher-dot { display: inline-block; *display: inline; zoom: 1; height: 8px; height: auto\9; vertical-align: middle\9; line-height: 13px; padding-right: 3px; *padding-right: 6px; padding-top: 3px\9; *padding-top: 5px } .switcher-dot li { cursor: pointer; width: 8px; height: 8px; margin-right: 4px; line-height: 10em; overflow: hidden; background: #a4a4a4; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; background: transparent url(../../pics/site/sp_all_4.png) no-repeat -1px -426px\9; } .switcher-dot .on { background: #4fb550; background: transparent url(../../pics/site/sp_all_4.png) no-repeat -1px -401px\9; } .switcher-prev, .switcher-next, .switcher-dis { display: inline-block; outline:none; *display: inline; zoom: 1; cursor: pointer; color: #3e3e3e; text-align: center; font-size: 18px; width: 30px; height: 30px; line-height: 30px; margin-left: 3px; background: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#ababab)); background: -moz-linear-gradient(-90deg, #fff, #ababab); background: url(../../pics/site/sp_all_4.png) repeat-x 0 -769px\9; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px } .switcher-dis { color: 696969; background: #515151 !important; } .switcher-prev:hover, .switcher-next:hover { background: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#eaeaea)); background: -moz-linear-gradient(-90deg, #fff, #eaeaea); background: url(../../pics/site/sp_all_4.png) repeat-x 0 -769px\9; } .switcher-prev:active, .switcher-next:active { background:#e2e2e2; } @media all and (min-width:0px) { .switcher-prev, .switcher-next { background: url(../../pics/site/sp_all_4.png) repeat-x 0 -769px; } .switcher-prev:active, .switcher-next:active { background:#e2e2e2; } } .txt-added { color: #fff } .txt-added em { display: inline-block; *display: inline; zoom: 1; margin-right: 6px; width: 12px; height: 8px; background: url(../../pics/site/sp_all_4.png) no-repeat 0 -126px } .box-loading { color: #fff; margin-top: 80px; *margin-top: 95px; text-align: center } /* user guide */ .user-guide { z-index: 9999; position: absolute; left: -25px; width: 180px; padding: 20px; margin: 16px 0 0 -5px; background: #1f2D20; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px } .user-guide h1 { font-weight: bold; font-size: 14px; color: #fff; margin-top: -5px } .user-guide span { float: right; color: #899d81; margin-top: -29px } .nav-items li.opt .user-guide em, .nav-items li.on .user-guide em { position: absolute; width: 0; height: 0; top: -15px; left: 30px; border-width: 0 15px 15px; border-style: solid; border-color: transparent transparent #1f2d20; background: none } .user-guide p { color: #b1bfab; line-height: 2; padding: 5px 0 10px } .nav-items li.opt .user-guide a, .nav-items li.on .user-guide a { display: inline-block; color: white; line-height: auto; text-align: center; padding: 0 16px } /* user list */ a.icon-star, a.icon-ban, a.icon-return, a.icon-transfer { display: inline-block; *display: inline; zoom: 1; line-height: 11em; overflow: hidden; width: 14px; height: 14px; background: url(../../pics/site/sp_all_4.png) no-repeat } a.icon-star { background-position: 0 -300px } a.icon-ban { background-position: 0 -350px } a.icon-return { background-position: 0 -250px } a.icon-transfer { background-position: 1px -1246px } a.icon-star:hover { background-position: 0 -325px } a.icon-ban:hover { background-position: 0 -375px } a.icon-return:hover { background-position: 0 -275px } a.icon-transfer:hover { background-position: 0 -1288px } .list-s .info span { display: block; margin-top: 3px } /* search input */ #sp-followers { *clear: both } .search-input { font-size: 12px; padding: 6px 3px; *padding: 4px 3px; padding: 4px 3px\9; color: #aaa; width: 160px; border: 1px solid #c0c0c0; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px; background: url(../../pics/site/icon_search.png) no-repeat 147px center } .search-submit { position: absolute; top: 2px; left: 141px; cursor: pointer; opacity: 0; filter:alpha(opacity=0); width: 25px; height: 25px } .main .user-search { float: right; position: relative; margin: -30px 30px 30px 0; *margin: -30px 30px 0 0 } .user-none { color: #999; font-size: 14px; margin: 20px 0 0 } .aside-title p { color: #999; font-size: 14px; margin-top: 15px } /* from douban.css */ a.redbutt { display: inline-block; *display: inline; zoom: 1; overflow: hidden; background: transparent url(http://t.douban.com/pics/redbutt.gif) no-repeat scroll right top;color:#ff7676; height: 24px; padding-right: 7px; font: normal 12px sans-serif; margin:0 5px 0 0; cursor: pointer } a.redbutt span { background: transparent url(http://t.douban.com/pics/redbutt.gif) no-repeat;display: block;padding: 4px 1px 4px 8px;line-height: 18px} html*a.redbutt span {[font-size:12px;padding-top:3px;] padding-top: 4px } a.redbutt:visited { color: #ff7676; text-decoration: none } a.redbutt:hover { background: transparent url(http://t.douban.com/pics/redbutt.gif) no-repeat right -24px;color:white;} a.redbutt:hover span, a.redbutt:hover input { background-position: left -24px;color:white} /* space setting - home */ #sp-setting-form { color: #5c6a6e } #sp-setting-form .item { margin-bottom: 2ex } #sp-setting-form .item-submit { padding: 10px 0 0 90px } #sp-setting-form .item-submit .bn-flat-hot { margin-right: 15px } #sp-setting-form .tips { display: block; color: #999; margin: 3px 0 0 90px } #sp-setting-form .tips em { color: #f66 } #sp-setting-form .form-tips { margin: 0 0 5px 90px; width: 330px } #sp-setting-form .form-tips em { color: #108fbe } #sp-setting-form h2 { margin: 50px 0 30px } #sp-setting-form p { margin: 15px 0 5px 90px } #sp-setting-form label { font-size: 14px; width: 90px } #sp-setting-form input { margin-right: 0 } #sp-setting-form textarea { margin-bottom: -6px } #sp-setting-form .sp-input, #sp-setting-form .sp-desc, #sp-setting-form .sp-desc-large { width: 330px; color: #666; font-size: 12px; border: 1px solid #cdd5cf; padding: 5px; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px } #sp-setting-form .sp-desc { height: 60px } #sp-setting-form .sp-desc-large { height: 120px } .badge { position: absolute; top: -7px; right: -17%; font-weight: normal; line-height: 1; padding: 2px 5px; color: #fff; background: #b01; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px; z-index: 999} /* notification */ .notification-items ul.old{color:#808080;} .notification-items li{padding:6px 10px 4px;} .notification-items li.date{font-size:14px;color:#060;padding-left:0;} .notification-items ul.new li{background:#ffe;} .notification-items ul.new li.date{background:none;} /* new tabs bar */ .tabsbar { text-align: right; padding: 5px 10px 0; margin: 0 0 15px; background: #f5f5f5; border-bottom: 1px solid #e7e7e7 } .tabsbar li { display: inline-block; *display: inline; zoom: 1; padding: 4px 10px 1px; margin: 0 0 -1px 3px } .tabsbar .current { color: #666; border-width: 1px; border-style: solid; border-color: #d7d7d7 #d7d7d7 #fff; border-radius: 5px 5px 0 0; background: #fff; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0 } /* mod artists */ .artist-site-list li, .music-list li { width:24%;margin-bottom:7px;color:#999; } .extra-nav-link { font-size:12px;float:right; } /* local site map */ /* old miniblog rules */ .miniblog-content .miniblog { margin-bottom:20px; } .miniblog-content .notify input {margin-top:9px} .miniblog-content .mbt{ padding: 0; margin: 0; clear: both; } .miniblog-content .mbt tr{ vertical-align: top; } .miniblog-content .mbtl { float: left; width: 55px; margin: 8px 7px 0 0; padding: 0; } .miniblog-content .mbtr { border-bottom:1px solid #eee; padding: 5px 0; min-height: 55px; overflow: hidden;margin:5px 0 5px 0; } .miniblog-content .mbtr2 {margin-bottom:20px;overflow: hidden;} .miniblog-content ul .mbtr2 { border-bottom:1px solid #ddd; } .miniblog-content .mbtrdot {border-bottom:1px solid #eee; padding: 4px 0; min-height: 55px; overflow: hidden;} .miniblog-content .mbtrmini{border-bottom:1px dashed #ddd; padding: 4px 0 4px 12px;word-wrap:break-word;background:url(http://t.douban.com/pics/listdot.gif) 0 8px no-repeat;} .miniblog-content .mbtrmini .quote { display:inline; } * html .miniblog-content .mbtr{ word-break:break-all; height: 55px; overflow: visible; } * html .miniblog-content .mbtrdot{ word-wrap:break-word;word-break:break-all; height: 55px; overflow: visible; } * html .miniblog-content .mbtrmini{ word-break:break-all; overflow: visible; } .miniblog-content .mbdiv { padding-top: 10px 0 6px 0; border-top:1px dashed #DDDDDD; } .miniblog-content .actfromfri .event_long{width:65%} #album{overflow:hidden;width:100%;} #sp-talk .attn { margin-top:10px; } .miniblog-content .broadsmr{padding: 5px 24px; color:#999;} .miniblog-content .quote{overflow:hidden; padding:0 24px 5px 15px;margin:8px 0 0 26px; background:url(http://t.douban.com/pics/quotel.gif) no-repeat left 4px;width:auto;*zoom:1;word-wrap:break-word; } .miniblog-content .quote span.inq{ display:inline;background:url(http://t.douban.com/pics/quoter.gif) no-repeat right bottom; color:#333; padding-right:15px;display:inline-block; } .miniblog-content .broadimg{border:1px solid #ddd;float:right;margin-left:14px;} .miniblog-content .blst{padding:0;margin:0} .miniblog-content .blst li{border-top:1px solid #ddd;padding:6px 0} .miniblog-content .videothumb {margin-left:24px} .miniblog-content .vthumbwrap{width:130px;height:97px;text-align:center;position:relative;} .miniblog-content .vthumbwrap img{width:130px;height:97px} .miniblog-content .recreplylst { padding-left:42px; } .miniblog-content .recreplylst .simplelst{ border-bottom: 1px dashed #ccc; margin: 4px 0 4px -14px; } .miniblog-content .timeline-album { float: left; margin: 8px 12px 8px 0 } .miniblog-content .timeline-album-rec { float: left; margin: 8px 14px 0 0 } .miniblog-content .indentrec{margin-left:24px; line-height:1.6em;color:#333;} .miniblog-content .mbtr a.gact { float:right;margin-left:1em;*margin-top:-1em; } .miniblog-content a.gact:link, .miniblog-content a.gact:visited { color:#ccc; } .miniblog-content a.gact:hover, .miniblog-content a.gact:active { color:#fff;background:#ccc; } .miniblog-content .pl { color:#666;line-height:1.5; } .miniblog-content div.full-addr { color: #999; margin-bottom: 5px; } .miniblog-content .site-follow { float:right} /* dou */ .donated-success { color:#5a7e59;background:url(../../pics/ic_dz.png) no-repeat 0 50%;padding-left:12px; } .donated-fail { color:#fab0b6; } .dou-tip { width:230px;text-align:center; } /* donate style -> link .btn-donate { display:inline-block;*display:inline;zoom:1;padding:0 8px;vertical-align:middle;*vertical-align:baseline;height:19px;line-height:19px;line-height:21px\9;overflow:hidden;border:1px solid #edceba;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; } a.btn-donate:link, a.btn-donate:visited { border-color:#f2ece7;background-color:#fff6ee;color:#99776b; } a.btn-donate:hover, a.btn-donate:active { border-color:#edceba;background-color:#fff0e2 !important;color:#99776b !important; } */ .dou-tip .frm-item { position:relative;margin-bottom:5px;text-align:left;color:#666; } .dou-tip .frm-item label { position:absolute;left:4px;top:0;top:2px\9;width:100%;line-height:1.6;cursor:text;color:#999; } .dou-tip .frm-item input { padding:2px;width:96%;border:1px solid #ddd;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px; } .dou-tip .frm-item input:focus { border-color:#aaa; } .dou-tip b { font-weight:300;color:#ff201a; } .dou-tip p { color:#666;margin:0;text-align:left; } .dou-tip .frm-submit .bn-flat { margin-right:1em; } .dou-tip .bn-flat input { height:22px;padding:0 5px; } .widget-dou-donation { background-color: #F5F6F7; padding: 20px 25px; overflow: hidden; zoom: 1; } .widget-dou-donation .pic, .widget-dou-donation .text { display: inline-block; *display: inline; zoom: 1; vertical-align: top; } .widget-dou-donation .pic { text-align: center; background: url('../../pics/site/dou_dounation_logo.png') no-repeat 0 0; width: 120px; height: 60px; } .widget-dou-donation .text { margin-left: 20px; width: 370px; } .widget-dou-donation .text .bn-flat-hot { float: right; margin-top: 20px; } /* temp for movie schedule */ .add-movie-schedule{text-align:right;} /* for wallpost widget */ .wgt-wall{width:545px;margin-bottom:20px;} .wgt-wall form{position:relative; } .wgt-wall-list li{ width:100%; float:left; margin:20px 0 0 0; position:relative; } .wgt-wall-list .pic{ margin:0 0 0 10px; float:left; } .wgt-wall-list .pic, .wgt-wall-list .pic img{ width:35px; height:35px; background:#ccc; } .wgt-wall-list .content{ background:#f2f2f2; padding:8px 10px; width:460px; float:right; -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; } .wgt-wall-list .x1{position:absolute;right:479px;top:10px;border-color:transparent #f2f2f2 transparent transparent;border-style:dashed solid dashed dashed;border-width:10px 10px 0 0;font-size:0;height:0;width:0;overflow:hidden;} .wgt-wall-list .datetime{color:#999;margin:0 5px;} .wgt-wall-list .author{margin:0 5px 0 0;} .wgt-wall .gact{position:absolute;right:10px} .wgt-wall .gact a{color: #BBBBBB} .wgt-wall .recreplylst { padding:5px 0 0 120px;clear:both; } .wgt-wall .recreplylst .simplelst{ margin:0; } .wgt-wall .recreplylst .text{width: 330px;margin:5px 5px 0 0;} .wgt-wall .recreplylst .show{display:none} .wgt-wall .pl {color:#666;line-height:1.5;} .wgt-wall-talk textarea.text, .wgt-wall-talk label{width:523px;height:16px; padding:6px 10px;line-height:16px; } .wgt-wall-talk label{float:none;position:absolute; top:2px;left:2px; padding:5px 9px;color:#b4b4b4;background:#fff;} .wgt-wall-talk .bn-flat{ display:none;float:right;margin-top:4px;} .wgt-bazaar .desc{padding:10px 80px 0 0;} .wgt-bazaar .desc a{font-size:14px;float:right;} .wgt-bazaar .desc .func{position:relative;zoom:1;} .wgt-bazaar .desc .func a.lnk-flat{border:0;height:auto;line-height:normal;padding:0;background:none;display:inline;color:#52946F;} .wgt-bazaar .desc .func .blocktip{right:0} .wgt-bazaar .quote {width:300px;float:left;} .wgt-bazaar .quote span.inql { background: url(../../pics/quotel.gif) no-repeat left 4px; color:#666; padding-right:10px; display:inline-block;position:relative; } .wgt-bazaar .quote span.inqr { background: url(../../pics/quoter.gif) no-repeat right 4px; color:#666; padding-left:10px; display:inline-block } .wgt-bazaar .post-list{clear:both;padding-top:10px;padding:10px;} .wgt-bazaar .post-list td{padding:10px 0;} .wgt-bazaar .post-list tfoot td{border-bottom:0;} .wgt-bazaar .good-name img{width:60px;height:40px;vertical-align:middle;margin-right:10px;} .wgt-bazaar .list-b .v_sync{ display:block;width:16px;height:16px; background:url(../../pics/site/bazaar/v-icon.png) no-repeat top right;cursor:default;} .wgt-bazaar .list-b i{font-style: normal; padding: 0 4px 0 0;} .wgt-bazaar-create{ width:580px; overflow:hidden; } .wgt-bazaar-create h3{ font-size:14px; margin:10px 0 20px 0; } .wgt-bazaar-create ul{ width:600px; padding:0; } .wgt-bazaar-create li{ width:142px; height:160px; padding:20px; background:#F7F9F9; margin:0 15px 0 0; float:left; position:relative; text-align:center; border-radius: 6px;-webkit-border-radius: 6px;-moz-border-radius: 6px; } .wgt-bazaar-create li p{ text-align:left; color:#666; } .wgt-bazaar-create li p strong{ font-weight:500; color:#f00; } .wgt-bazaar-create li .btn{ position:absolute; bottom:16px; width:140px;padding:0; left:20px; } .wgt-bazaar-good .meta .datetime{ color:#999; margin:0 15px 0 0; } .wgt-bazaar-good .meta .doumail { margin-left: 15px; } .wgt-bazaar-good .intro{ margin:20px 0 0 0; } .wgt-bazaar-good .intro .pic, .wgt-bazaar-good .intro .pic img{ width:215px;float:left; } .wgt-bazaar-good .intro .info{ width:345px; float:right; font-size:14px; } .wgt-bazaar-good .intro .info p{ margin:0 0 18px 0;; } .wgt-bazaar-good .intro .info .v_sync{padding:0 0 0 18px;background:url(../../pics/site/bazaar/v-icon.png) no-repeat top left;} .wgt-bazaar-good .intro .status{font-size:12px} .wgt-bazaar-good .intro .status .stat{ float:right; } .wgt-bazaar-good .intro .status form{display:inline;} .wgt-bazaar-good .intro .status form a input{display:inline;border:0;background:none;padding:0;margin:0;color:#336699;} .wgt-bazaar-good .intro .status form a:hover input{color:#fff;background:#336699;} .wgt-bazaar-good .intro .admin-lnks{text-align:right;font-size:12px;} .wgt-bazaar-good .rec-sec { text-align:right;clear:both;overflow:hidden;float:none; } .wgt-bazaar-good .rec-sec .rec{float:right;} .wgt-bazaar-good .rec-sec .rec-btn{text-align:center} .wgt-bazaar-good .mod{ margin:25px 0;padding:0; } .wgt-bazaar-good .good-photo li{ margin:15px 15px 0 0; float:left;width:100px;height:100px;overflow:hidden; } .wgt-bazaar-good .good-photo li img{ width:100px;} .wgt-bazaar-good .tipbox{ border: 1px solid #CCCCCC; color: #999999; line-height: 180%; padding: 10px; } .wgt-bazaar-good .tipbox p { padding-left: 24px;} .wgt-bazaar-good .tipbox h3 { padding-top: 6px;} .wgt-bazaar-buy fieldset{ margin:0 0 0 0; } .wgt-bazaar-buy legend{ line-height:30px; font-size:16px; border-bottom:1px solid #eee; padding:0; color:#000; display:block; width:100%; } .wgt-bazaar-buy label{ width:80px; padding-right:10px; text-align:right; } .wgt-bazaar-buy fieldset p{ clear:both;line-height:25px; margin:12px 0; position:relative; } .wgt-bazaar-buy fieldset p em{ color:#f00; position:absolute; top:2px;left:80px; } .wgt-bazaar-buy fieldset p span strong{ color:#f60; font-weight:bold; font-size:14px; } .wgt-bazaar-buy fieldset p .note{ color:#999; display:block; } .wgt-bazaar-buy fieldset p.error{ color:#f00; } .wgt-bazaar-buy fieldset p select{ width:100px; margin:0 4px 0 0; } .wgt-bazaar-buy fieldset input{ height:16px; padding:3px;border: 1px solid #CCCCCC; } .wgt-bazaar-buy fieldset textarea{ float:right;width:482px; } .wgt-bazaar-buy fieldset .empty{ color:#999; } .wgt-bazaar-buy fieldset .invalid{ border-color:#f00; } /* multiupload photos */ .photo-complete { margin-bottom: 15px; padding: 15px 20px 1px; background: #f8f8f8 } .photo-item { margin-bottom: 15px } .photo-item .cover, .photo-item .intro { display: inline-block; *display: inline; zoom: 1 } .photo-item .cover { margin-right: 10px; vertical-align: top } .photo-item .cover a { text-align: center; width: 100px; display: block; margin-bottom: -3px } .photo-item .cover a:hover { background: none } .photo-item .choose-cover { text-align: center } .photo-item .intro p { text-align: right; margin: 0 } .photo-item .intro textarea { color: #666; width: 414px; margin-bottom: 3px\9; padding: 5px; height: 90px; border: 1px solid #ddd } .submit-area { text-align: center } /* fav */ .btn-fav { display:inline-block;*display:inline;zoom:1;padding:0 8px 0 30px;vertical-align:middle;*vertical-align:baseline;height:19px;line-height:19px;line-height:21px\9;overflow:hidden;border:1px solid #edceba;margin-left:4px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; } a.btn-fav:link, a.btn-fav:visited { border-color:#f2ece7;background-color:#fff6ee;color:#99776b; } a.btn-fav:hover, a.btn-fav:active { border-color:#edceba;background-color:#fff0e2 !important;color:#99776b !important; } .fav-add,.fav-add:link, .fav-add:hover { background:url(../../pics/ic_like.png) no-repeat 8px 3px; } .fav-cancel,.fav-cancel:link, .fav-cancel:hover { background:url(../../pics/ic_like.png) no-repeat 8px -17px; } .fav-num { display:inline-block;*display:inline;zoom:1;color:#666; } .fav-userlist { position:absolute;width:210px;left:50%;padding:0 0 20px 10px;background:#fff;border:1px solid #999;-moz-box-shadow:0 0 4px rgba(0,0,0,.2);-webkit-box-shadow:0 0 4px rgba(0,0,0,.2);box-shadow:0 0 4px rgba(0,0,0,.2);zoom:1; } .fav-userlist .bd { width:97%; } .fav-userlist ul { margin-top:-2px; } .fav-userlist li { margin-top:2px; } .fav-userlist .pic { margin-right:8px;*display:inline;zoom:1; } .fav-userlist .pic img { vertical-align:middle; } .fav-userlist .hd { position:relative;text-align:right;padding:5px 10px;line-height:1.2;zoom:1; } .fav-userlist .arrow { position:absolute;width:12px;height:7px;overflow:hidden;left:12px;top:-6px;background:url(../../pics/bg_popup_arr.png) no-repeat 0 0; } .arrow-bottom .arrow { top:auto;bottom:-6px;_bottom:-7px;background:url(../../pics/bg_popup_arr.png) no-repeat 0 -11px; } /* sns bar */ .sns-bar { clear:both;overflow:hidden;margin-bottom:20px;padding-top:20px;color:#666;*display:inline-block; } .sns-bar-fav { float:right; } .sns-bar-donate { float:left;margin-right:15px; } .sns-bar-rec { float:left; width:300px;} .sns-bar form, .sns-bar .rec-sec { float:none;display:inline-block;*display:inline;zoom:1; } /* tribe相关 */ .tribe-from { font-size:18px;font-weight:400; } .tribe-info-mod { padding:10px 20px;line-height:1.2;color:#666;background:#efefef; } .tribe-info-mod .tribe-name, .tribe-info-mod .tribe-name:link,.tribe-info-mod .tribe-name:visited,.tribe-info-mod .tribe-name:hover { font-size:16px;margin:0 5px; } /* 分享小站 */ .share { margin-top: 16px; height: 20px; } .share strong.title { font-weight: 400; float: left; margin-right: 16px; vertical-align: middle; height:16px; line-height:16px; font-size: 14px; } .share span { background-image:url("../../pics/site/share_btns.png"); background-repeat:no-repeat; margin-right: 14px; display:block; height:16px; width:16px; float:left; } .share span a,.share span a:hover {display:block; height:16px; width:16px;background:none; } .share span.shuo { background-position:0; } .share span.sina { background-position:-16px; } .share span.tqq { background-position:-32px; }
12ik
trunk/app/site/css/site/common.css
CSS
oos
70,874
/* mod: title(head) */ #sp-setting { margin: 0 80px 0 60px } #sp-setting h2 { color: #666; margin-bottom: 8px } #sp-setting .selected { border: 1px solid #333 } .sys-bg-list { margin-bottom: 6px } .sys-bg-list li { cursor: pointer; margin: 0 5px 5px 0; *margin-bottom: 2px; border: 1px solid #fff } .sys-bg-list img { border: 1px solid #fff; margin-bottom: -5px } .type-nav { position: relative; height: 24px; margin: -33px 0px 25px;; margin: -33px 0 15px\9; *margin: -33px 0 0; text-align: right } .type-nav li { display: inline-block; *display: inline; zoom: 1; margin-right: 10px } .type-nav a { display: inline-block; padding: 3px 8px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px } /* space setting - design */ .sp-design-opt { margin: 0 0 10px } .sp-design-opt .btn-large { margin-right: 5px } .sp-design-opt label { display: block; float: none; width: auto; color: #999 } .btn-large, .btn-large-active { display: inline-block; *display: inline; zoom: 1; cursor: pointer; outline: none; outline-style: none; color: #666; width: 221px; height: 40px; line-height: 40px; text-align: center; font-size: 14px; border: 1px solid #d8dad8; background: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e4e4)); background: -moz-linear-gradient(-90deg, #fff, #e6e4e4); background: url(../../pics/site/sp_all_4.png) repeat-x 0 -650px\9; border-radius: 6px; -webkit-border-radius: 6px; -moz-border-radius: 6px } .btn-large:hover { background: -webkit-gradient(linear, 0 0, 0 100%, from(#f9f9f9), to(#e0e0e0)); background: -moz-linear-gradient(-90deg, #f9f9f9, #e0e0e0) } .btn-large:active { background: #ececec } .btn-large-active, .btn-large-active:hover { color: #666; border: 1px solid #e8eae8; color: #cbcbcb; background: #f7f7f7 } @media all and (-webkit-min-device-pixel-ratio:10000),not all and (-webkit-min-device-pixel-ratio:0){ .btn-large, .btn-large-active { background: url(../../pics/site/sp_all_4.png) repeat-x 0 -650px; } } #sp-bg-upload { margin: 15px 0 8px } .sp-bg-preview { margin-top: 10px } .sp-bg-preview .selected { border: 1px solid #999 } .sp-bg-show { float: left; width: 105px; height: 72px; cursor: pointer; margin-right: 6px; border: 1px solid #fff; background: #edf0ed; overflow: hidden } .sp-bg-show img { width: 105px } .sp-bg-none { float: left; width: 105px; height: 72px; border: 1px solid #fff; cursor: pointer; background: #f0f0f0 url(../../pics/site/no_repeat.png) no-repeat center center } .sp-bg-sel { clear: both; padding-top: 7px } .sp-bg-sel label { margin-right: 18px } .sp-theme-sel { margin-top: 18px } .sp-theme-sel li { display: inline-block; *display: inline; zoom: 1; width: 80px; margin-right: 10px } .sp-theme-sel a { display: block; position: relative; overflow: hidden; outline: none; height: 74px; border: 1px solid #999; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px } .sp-theme-sel em { position: absolute; display: inline-block; *display: inline; zoom: 1; color: #666; font-size: 9px; text-align: center; width: 11px; height: 11px; line-height: 12px; _line-height: 14px; overflow: hidden; background: #fff; border: 1px solid #999; right: 3px; bottom: 3px } .sp-theme-sel .kind { display: block; text-align: center; color: #999; margin-bottom: 5px } .sp-setting-btn { margin-top: 40px; text-align: center } .sp-setting-btn .bn-flat-hot { margin-right: 15px } #sp-bg-modify, #sp-theme-modify, #bg-upload-form { display: none } #sp-bg-repeat { margin-top: 8px } .sp-bg-preview label { display: inline } /* space setting - home */ #sp-setting-form { color: #5c6a6e } #sp-setting-form .item { margin-bottom: 2ex } #sp-setting-form .item-submit { padding: 10px 0 0 90px } #sp-setting-form .item-submit .bn-flat-hot { margin-right: 15px } #sp-setting-form .tips { display: block; color: #999; margin: 3px 0 0 90px } #sp-setting-form .tips em { color: #f66 } #sp-setting-form .form-tips { margin: 0 0 5px 90px; width: 330px } #sp-setting-form .form-tips em { color: #108fbe } #sp-setting-form .sp-desc { height: 60px } #sp-setting-form h2 { margin: 50px 0 30px } #sp-setting-form p { margin: 15px 0 5px 90px } #sp-setting-form label { font-size: 14px; width: 90px } #sp-setting-form .sp-input, #sp-setting-form .sp-desc { width: 330px; color: #666; font-size: 12px; border: 1px solid #cdd5cf; padding: 5px; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px } .lnk-tips { color: #999; margin: 20px 0 0 } .sp-icon-b, .sp-icon-s { vertical-align: top; margin-right: 10px } .sp-icon-s { width: 48px; height: 48px } /* space setting - icon */ .sp-icon, .sp-icon-opt { display: inline-block; *display: inline; zoom: 1; vertical-align: top } .sp-icon { width: 180px; margin-right: 20px } .sp-icon-opt { width: 295px } .sp-icon-opt h2 { font-size: 13px } .sp-icon-opt li { height: 180px; margin-bottom: 15px; border-bottom: 1px dashed #ddd } .sp-icon-opt p { color: #666 } .sp-icon-opt p.tips { color: #999; margin: -8px 0 8px } .sp-icon-opt .last { border: none } .submit-icon { margin-top: 30px } .submit-icon .bn-flat-hot { margin-right: 15px } .icon-wrapper { float: left; margin-right: 10px; display: block; width: 48px; height: 48px; overflow:hidden } #upload-tips { color: #f66 } /* space setting - type */ .type-intro { color: #999; font-size: 14px } .type-intro li { margin-top: 30px } .type-intro p { line-height: 23px; margin-top: 8px } .setting-list li { margin-bottom: 8px } .setting-list label { float: none; width: auto; margin-left: 5px } #setting-widgets {margin-top:20px; display: none; } .log-list h3 { clear: both; padding-top: 10px; font-size: 14px; border-bottom: 1px solid #ddd; } .log-list li { margin-bottom: 15px; } .log-list .pic, .log-list .info { display: inline-block; *display: inline; zoom: 1; padding-top: 15px; } .log-list .pic { vertical-align: top; width: 50px; margin-right: 16px; _float:left } .log-list .info { width: 436px } .log-list .info p { line-height: 18px; margin-bottom: 15px } .log-list .sep { border-top: 1px solid #eee } #dou-balance { margin-bottom: 25px } #dou-balance em { color:#f30; } #dou-details table { table-layout:fixed; width:100%; } #dou-details th, #dou-details td { padding:4px 0;border-bottom:1px dashed #dedede;color:#666; } #dou-details th { color:#333; white-space:nowrap; } #dou-details .bd { margin-bottom:10px; } #dou-details .ft { text-align:right; font-size:14px; } #dou-details .td-user { min-width:7em; _width:7.5em; padding-right:8px; } .td-in, .td-out, .td-datetime { width:3em; } .td-datetime { text-align:left; } .td-type { width:6em; } .td-datetime { width:7em; } .td-note { width:6em; _width:auto; } #sp-setting-form .item label { line-height: 1 } #sp-setting-form .writer-setting label { width:9em; } #sp-setting-form .writer-setting .note { padding-left:128px; } form .item-group label { float:none;width:auto;font-size:12px;margin-right:1ex; } form .item-group input { margin:0; } #sp-setting-form .item-group label { font-size:12px; } .feedback-tips {color:#333;} #sp-setting-form .item .long { margin: 10px 0; font-size: 14px } #sp-setting-form .item .sp-desc { margin-bottom: 5px; } #sp-setting-form .tips-error { color: #fe2617 } #sp-setting-form .validate-wrap { display: inline; position: absolute; line-height: 25px; } #sp-setting-form .validate-option { display: inline; color: #666666 } #sp-setting-form .validate-error { color: #fe2617 } #sp-setting-form .tips-error, #sp-setting-form .validate-error, #sp-setting-form .validate-option { background: url(/pics/icon/tips_arrow.gif) no-repeat; display: block; line-height: 25px; padding-left: 10px; margin-left: 10px;} #sp-setting-form .tips-error, #sp-setting-form .validate-error { background-position: 0 -46px } #sp-setting-form .validate-option { background-position: 0 9px }
12ik
trunk/app/site/css/site/setting.css
CSS
oos
7,910
/* row */ .row { overflow:hidden; margin-bottom:20px; } .row.note-title label.field, .row.note-text label.field { font-size:14px; } #note_title, #note_text { width:582px; margin-top:5px; padding:3px; border:1px solid #ccc; line-height:1.62; } #note_text { resize:vertical; } #note_title:focus, #note_text:focus { border-color:gray; } #note_title { font-size:14px; } #note_text { height:400px; resize:vertial; font-size:13px; } .markdown-tip { text-align:right; } .markdown-tip a { display:inline-block; *display:inline; zoom:1; padding:3px 8px 2px; background-color:#e6e6e6; color:#939393; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; } .markdown-tip a:hover { color:#666; } .note-privacy label, .note-reply label { margin-right:11px; } .note-privacy input, .note-reply input { position:relative; top:-2.5px; margin-right:3px; vertical-align:middle; } .row.footer { margin-top:50px; } .row.footer .cancel-note { float:right; } /* control-panel */ .control-panel { float:right; overflow:hidden; margin-bottom:5px; } .control-panel li { float:left; position:relative; } .control-panel .lnk-flat { position:relative; padding-right:12px; padding-left:12px; } .image-btn { margin-right:-1px; } .image-btn:hover { z-index:2; } .video-btn { margin-right:-1px; } .video-btn:hover { z-index:2; } .image-btn .lnk-flat { -moz-border-top-right-radius:0; -webkit-border-top-right-radius:0; border-top-right-radius:0; -moz-border-bottom-right-radius:0; -webkit-border-bottom-right-radius:0; border-bottom-right-radius:0; } .link-btn .lnk-flat { -moz-border-top-left-radius:0; -webkit-border-top-left-radius:0; border-top-left-radius:0; -moz-border-bottom-left-radius:0; -webkit-border-bottom-left-radius:0; border-bottom-left-radius:0; } .video-btn .lnk-flat { -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; } /* thumbnail */ .images, .videos { display:none; margin-bottom:20px; } .images { zoom:1; border-bottom:1px dashed #ccc; } .image-item, .video-item { overflow:hidden; position:relative; zoom:1; margin-bottom:20px; padding:10px; border:1px solid #ccc; background-color:#f3f3f3; } .image-item label, .video-item label { color:#666; } a.delete-image, a.delete-video { position:absolute; right:10px; top:10px; display:block; width:16px; height:16px; text-align:center; vertical-align:middle; font-weight:bold; line-height:16px; color:#999; } a.delete-image:hover, a.delete-video:hover { color:#333; background-color:transparent; text-decoration:none; } .thumbnail { float:left; margin-right:20px; width:140px; overflow:hidden; } .image-desc, .image-layout, .video-info { margin-left:160px; } .image-thumb, .video-thumb { margin-top:10px; position:relative; zoom:1; } .video-thumb { height:96px; } .image-desc textarea { width:385px; height:60px; resize:vertical; } .image-desc textarea, .video-info div { margin-top:10px; } .image-layout label { margin-right:11px; } .image-layout input { position:relative; top:-2.5px; vertical-align:middle; margin-right:3px; } .video-info .video-title, .video-info .video-url { display:block; } /* 图片上传 dialog */ #upload-area { margin-bottom:20px; } #upload-area label.field { color:#666; } .drag-drop { border:2px dashed #ccc; color:#666; text-align:center; font-size:18px; line-height:1.62; } .drag-drop .text { display:inline-block; *display:inline; zoom:1; margin:70px 0; } .upload-tip { margin-bottom:20px; color:#666; } .upload-error { display:none; margin-bottom:20px; color:#f30; } .upload-info { display:none; zoom:1; } .upload-info .header, .upload-info .footer { color: #777; padding:3px; zoom:1; } .upload-info .footer { _margin-top:0; } /* fix IE6 bug */ .upload-info .slot { padding:3px; } .upload-info .header span, .upload-info .footer span { display:inline-block; *display:inline; zoom:1; } .upload-info .header .image-name { padding-left:20px; width:415px; } .upload-info .header .image-size { width:80px; text-align:center; } .upload-info .header .image-delete { width:60px; text-align:center; } .upload-info .footer .total-num { padding-left:20px; width:425px; } .upload-info .footer .num-warning { display:none; padding-left:15px; color:red; } .upload-info .footer .total-size { text-align:center; width:145px; } .upload-info .header { border-bottom:1px solid #d0d0d0; } .upload-info .slot { border-bottom:1px solid #ccc; } .upload-info a.image-delete { display:inline-block; *display:inline; zoom:1; opacity:0.6; filter:alpha(opacity:60); } .upload-info a.image-delete:hover { background-color:transparent; opacity:1; filter:alpha(opacity:100); } .slot span { display:inline-block; *display:inline; zoom:1; } .slot .image-name { padding-left:10px; width:425px; } .slot .image-size { width:80px; text-align:center; } .slot .image-delete { width:60px; text-align:center; } .slot.image-loading { position:relative; background:none; } .slot .basic-loading { width:130px; text-align:center; color:#999; background:url(/pics/loading.gif) no-repeat 25px 1px;} .slot.image-loading .progress { position:absolute; top:0; left:0; height:100%; width:0px; border:1px solid #c0d8c2; border-right:2px solid #36824b; background-color:#cbe2cd; opacity:0.6; filter:alpha(opacity:0.6); } .slot.error { border:1px solid #fdbfbc; border-top:none; background-color:#fdd1ce; } .slot.error .image-name { width:180px; _width:183px; } .slot.error .image-error { color:red; width:241px; _width:243px; } .slot.done { background:#f8f4cd; } #image-slots { zoom:1; } #noflash { font-size:12px; color:#f30; } /* 视频嵌入 dialog */ .video-tip { margin-bottom:30px; color:#666; } .video-dlg .row label.field { display:block; } .video-dlg .row input { width:355px; margin-top:5px; line-height:1.62; padding:3px; border:1px solid #ccc; } .video-dlg .row input:focus { border-color:gray; } .video-dlg .msg { display:none; width:355px; padding:4px; margin-top:5px; background-color:#f4f4f4; color:#999; } .video-dlg .msg a.retry { color:#369; } .video-dlg .msg a.retry:hover { color:#fff; background-color:#369; } /* 链接嵌入 dialog */ .link-dlg .row label.field { display:block; } .link-dlg .row input { width:355px; margin-top:5px; padding:3px; border:1px solid #ccc; font-size:13px; lineheight:1.62; } .link-dlg .row input:focus { border-color:gray; } /* footer */ .btn { padding:5px 16px; *padding:4px 8px; height:27px; cursor:pointer; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; color:#fff; background-color:#3fa156; border:1px solid #528641; } .btn:hover { background-color:#4fca6c;border-color:#6aad54; } .btn:active { background-color:#3fa156;border-color:#528641; } /* 错误信息模块 */ .error-msg { color:red; } .error-msg.tip { position:absolute; padding-left:10px; background:url(/pics/icon/tips_arrow.gif) no-repeat; } .error-msg.tip { background-position: left -50px; } .error-msg.board { margin-bottom:15px; } /* 预览模块 */ #preview .note-hd h3 { color:#060; background:none; margin-left:0; margin-bottom:0; height:auto; line-height:1.4; } #preview .note-ft { text-align:right; } #preview .note-hd, #preview .note-bd, #preview .note-ft { margin-bottom:20px; } .preview-footer { margin-top:50px; margin-bottom:20px; } /* tip */ .autosave-tip { color:#999; }
12ik
trunk/app/site/css/site/create_note.css
CSS
oos
7,278
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #692941 } /* site backgound */ .bg { background: #e1f2f3 url(../../../../pics/site/theme/2/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #e06072 } /* tab */ .nav-items li { background: #fae8c1 } .nav-items li a:link, .nav-items li a:visited { color: #765754 } .nav-items li.on { border-color: #fae8c1 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #c14a71 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #c14a71 } /* for colorPicker */ #theme-bg { background-color: #e1f2f3 } #theme-banner { background-color: #e06072 } #theme-tag-bg { background-color: #fae8c1 } #theme-tag-link { background-color: #765754 } #theme-link { background-color: #c14a71 }
12ik
trunk/app/site/css/site/theme/2/core.css
CSS
oos
1,070
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #2b4e5a } /* site backgound */ .bg { background: #b5c2c9 url(../../../../pics/site/theme/4/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #e3ecf0 } /* tab */ .nav-items li { background: #94becb } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #94becb } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #3c859c } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #3c859c } /* for colorPicker */ #theme-bg { background-color: #b5c2c9 } #theme-banner { background-color: #e3ecf0 } #theme-tag-bg { background-color: #94becb } #theme-tag-link { background-color: #fff } #theme-link { background-color: #3c859c }
12ik
trunk/app/site/css/site/theme/4/core.css
CSS
oos
1,064
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #383838 } /* site backgound */ .bg { background: #383838 url(../../../../pics/site/theme/13/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #f5b325 } /* tab */ .nav-items li { background: #ababa1 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #ababa1 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #b18526 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #b18526 } /* for colorPicker */ #theme-bg { background-color: #383838 } #theme-banner { background-color: #f5b325 } #theme-tag-bg { background-color: #ababa1 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #b18526 }
12ik
trunk/app/site/css/site/theme/13/core.css
CSS
oos
1,065
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #383838 } /* site backgound */ .bg { background: #ebf2db url(../../../../pics/site/theme/5/bg.png) } /* top banner */ .sp-nav { background-color: #5a9475 } /* tab */ .nav-items li { background: #8bbd86 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #8bbd86 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #52946f } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #52946f } /* for colorPicker */ #theme-bg { background-color: #ebf2db } #theme-banner { background-color: #5a9475 } #theme-tag-bg { background-color: #8bbd86 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #52946f }
12ik
trunk/app/site/css/site/theme/5/core.css
CSS
oos
1,042
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #006e92 } /* site backgound */ .bg { background: #062425 url(../../../../pics/site/theme/15/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #006e92 } /* tab */ .nav-items li { background: #be4574 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #be4574 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #c73f74 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #c73f74 } /* for colorPicker */ #theme-bg { background-color: #062425 } #theme-banner { background-color: #006e92 } #theme-tag-bg { background-color: #be4574 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #c73f74 }
12ik
trunk/app/site/css/site/theme/15/core.css
CSS
oos
1,065
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #56714e } /* site backgound */ .bg { background: #ebf6f9 url(../../../../pics/site/theme/3/bg.png) no-repeat } /* top banner */ .sp-nav { background-color: #d1e6c3 } /* tab */ .nav-items li { background: #9ec293 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #9ec293 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #00b0d8 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #00b0d8 } /* for colorPicker */ #theme-bg { background-color: #ebf6f9 } #theme-banner { background-color: #d1e6c3 } #theme-tag-bg { background-color: #9ec293 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #00b0d8 }
12ik
trunk/app/site/css/site/theme/3/core.css
CSS
oos
1,052
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #8b523c } /* site backgound */ .bg { background: #e7e3cd url(../../../../pics/site/theme/14/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #f56147 } /* tab */ .nav-items li { background: #fffaab } .nav-items li a:link, .nav-items li a:visited { color: #7b6363 } .nav-items li.on { border-color: #fffaab } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #938c1b } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #938c1b } /* for colorPicker */ #theme-bg { background-color: #e7e3cd } #theme-banner { background-color: #f56147 } #theme-tag-bg { background-color: #fffaab } #theme-tag-link { background-color: #7b6363 } #theme-link { background-color: #938c1b }
12ik
trunk/app/site/css/site/theme/14/core.css
CSS
oos
1,071
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #562939 } /* site backgound */ .bg { background: #e9eff0 url(../../../../pics/site/theme/16/bg.png) no-repeat left top } /* top banner */ .sp-nav { background-color: #c24d76 } /* tab */ .nav-items li { background: #e287a7 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #e287a7 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #b2647f } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #b2647f } /* for colorPicker */ #theme-bg { background-color: #e9eff0 } #theme-banner { background-color: #c24d76 } #theme-tag-bg { background-color: #e287a7 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #b2647f }
12ik
trunk/app/site/css/site/theme/16/core.css
CSS
oos
1,062
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #295e4c } /* site backgound */ .bg { background: #f1f1ec url(../../../../pics/site/theme/6/bg.png) no-repeat } /* top banner */ .sp-nav { background-color: #afc7bf } /* tab */ .nav-items li { background: #f0f0d6 } .nav-items li a:link, .nav-items li a:visited { color: #798984 } .nav-items li.on { border-color: #f0f0d6 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #239546 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #239546 } /* for colorPicker */ #theme-bg { background-color: #f1f1ec } #theme-banner { background-color: #afc7bf } #theme-tag-bg { background-color: #f0f0d6 } #theme-tag-link { background-color: #798984 } #theme-link { background-color: #239546 }
12ik
trunk/app/site/css/site/theme/6/core.css
CSS
oos
1,058
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #1f510d } /* site backgound */ .bg { background: #e6efea url(../../../../pics/site/theme/12/bg.png) no-repeat left bottom} /* top banner */ .sp-nav { background-color: #c2d5bb } /* tab */ .nav-items li { background: #9fbc95 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #9fbc95 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #00b0d8 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #00b0d8 } /* for colorPicker */ #theme-bg { background-color: #e6efea } #theme-banner { background-color: #c2d5bb } #theme-tag-bg { background-color: #9fbc95 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #00b0d8 }
12ik
trunk/app/site/css/site/theme/12/core.css
CSS
oos
1,064
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #364546 } /* site backgound */ .bg { background: #ececea url(../../../../pics/site/theme/11/bg.png) repeat-x center bottom } /* top banner */ .sp-nav { background-color: #364546 } /* tab */ .nav-items li { background: #8bc732 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #8bc732 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #819747 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #819747 } /* for colorPicker */ #theme-bg { background-color: #ececea } #theme-banner { background-color: #364546 } #theme-tag-bg { background-color: #8bc732 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #819747 }
12ik
trunk/app/site/css/site/theme/11/core.css
CSS
oos
1,066
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #714e5c } /* site backgound */ .bg { background: #f2edf2 url(../../../../pics/site/theme/8/bg.png) no-repeat } /* top banner */ .sp-nav { background-color: #d3c5d7 } /* tab */ .nav-items li { background: #bea9c4 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #bea9c4 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #c16d8d } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #c16d8d } /* for colorPicker */ #theme-bg { background-color: #f2edf2 } #theme-banner { background-color: #d3c5d7 } #theme-tag-bg { background-color: #bea9c4 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #c16d8d }
12ik
trunk/app/site/css/site/theme/8/core.css
CSS
oos
1,052
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #865c21 } /* site backgound */ .bg { background: #f4e5d0 url(../../../../pics/site/theme/7/bg.png) } /* top banner */ .sp-nav { background-color: #ca6248 } /* tab */ .nav-items li { background: #8b371d } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #8b371d } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #c45a3f } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #c45a3f } /* for colorPicker */ #theme-bg { background-color: #f4e5d0 } #theme-banner { background-color: #ca6248 } #theme-tag-bg { background-color: #8b371d } #theme-tag-link { background-color: #fff } #theme-link { background-color: #c45a3f }
12ik
trunk/app/site/css/site/theme/7/core.css
CSS
oos
1,042
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #efeeed } .mod h2 { color: #3f270e } /* site backgound */ .bg { background: #cec8c2 url(../../../../pics/site/theme/10/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #3f270e } /* tab */ .nav-items li { background: #71471a } .nav-items li a:link, .nav-items li a:visited { color: #c4bcb2 } .nav-items li.on { border-color: #71471a } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #ad6255 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #ad6255 } /* for colorPicker */ #theme-bg { background-color: #cec8c2 } #theme-banner { background-color: #3f270e } #theme-tag-bg { background-color: #71471a } #theme-tag-link { background-color: #c4bcb2 } #theme-link { background-color: #ad6255 }
12ik
trunk/app/site/css/site/theme/10/core.css
CSS
oos
1,074
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #333 } .mod h2 { color: #46624d } /* site backgound */ .bg { background: #edf0ed url(../../../../pics/site/theme/1/bg.png) no-repeat left bottom } /* top banner */ .sp-nav { background-color: #cdd5cf } /* tab */ .nav-items li { background: #bbc5be } .nav-items li a:link, .nav-items li a:visited { color: #666 } .nav-items li.on { border-color: #bbc5be } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #379253 } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #379253 } /* for colorPicker */ #theme-bg { background-color: #edf0ed } #theme-banner { background-color: #cdd5cf } #theme-tag-bg { background-color: #bbc5be } #theme-tag-link { background-color: #666 } #theme-link { background-color: #379253 }
12ik
trunk/app/site/css/site/theme/1/core.css
CSS
oos
1,064
/* system theme only */ .sp-logo a:link, .sp-logo a:visited, .sp-logo a:active, .sp-logo a:hover { color: #fff } .mod h2 { color: #40577e } /* site backgound */ .bg { background: #e7e7e7 url(../../../../pics/site/theme/9/bg.png) no-repeat } /* top banner */ .sp-nav { background-color: #8497b4 } /* tab */ .nav-items li { background: #7084a5 } .nav-items li a:link, .nav-items li a:visited { color: #fff } .nav-items li.on { border-color: #7084a5 } /* global link */ .content-nav a, .mod a, .type-nav a, .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active, #footer a { color: #4f86ac } .content-nav a:hover, .mod a:hover, .type-nav .on a, .type-nav a:hover, .top-nav .top-nav-info a:hover, #footer a:hover { color: #fff; background-color: #4f86ac } /* for colorPicker */ #theme-bg { background-color: #e7e7e7 } #theme-banner { background-color: #8497b4 } #theme-tag-bg { background-color: #7084a5 } #theme-tag-link { background-color: #fff } #theme-link { background-color: #4f86ac }
12ik
trunk/app/site/css/site/theme/9/core.css
CSS
oos
1,052
@charset "utf-8"; /* Reset */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; } table { border-collapse:collapse; border-spacing:0; } fieldset,img { border:0; } address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; } ol,ul { list-style:none; } caption,th { text-align:left; } h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; } q:before,q:after { content:''; } abbr,acronym { border:0; } /* Font, Link & Container */ body { font:12px/1.6 "Microsoft Yahei","微软雅黑",Tahoma,Arial,Helvetica,STHeiti } a:link { color:#369;text-decoration:none; } a:visited { color:#669;text-decoration:none; } a:hover { color:#fff;text-decoration:none;background:#039; } a:active { color:#fff;text-decoration:none;background:#f93; } textarea { resize:none; } button { cursor:pointer;line-height:1.2; } a img { vertical-align:text-bottom; } .mod { width:100%; } .hd:after, .bd:after, .ft:after, .mod:after {content:'\0020';display:block;clear:both;height:0; } .bn-close { margin-left:2em; } a.bn-close:link, a.bn-close:visited, a.bn-close:hover, a.bn-close:active { color:#aaa;font-size:9px;padding:0 2px; } a.bn-close:hover, a.bn-close:active { background:#f10;color:#fff;border:2px solid #f00; } .hide { position:absolute;visibility:hidden;left:-1000em;top:-1000em; } .clear { display:block;clear:both; } .cr { float:none;display:block;width:100%;clear:both;margin:0;padding:0;font-size:0;line-height:0;height:0;overflow:hidden;*margin-bottom:-2px; } #content h1 { font-size:26px;font-weight:800;margin-bottom:.4em;color:#555; } /* Layout */ #header { margin-bottom:.8em;padding-top:.8em; } #content { margin-bottom:.8em; } .wrapper { width:950px;margin:0 auto; } #header, #content, #footer { width:100%; } .mod .hd:after, .mod .bd:after, .mod .ft:after, #header:after, #content:after, #footer:after { content:'\0020';display:block;clear:both;height:0; } .article { float:left;width:590px; } .aside { float:right;width:310px; } .nav { float:left;width:150px;margin-right:10px; } /* Modules */ .mod { margin-bottom:1.4em; } .mod h2 { font-size:14px;padding-bottom:1em;color:#060; } /* Header */ /* old header rules */ body { margin-top:0; } #header { width:100%;margin:0 0 40px 0;background:none; } #searbar { margin:0; } #header { width:100%; } #header:after, .site-nav:after, .top-nav-items:after, .top-nav:after,.site-nav .bd:after { content:'\0020';display:block;clear:both;height:0; } .top-nav { clear:both;width:100%;color:#d4d4d4;margin-bottom:20px;height:30px;border-bottom:1px dashed #d4d4d4; } .top-nav .bd { width:950px;margin:0 auto; } .top-nav-items { float:left;*position:relative;font-size:12px;margin-top:3px; } .top-nav-items li { float:left;display:inline;margin:2px 20px 0 0; } .nav-srh { float:left;height:38px;padding-left:5px;background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 0 0; } .nav-srh form { padding:0 1px 0 0;height:38px;*float:left;background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 100% 0; } .nav-srh input { float:left;width:300px;height:26px;line-height:26px;border:1px solid #a6d098;background:#fff;padding:0 2px; } .nav-srh .inp { padding-top:5px;width:366px; } .nav-srh .bn-srh { width:54px;height:29px;padding:0 0 3px 6px;border:none;background:transparent url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 0 -100px;cursor:pointer;letter-spacing:6px;text-align:center; } .nav-srh .bn-srh { padding:2px 0 0 3px\9; } .pro-nav .nav-srh { float:left; } .site-nav { width:100%;height:36px;clear:both; } .site-nav .bd { float:right;height:36px;width:84%; } .site-nav-logo { float:left;position:relative;*margin-top:2px; } #db-nav-main .site-nav-logo em { display:none; } #db-nav-main .bd { width: 774px;background-color:#e7f3e7; } .site-nav-logo img { margin-bottom:-3px; } .site-nav-logo a:hover, .site-nav-logo a:active, .site-nav-logo a { background:transparent; } .top-nav-info { float:right;margin-top:5px;*margin-top:6px; } .top-nav a:link, .top-nav a:visited, .top-nav a:hover, .top-nav a:active { color:#566d5e; } .top-nav a:hover { background-color:#566d5e;color:#fff; } .top-nav li.on { color:#000; } .top-nav li.on, .top-nav li.on a:link, .top-nav li.on a:visited, .top-nav li.on a:hover, .top-nav li.on a:active { color:#219a44;font-weight:800; } .top-nav li.on a:hover { color:#fff;background:#219a44; } .top-nav em, .site-nav em { font-style:normal; } .top-nav-info a { margin-left:10px; } .site-nav-items { float:left;padding-left:28px;line-height:36px;color:#d4d4d4; } .site-nav-items li { float:left;margin-right:14px;background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat 0 -140px; } .site-nav-items li a:link, .site-nav-items li a:hover, .site-nav-items li a:visited, .site-nav-items li a:active { font-size:14px;color:#0c7823;margin-left:14px;vertical-align:middle; } .site-nav-items li a:hover { background-color:#0c7823;color:#fff; } .site-nav h1 { font-size:21px;padding:8px 0; } .nav-tip { margin-bottom:-2em;text-align:right;line-height:2;*position:relative; } .nav-tip a { margin-left:10px;} .srh-group { border-top:1px solid #ddd;margin-top:5px;padding-top:5px; } .srh-group a:hover { background:#777 !important; } .single-nav { padding-top:15px; } .blur { color:#ddd; } .submenu { float:left;position:relative;width:45px;height:21px;border:1px solid #b6c9c1;border-left:none;margin:0 2px 0 -5px;background:#fff;padding:2px 0 1px 0; } .submenu .menu { position:absolute;width:85px;top:24px;right:-1px;background:#fff;border:1px solid #b6c9c1; } .submenu .selected { padding:0 0 0 5px;border-left:1px solid #b6c9c1;cursor:pointer; } .submenu .selected span { position:absolute;width:7px;height:5px;right:4px; top:10px;overflow:hidden;background:url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat -240px -124px; } .submenu .menu li { width:100%; } .submenu .menu a { display:block;padding:2px 10px; } .nav-srh .open span { background-position:-240px -100px; } .submenu .line { height:1px;font-size:0;line-height:0;margin-bottom:1px;overflow:hidden;border-bottom:1px solid #c3c3c3; } a.bn-radio:link,a.bn-radio:visited,a.bn-radio:hover,a.bn-radio:active {position:relative;margin:0 4px;padding:0 0 0 24px;zoom:1;height:14px;overflow:hidden;vertical-align:text-bottom;background:url(http://t.douban.com/pics/nav/ic_radio2.gif) no-repeat 0 0;*vertical-align:baseline;line-height:15px;*margin:0;*top:-1px; } a.bn-radio:hover { color:#fff;background-color:#6a7e71; } #db-nav-movie .site-nav-items li { margin-right:9px; } #db-nav-movie .nav-srh { background-position:0 -50px; } #db-nav-movie .nav-srh form { background-position:100% -50px; } #db-nav-movie .nav-srh input { border-color:#8cd4de; } #db-nav-movie .nav-srh .bn-srh { background-position:-130px -100px; } #db-nav-movie .site-nav-items li a:link, #db-nav-movie .site-nav-items li a:hover, #db-nav-movie .site-nav-items li a:visited, #db-nav-movie .site-nav-items li a:active { font-size:14px;color:#0090b3;margin-left:12px;vertical-align:middle; } #db-nav-movie .site-nav-items li a:hover { background-color:#0090b3;color:#fff; } #db-nav-book .site-nav-items li { margin-right:9px; } #db-nav-book .site-nav-items li a:link, #db-nav-book .site-nav-items li a:hover, #db-nav-book .site-nav-items li a:visited, #db-nav-book .site-nav-items li a:active { margin-left:12px; } #db-nav-book li .lnk-buy { display:-moz-inline-box;display:inline-block;zoom:1;width:66px;height:21px;line-height:22px;*line-height:23px;overflow:hidden;background:transparent url(http://t.douban.com/pics/nav/ui_ns_sbg4.png) no-repeat -280px -120px;font-size:12px;color:#368332;*margin-top:8px; } #db-nav-movie .site-nav-items, #db-nav-book .site-nav-items { padding-left:20px; } #db-nav-book li .lnk-buy em { margin-left:24px; } #db-nav-main .site-nav-items li { margin-right:28px;background:none;color:#e9f4e9; } #db-nav-main .site-nav-items li a { margin:0; } #db-nav-main .bd { background-color:#e9f4e9; } #db-nav-main .nav-srh input { width:264px;height:24px; } #db-nav-main .nav-srh .inp { width:300px; } #db-nav-music .site-nav-items li { margin-right:30px;background:none;color:#eff2ef; } #db-nav-music .bd { background-color:#e9ede9; } #db-nav-main .nav-srh, #db-nav-main .nav-srh form, #db-nav-music .nav-srh, #db-nav-music .nav-srh form { background:none; } #db-nav-main .nav-srh, #db-nav-music .nav-srh { float:right;height:36px; } #db-nav-main .nav-srh form, #db-nav-music .nav-srh form { height:36px; } #db-nav-music .nav-srh input { width:235px;height:24px; } #db-nav-main .nav-srh .bn-srh, #db-nav-music .nav-srh .bn-srh { width:50px;height:26px;*padding-top:1px; } #db-nav-music .nav-srh .inp { width:300px; } #db-nav-music .site-nav-items li a:link, #db-nav-music .site-nav-items li a:hover, #db-nav-music .site-nav-items li a:visited, #db-nav-music .site-nav-items li a:active { font-size:14px;color:#3b5343;margin-left:0;vertical-align:middle; } #db-nav-music .site-nav-items li a:hover { background-color:#607869;color:#fff; } #db-nav-music .nav-srh input { border-color:#b6c9c1; } #db-nav-music .nav-srh .bn-srh { background-position:-60px -100px; } #db-nav-main .nav-srh .bn-srh { width:27px;margin-left:-4px;overflow:hidden;text-indent:-100px;background-position:-190px -100px; } #db-nav-main .site-nav-logo { padding-top: 3px; _padding-top: 5px; _height: 34px } #db-nav-music .site-nav-logo, #db-nav-movie .site-nav-logo, #db-nav-book .site-nav-logo, #db-nav-location .site-nav-logo { padding-top: 5px } /* end old */ /* Footer */ .db-services { width:100%;margin-bottom:1em;overflow:hidden;line-height:2;border-top:1px dashed #ddd;color:#999;padding-top:.5ex; } .db-services .services { float:left;margin-right:4em;*margin-right:2.6em; } .db-services .basic { width:100%;overflow:hidden;margin:0; } .db-services .basic li { float:left;margin-right:4.2em; *margin-right:3.6em; } .db-services .last, .db-services .basic .last { margin:0; } .db-services a.first:link, .db-services a.first:visited { color:#369; } .db-services a.first:hover, .db-services a.first:active { color:#fff;background:#039; } .db-services a:link, .db-services a:visited { color:#999; } .db-services a:hover, .db-services a:active { color:#fff;background:#999; } .db-inc { clear:both;color:#999;padding-bottom:1em; } .db-inc .about { float:right; } /* Modules - List */ .list-s { clear:both; } .list-s li { float:left;text-align:center; } /* Message List */ .list-m .title a { font-size:14px; } .list-m p, .list-m .title span { color:#666; } .list-m li { border-bottom:1px dashed #ccc;padding:2px 0; } .list-m .date { margin-left:1em; } .list-m .last { border:0; } /* Message List on timeline */ .list-t dt { border-bottom:1px solid #ccc; } .list-t dd { margin-bottom:1em; } .list-t .list-m li { padding-left:12px;background:url(data:image/png;base64,R0lGODlhDAAKAIAAAKOjo////yH5BAAAAAAALAAAAAAMAAoAAAINjI+pywjfHoiw2YttAQA7) no-repeat 0 6px; *background-image:url(mhtml:http://t.douban.com/css/ui/inline_img.css!list-dot); } blockquote { padding:0 1em;margin:1em;color:#000;background:url(data:image/png;base64,R0lGODlhCgAIALMAAPf39+jo6NjY2NHR0fv7+9zc3MnJyeDg4OTk5NTU1Ozs7PPz883Nzf///8XFxQAAACH5BAAAAAAALAAAAAAKAAgAAAQvsDVkglSsTMdIW46zAIajSINzNEeINEooNExoFnZrJ4nt9KECwsZY1AYEQs+wiAAAOw==) no-repeat 0 0;*background-image:url(mhtml:http://t.douban.com/css/ui/inline_img.css!quote-left); } blockquote q { *zoom:1;padding-right:1em;margin-right:1ex;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAMAAABstdySAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRF8/PzycnJ+/v7zc3N0dHR7Ozs8PDw9/f36Ojo2NjY3Nzc5OTk4ODg1NTUxcXF////KgVc/gAAABB0Uk5T////////////////////AOAjXRkAAABKSURBVHjahMy7FoAwDAJQ+lDTpoX//9vi4mqGe4AhQOdSHdwVm2SmGTDcbyemmWEa5CW03GGbdJEPUHhLnSmMElL6oaDvfuMRYABv3gXwJw084AAAAABJRU5ErkJggg==) no-repeat right bottom;*background-image:url(mhtml:http://t.douban.com/css/ui/inline_img.css!quote-right); } /* BBS List or Table */ .list-b { width:100%;color:#666; } .list-b th { padding:4px;border-bottom:1px dashed #ccc;color:#000; } .list-b td { padding:4px;border-bottom:1px dashed #ccc;vertical-align:middle; } .list-b .author, .list-b .count, .list-b .date { width:6em;text-align:right;white-space:nowrap; } .list-b .count { width:3em; } .list-b .author { text-align:left; } .list-b .tit-reply, .list-b .tit-last { text-align:right; } /* Item */ .item { *display:inline-block;overflow:hidden; } .item .pic { display:table-cell;*float:left;padding-right:12px;text-align:center;vertical-align:top; } .item .pic span {display:block;} .item .info { display:table-cell;*float:left;text-align:left;vertical-align:top;*vertical-align:baseline; } .item .info span{color:#666;} .item .info ul {margin-left:1em;} .info li {float:none;text-align:left;} .info li span {display:inline;} /* Comment item & Update item rules */ .update-item, .comment-item {*zoom:1;overflow:hidden;margin-bottom:1.6em;} .update-item .pic, .comment-item .pic {float:left;margin-right:-100em;} .update-item .content, .comment-item .content {float:right:100%;padding-left:6em;} .comment-item h3 {margin-bottom:1ex;} .comment-item p, .comment-item .author {margin-bottom:1em;} .comment-item .title {font-size:14px;} .update-item .content { padding-left:5em; } .update-item .author { margin-bottom:.5em; } .update-item blockquote, .update-item p { margin:.5em 0; } .update-item li { border-bottom:1px solid #eee;min-height:55px;_height:55px; } .update-item p { color:#999; } /* Photo Album rules */ .album-photo { text-align:left;overflow:hidden; } .album-photo .cover { padding:3px 10px 10px 3px; background:transparent url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -300px; } .album-photo .title { font-size:14px; } .album-photo-s { width:100px;overflow:hidden; } .album-photo-s .cover { padding:5px 8px 8px 5px;margin-bottom:1ex;background:transparent url(http://t.douban.com/pics/ui/core1.png) no-repeat -250px -170px; } .album-photo-s .title { font-size:12px; } /* Table */ .toprate { width:100%; } .toprate .num { width:2em;font-size:9px; } .toprate .stat { width:2em;font-size:9px;color:#666; } .up, .stay, .down { padding-left:12px;line-height:1.2;background:url(http://t.douban.com/pics/ui/core1.png) no-repeat -250px -120px; } .down { background-position: -250px -132px; } .stay { background-position: -250px -145px; } /* Form */ form label { float:left;width:4em; } legend { font-size:14px;padding-bottom:1em;color:#060; } .item-r label { float:none; } form .item { margin-bottom:0.5ex; } form .item input { margin-right:1em;} .item-r { margin: 1ex 0 1em 4em; } .item .item-r input, .item .item-r { margin:0; } .item .item-r label { font-size:1em;margin-right: 1em; } form .item-submit { padding: 1ex 0 2em 4em; } .frm-comment label { font-size:14px; } .frm-comment textarea { width:440px;height:330px; } .frm-comment .item-submit { padding-left:5em; } /* Pagination */ .paginator { font-size:14px; } .paginator a { margin:0 0.5ex; } .paginator .prev { margin-right:1em; } .paginator .next { margin-left:1em; } .paginator .on { background:#83BF73;color:#fff;padding:1px; } /* Info Box */ .infobox .ex2, .infobox .ex1 { height:5px;line-height:0;font-size:0;margin-left:5px;background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 100% -100px; } .infobox .ex2 span, .infobox .ex1 span { position:relative;display:block;margin-left:-5px;width:5px;height:5px;overflow:hidden;background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -100px; } .infobox .ex2 { background-position: 100% -105px; } .infobox .ex2 span { background-position: 0 -105px; } .infobox .bd { padding:0 1em;background:#fef8f2;border:1px solid #f9f2ea;border-width:0 1px; } /* Button */ .bn-add span, .bn-add, .bn-hot span, .bn-hot, .bn-std span, .bn-std { display:inline-block;display:-moz-inline-stack;*zoom:1;height:22px;line-height:0;font-size:0;padding-left:3px;vertical-align:middle;overflow:hidden; } .bn-hot span, .bn-hot { height:24px; } .bn-add, .bn-add span, .bn-hot, .bn-hot span, .bn-std span, .bn-std, x:default { display:inline-block;} .bn-add span, .bn-hot span, .bn-std span { padding:0 8px 0 5px; background: url(http://t.douban.com/pics/ui/core1.png) no-repeat 100% 0;line-height:23px;font-size:12px;cursor:pointer; } .bn-hot span { background-position: 100% -23px;line-height:24px; } .bn-add span { background-position: 100% -71px;padding-right:15px; } a.bn-std:link, a.bn-std:visited, a.bn-std:hover, a.bn-std:active { background: url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 0;color:#000; } a.bn-hot:link, a.bn-hot:visited, a.bn-hot:hover, a.bn-hot:active { background: url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -23px;color:#eb928c; } a.bn-add:link, a.bn-add:visited, a.bn-add:hover, a.bn-add:active { background: url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 -71px;color:#9e9e9e;padding-left:25px; } a.bn-hot:hover, a.bn-hot:active { background-position: 0 -47px; } a.bn-hot:hover span, a.bn-hot:active span { background-position: 100% -47px;color:#f4473b; } /* Rating */ .rating1-t, .rating15-t, .rating2-t, .rating25-t, .rating3-t, .rating35-t, .rating4-t, .rating45-t, .rating5-t, .rating-t { display:inline;padding-left:55px;font-size:9px;line-height:1;background:url(http://t.douban.com/pics/ui/core1.png) no-repeat 0 0;font-family:simsun; } .rating1-t em, .rating15-t em, .rating2-t em, .rating25-t em, .rating3-t em, .rating35-t em, .rating4-t em, .rating45-t em, .rating5-t em, .rating-t em { color:#ff5c38;font-family:tahoma; } .rating1-t {background-position:0 -216px;} .rating15-t {background-position:0 -204px;} .rating2-t {background-position:0 -193px;} .rating25-t {background-position:0 -180px;} .rating3-t {background-position:0 -168px;} .rating35-t {background-position:0 -156px;} .rating4-t {background-position:0 -144px;} .rating45-t {background-position:0 -132px;} .rating5-t {background-position:0 -120px;} .rating1-b, .rating15-b, .rating2-b, .rating25-b, .rating3-b, .rating35-b, .rating4-b, .rating45-b, .rating5-b, .rating-b { display:inline-block;display:-moz-inline-stack;*zoom:1;height:14px;vertical-align:text-top;overflow:hidden;padding-left:80px;margin:-3px 1ex 0 0;font-size:14px;line-height:14px;background:url(http://t.douban.com/pics/ui/core1.png) no-repeat;*margin-top:0;} .rating1-b, .rating15-b, .rating2-b, .rating25-b, .rating3-b, .rating35-b, .rating4-b, .rating45-b, .rating5-b, .rating-b, x:default { display:inline-block; } .rating1-b em, .rating15-b em, .rating2-b em, .rating25-b em, .rating3-b em, .rating35-b em, .rating4-b em, .rating45-b em, .rating5-b em, .rating-b em{ color:#ff5c38;font-family:tahoma; } .rating1-b {background-position:-120px -240px;} .rating15-b {background-position:-120px -225px;} .rating2-b {background-position:-120px -210px;} .rating25-b {background-position:-120px -195px;} .rating3-b {background-position:-120px -180px;} .rating35-b {background-position:-120px -165px;} .rating4-b {background-position:-120px -150px;} .rating45-b {background-position:-120px -135px;} .rating5-b {background-position:-120px -120px;} .rating-l b { display:inline-block;display:-moz-inline-stack;*zoom:1;height:14px;overflow:hidden;background:#f5cbad;margin:-2px 2px 0 0;vertical-align:middle;*vertical-align:text-bottom; } .rating-l em { font-size:9px;font-family:tahoma;line-height:1; } /* Search */ .srh-member, .srh-group { text-align:center; } .srh-member legend, .srh-group legend { text-align:left; } .srh-member .item input { width:242px;font-size:14px; } .srh-all .item input { width:20em;font-size:14px;padding:2px;margin:0 1ex 0 0; } .srh-all .item button { font-size:14px; } .srh-all .item-r, .srh-music .item-r { margin:0;padding:0 1em; } .srh-all .item-r input, .srh-music .item-r input { margin:0 2px 0 0;vertical-align:middle; } .srh-all .item-r label, .srh-music .item-r label { margin-right:1ex;line-height:1.2; } .srh-group p { color:#666; } .srh-group .item input, .srh-event .item input { width:350px;margin:0 .5ex 0 0; } .srh-group .item-s { margin-bottom:1em; } .srh-movie .item input, .srh-book .item input { width:30em;margin:0 .5ex 0 0;padding:2px; } .srh-music-artist .item input, .srh-music .item input { width:20em;margin:0 .5ex 0 0;padding:2px; } .srh-music-artist .item input { width: 16.7em; } /* Tag */ .tags{line-height:1.2;} .tags li { display:inline;margin:-1ex 1ex;} .size1 a { font-size:1em; } .size2 a { font-size:1.17em;font-weight:800; } .size3 a { font-size:1.5em; } .size4 a { font-size:1.75em;font-weight:800; } /**日记**/ .row { overflow:hidden; margin-bottom:20px } .row.note-title label.field, .row.note-text label.field { font-size:14px } #note_title, #note_text { width:582px; margin-top:5px; padding:3px; border:1px solid #ccc; line-height:1.62 } #note_text { resize:vertical } #note_title:focus, #note_text:focus { border-color:gray } #note_title { font-size:14px } #note_text { height:400px; resize:vertial; font-size:13px } .markdown-tip { text-align:right } .markdown-tip a { display:inline-block; *display:inline; zoom:1; padding:3px 8px 2px; background-color:#e6e6e6; color:#939393; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px } .markdown-tip a:hover { color:#666 } .note-privacy label, .note-reply label { margin-right:11px } .note-privacy input, .note-reply input { position:relative; top:-2.5px; margin-right:3px; vertical-align:middle } .row.footer { margin-top:50px } .row.footer .cancel-note { float:right } .control-panel { float:right; overflow:hidden; margin-bottom:5px } .control-panel li { float:left; position:relative } .control-panel .lnk-flat { position:relative; padding-right:12px; padding-left:12px } .image-btn { margin-right:-1px } .image-btn:hover { z-index:2 } .video-btn { margin-right:-1px } .video-btn:hover { z-index:2 } .image-btn .lnk-flat { -moz-border-top-right-radius:0; -webkit-border-top-right-radius:0; border-top-right-radius:0; -moz-border-bottom-right-radius:0; -webkit-border-bottom-right-radius:0; border-bottom-right-radius:0 } .link-btn .lnk-flat { -moz-border-top-left-radius:0; -webkit-border-top-left-radius:0; border-top-left-radius:0; -moz-border-bottom-left-radius:0; -webkit-border-bottom-left-radius:0; border-bottom-left-radius:0 } .video-btn .lnk-flat { -moz-border-radius:0; -webkit-border-radius:0; border-radius:0 } .images, .videos { display:none; margin-bottom:20px } .images { zoom:1; border-bottom:1px dashed #ccc } .image-item, .video-item { overflow:hidden; position:relative; zoom:1; margin-bottom:20px; padding:10px; border:1px solid #ccc; background-color:#f3f3f3 } .image-item label, .video-item label { color:#666 } a.delete-image, a.delete-video { position:absolute; right:10px; top:10px; display:block; width:16px; height:16px; text-align:center; vertical-align:middle; font-weight:bold; line-height:16px; color:#999 } a.delete-image:hover, a.delete-video:hover { color:#333; background-color:transparent; text-decoration:none } .thumbnail { float:left; margin-right:20px; width:140px; overflow:hidden } .image-desc, .image-layout, .video-info { margin-left:160px } .image-thumb, .video-thumb { margin-top:10px; position:relative; zoom:1 } .video-thumb { height:96px } .image-desc textarea { width:385px; height:60px; resize:vertical } .image-desc textarea, .video-info div { margin-top:10px } .image-layout label { margin-right:11px } .image-layout input { position:relative; top:-2.5px; vertical-align:middle; margin-right:3px } .video-info .video-title, .video-info .video-url { display:block } #upload-area { margin-bottom:20px } #upload-area label.field { color:#666 } .drag-drop { border:2px dashed #ccc; color:#666; text-align:center; font-size:18px; line-height:1.62 } .drag-drop .text { display:inline-block; *display:inline; zoom:1; margin:70px 0 } .upload-tip { margin-bottom:20px; color:#666 } .upload-error { display:none; margin-bottom:20px; color:#f30 } .upload-info { display:none; zoom:1 } .upload-info .header, .upload-info .footer { color:#777; padding:3px; zoom:1 } .upload-info .footer { _margin-top:0 } .upload-info .slot { padding:3px } .upload-info .header span, .upload-info .footer span { display:inline-block; *display:inline; zoom:1 } .upload-info .header .image-name { padding-left:20px; width:415px } .upload-info .header .image-size { width:80px; text-align:center } .upload-info .header .image-delete { width:60px; text-align:center } .upload-info .footer .total-num { padding-left:20px; width:425px } .upload-info .footer .num-warning { display:none; padding-left:15px; color:red } .upload-info .footer .total-size { text-align:center; width:145px } .upload-info .header { border-bottom:1px solid #d0d0d0 } .upload-info .slot { border-bottom:1px solid #ccc } .upload-info a.image-delete { display:inline-block; *display:inline; zoom:1; opacity:.6; filter:alpha(opacity:60) } .upload-info a.image-delete:hover { background-color:transparent; opacity:1; filter:alpha(opacity:100) } .slot span { display:inline-block; *display:inline; zoom:1 } .slot .image-name { padding-left:10px; width:425px } .slot .image-size { width:80px; text-align:center } .slot .image-delete { width:60px; text-align:center } .slot.image-loading { position:relative; background:0 } .slot .basic-loading { width:130px; text-align:center; color:#999; background:url(/pics/loading.gif) no-repeat 25px 1px } .slot.image-loading .progress { position:absolute; top:0; left:0; height:100%; width:0; border:1px solid #c0d8c2; border-right:2px solid #36824b; background-color:#cbe2cd; opacity:.6; filter:alpha(opacity:.6) } .slot.error { border:1px solid #fdbfbc; border-top:0; background-color:#fdd1ce } .slot.error .image-name { width:180px; _width:183px } .slot.error .image-error { color:red; width:241px; _width:243px } .slot.done { background:#f8f4cd } #image-slots { zoom:1 } #noflash { font-size:12px; color:#f30 } .video-tip { margin-bottom:30px; color:#666 } .video-dlg .row label.field { display:block } .video-dlg .row input { width:355px; margin-top:5px; line-height:1.62; padding:3px; border:1px solid #ccc } .video-dlg .row input:focus { border-color:gray } .video-dlg .msg { display:none; width:355px; padding:4px; margin-top:5px; background-color:#f4f4f4; color:#999 } .video-dlg .msg a.retry { color:#369 } .video-dlg .msg a.retry:hover { color:#fff; background-color:#369 } .link-dlg .row label.field { display:block } .link-dlg .row input { width:355px; margin-top:5px; padding:3px; border:1px solid #ccc; font-size:13px; lineheight:1.62 } .link-dlg .row input:focus { border-color:gray } .btn { padding:5px 16px; *padding:4px 8px; height:27px; cursor:pointer; -moz-border-radius:3px; -webkit-border-radius:3px; border-radius:3px; color:#fff; background-color:#3fa156; border:1px solid #528641 } .btn:hover { background-color:#4fca6c; border-color:#6aad54 } .btn:active { background-color:#3fa156; border-color:#528641 } .error-msg { color:red } .error-msg.tip { position:absolute; padding-left:10px; background:url(/pics/icon/tips_arrow.gif) no-repeat } .error-msg.tip { background-position:left -50px } .error-msg.board { margin-bottom:15px } #preview .note-hd h3 { color:#060; background:0; margin-left:0; margin-bottom:0; height:auto; line-height:1.4 } #preview .note-ft { text-align:right } #preview .note-hd, #preview .note-bd, #preview .note-ft { margin-bottom:20px } .preview-footer { margin-top:50px; margin-bottom:20px } .autosave-tip { color:#999 }
12ik
trunk/app/site/css/core.css
CSS
oos
28,418
<?php defined('IN_IK') or die('Access Denied.'); class site extends IKApp{ //构造函数 public function __construct($db){ parent::__construct($db); } //判断是否存在小站 function isSite($siteid){ $isSite = $this->findCount('site',array('siteid'=>$siteid)); if($isSite > 0){ return true; }else{ return false; } } //判断是否存在房间 function isRoom($roomid){ $isRoom = $this->findCount('site_room',array('roomid'=>$roomid)); if($isRoom > 0){ return true; }else{ return false; } } //获取一个小站 function getOneSite($siteid){ if($this->isSite($siteid)){ $strSite=$this->find('site',array( 'siteid'=>$siteid, )); if($strSite['siteicon'] == ''){ $strSite['icon_180'] = SITE_URL.'public/images/icon_default_large.png'; $strSite['icon_75'] = SITE_URL.'public/images/icon_default_small.png'; $strSite['icon_48'] = SITE_URL.'public/images/icon_default_small.png'; }else if($strSite['imgpos']!=''){ //如果截图位置不为空 说明是切图 x y width $arrPos = explode('_',$strSite['imgpos']); $bigImg = tsXimg($strSite['siteicon'],'site',180,220,$strSite['iconpath'],0); $strSite['icon_180'] = SITE_URL.$bigImg; $strSite['icon_75'] = SITE_URL.tsXimg($bigImg,'site',75,75,$strSite['iconpath'],1,array( 'X'=>$arrPos[0], 'Y'=>$arrPos[1],'W'=>$arrPos[2],'H'=>$arrPos[2],'R'=>1 )); $strSite['icon_48'] = SITE_URL.tsXimg($bigImg,'site',48,48,$strSite['iconpath'],1,array( 'X'=>$arrPos[0], 'Y'=>$arrPos[1],'W'=>$arrPos[2],'H'=>$arrPos[2],'R'=>1 )); }else{ $strSite['icon_180'] = SITE_URL.tsXimg($strSite['siteicon'],'site',180,220,$strSite['iconpath'],0); $strSite['icon_75'] = SITE_URL.tsXimg($strSite['siteicon'],'site',75,75,$strSite['iconpath'],0); $strSite['icon_48'] = SITE_URL.tsXimg($strSite['siteicon'],'site',48,48,$strSite['iconpath'],0); } return $strSite; }else{ header("Location: ".SITE_URL); exit; } } //根据roomid获取一个房间 function getOneRoom($roomid){ if($this->isRoom($roomid)){ $strRoom=$this->find('site_room',array( 'roomid'=>$roomid, )); return $strRoom; }else{ header("Location: ".SITE_URL); exit; } } //根据siteid获取多个房间 function getRooms($siteid){ $strRoom = $this->findAll('site_room',array( 'siteid'=>$siteid, )); return $strRoom; } //根据siteid获取排序好的导航 function getNavOrders($siteid) { $navOrders = array(); $ordertext = $this->getNavOrderBysiteId($siteid); $strNavtext = explode("," , $ordertext['ordertext']); foreach($strNavtext as $key=>$item) { $navOrders[$key] = $this->getOneRoom($item); } return $navOrders; } function getNavOrderBysiteId($siteid) { $strNavOrder = $this->find('site_room_navorder',array( 'siteid'=>$siteid, )); return $strNavOrder; } //根据siteid获取该小站theme function getSiteThemeBySiteid($siteid){ if($this->isSite($siteid)){ $strSite=$this->find('site_theme',array( 'siteid'=>$siteid, )); return $strSite; }else{ header("Location: ".SITE_URL); exit; } } //根据noteid获取日记信息 function getOneNote($noteid){ $str = $this->find('site_notes_content',array('contentid'=>$noteid)); return $str; } //根据notesid获取日记信息 function getOneNotes($notesid){ $str = $this->find('site_notes',array('notesid'=>$notesid)); return $str; } //根据bulletinid获取公告栏信息 function getOneBulletin($bulletinid){ $str = $this->find('site_bulletin',array('bulletinid'=>$bulletinid)); return $str; } //根据roomid获取公告栏信息 function getBulletinByRoomid($roomid){ $str = $this->findAll('site_bulletin',array('roomid'=>$roomid), 'addtime desc'); return $str; } function getOneWidget($array){ $str = $this->find('site_widget',$array); return $str; } //根据参数获取组件信息 param:public 代表公用组件 function getWidgets(){ $str = $this->findAll('site_widget'); return $str; } //添加房间组件模版数据 /*function addHtml($userid,$roomid,$template,$data){ $userid = intval($userid); if(is_array($data)){ $data = serialize($data); $data = addslashes($data); $this->create('site_room_widget',array( 'userid'=>$userid, 'roomid'=>$roomid, 'template'=>$template, 'data'=>$data, 'addtime'=>time(), )); } } */ //根据roomid获取排序 function getRoomWidgetSort($roomid){ $str = $this->find('site_room_widget',array('roomid'=>$roomid)); return $str; } //更新布局 如果 布局不存在则创建默认布局 function updateLayout($roomid,$leftitem){ $str = $this->find('site_room_widget',array('roomid'=>$roomid)); if($str){ $leftitem = empty($str['leftmod']) ? $leftitem : $leftitem.','.$str['leftmod']; $this->update('site_room_widget', array('roomid'=>$roomid), array('leftmod'=>$leftitem)); }else{ $this->create('site_room_widget', array('roomid'=>$roomid, 'leftmod'=>$leftitem)); } } //根据roomid去除组件栏的组件 function delWidget($roomid, $strwidget) { $modsort = $this->getRoomWidgetSort($roomid); $leftTable = explode(',',$modsort['leftmod']); $rightTable = explode(',',$modsort['rightmod']); $leftstr = $rightstr = ''; $strarr = array(); if(in_array($strwidget, $leftTable)) { $leftstr = $this->substrWidget($strwidget,$leftTable); $strarr['leftmod'] = $leftstr; } if(in_array($strwidget, $rightTable)) { $rightstr = $this->substrWidget($strwidget,$rightTable); $strarr['rightmod'] = $rightstr; } return $strarr; } function substrWidget($strwidget,$strarr) { foreach($strarr as $key=>$item) { if($item!=$strwidget) { $leftstr = $leftstr.','.$item; } } return substr_replace($leftstr, '',0,1); } //移动房间内的组件 function moveWidget($currRoomid, $targetRoomid, $strWideget) { $targetRoom = $this->find('site_room',array('roomid'=>$targetRoomid)); //$currRoom = $this->find('site_room',array('roomid'=>$currRoomid)); if($targetRoom['count_widget']==6) { return array('status'=>1, 'roomname'=>$targetRoom['name']); }else { //更新当前房间组件数目 $this->db->query("update ".dbprefix."site_room set count_widget = count_widget-1 where roomid='$currRoomid'"); //更新移动后房间组件数目 $this->db->query("update ".dbprefix."site_room set count_widget = count_widget+1 where roomid='$targetRoomid'"); //更新移动后房间组件布局 $this->updateLayout($targetRoomid,$strWideget); //更新当前房间布局 $currt_room_widget = $this->delWidget($currRoomid, $strWideget); $this->update('site_room_widget',array('roomid'=>$currRoomid),$currt_room_widget); return array('status'=>0, 'roomname'=>$targetRoom['name']); } } //判断是否有权限执行模块操作 function isAllow($obj_userid,$userid,$type) { if($obj_userid!=$userid && $userid) { tsNotice('你没有执行该操作('.$type.')的权限!'); }else if(empty($userid)){ tsNotice('你没有执行该操作('.$type.')的权限!','请登录后重试',SITE_URL.tsUrl('user','login')); } return; } //根据用户id 日记内容ID 获取该日记内的图片 function getPhotosByNoteid($userid,$noteid) { $arrPhotos = $this->findAll('site_note_photo',array('userid'=>$userid, 'noteid'=>$noteid)); foreach($arrPhotos as $key=>$item) { $arrPhoto[] = $item; $arrPhoto[$key]['photo_140'] = SITE_URL.tsXimg($item['photourl'],'site',140,170,$item['path'],0); $arrPhoto[$key]['photo_600'] = SITE_URL.tsXimg($item['photourl'],'site',600,730,$item['path'],0); } return $arrPhoto; } //根据用户id 日记内容ID 获取该日记内的图片 function getPhotoByseq($noteid,$seq) { $arrPhoto = $this->find('site_note_photo',array('seqid'=>$seq, 'noteid'=>$noteid)); $arrPhoto['photo_140'] = SITE_URL.tsXimg($arrPhoto['photourl'],'site',140,170,$arrPhoto['path'],0); $arrPhoto['photo_600'] = SITE_URL.tsXimg($arrPhoto['photourl'],'site',600,730,$arrPhoto['path'],0); return $arrPhoto; } }
12ik
trunk/app/site/class.site.php
PHP
oos
8,406
(function(){ Douban.init_lnk_like = function(e){ e.preventDefault(); var el = $(this), siteid = $("body").attr('id'), followed = $('#followed').val(), siteacurl = el.attr('href'), init='', site_is_commercial = el.attr('commercial')==null ? false : true;//是否是推广 $.post_withck( siteacurl,{'siteid':siteid,'ts':'like'}, function(res){ var res = $.parseJSON(res); if(res.r==1) { //错误 location.href='/'; } if (!site_is_commercial && followed == 0) { init = function(){ var dlg = dui.Dialog({ width: 300, url: pop_like_form, callback: function(e, o) { o.setTitle('我喜欢这个小站'); //提交对话 $('#follow_submit').click(function (e) { e.preventDefault(); var url = siteacurl; var fllowdata =''; if($('#is_follow').attr('checked') == 'checked'){ //收听 fllowdata = {'ts':'follow','siteid':siteid,'isfollow':'0'}; } else{ fllowdata = {'ts':'unfollow','siteid':siteid,'isfollow':'1'}; } $.post_withck( url,fllowdata, function (o) { location.reload(1); } ); dlg.close(); }); } }).open(); dlg.node.find('.dui-dialog-close').click(function(){ location.reload(1); }); }; IK('dialog', init); }else{ location.reload(1); } }); };//like //unlike Douban.init_lnk_unlike = function(e){ e.preventDefault(); var el = $(this), siteid = $("body").attr('id'), followed = $('#followed').val(), siteacurl = el.attr('href'), init = '', site_is_commercial = el.attr('commercial')==null ? false : true;//是否是推广 $.post_withck( siteacurl,{'siteid':siteid,'ts':'unlike'}, function(res){ var res = $.parseJSON(res); if (site_is_commercial){ //推广 $.post_withck(siteacurl,{'ts':'unfollow'},function (o) {location.reload();}); }else{ if (followed == 1) { init = function(){ var dlg = dui.Dialog({ width: 300, url: pop_unlike_form, callback: function(e, o) { o.setTitle('取消喜欢这个小站'); $('#unfollow_submit').click(function (e) { e.preventDefault(); var url = siteacurl; var fllowdata =''; if($('#un_follow').attr('checked') == 'checked') { //不收听广播 fllowdata = {'ts':'unfollow','siteid':siteid,'isfollow':'1'}; }else{ location.reload(1); } //取消关注 $.post_withck(url,fllowdata,function (o) { location.reload(1); }); dlg.close(); }); } }).open(); dlg.node.find('.dui-dialog-close').click(function(){ location.reload(1); }); } IK('dialog', init); }else{ location.reload(); } } }); }; })();
12ik
trunk/app/site/js/room-action.js
JavaScript
oos
3,342
function openVideoDialog(opt) { // opt check var textarea_selector = opt && opt.textarea_selector; if (!textarea_selector) return; var VIDEO_ITEM_TMPL = $.template(null, $('#video_item_tmpl').html()), VIDEO_DLG = $('#video_dlg').html(), videoList = $('.videos', document.getElementById('form_note')), dlg = dui.Dialog(); var resetTimer, updateDlg = function() { clearTimeout(resetTimer); resetTimer = setTimeout(function() { dlg.update(); }, 100) }; /* * ## WIDGET * 1. videoURL */ var videoURL = function() { var input, msg; var isProcessing = false; return { init: function() { var that = this; input = $('#video_url'); msg = input.next(); // event input.focus(); // event binding input.keypress(function(e) { e.preventDefault(); if (e.which === 13) { that.saveVideo(); } }); }, showLoading: function() { isProcessing = true; input.hide(); msg.show(). html('<span class="loading-video">\ 解析地址中... \ </span>'); updateDlg(); }, showError: function(msgStr) { isProcessing = true; input.hide(); msg.show(). html(msgStr + '&nbsp;&nbsp;&nbsp;<a class="retry">重新输入</a>'); updateDlg(); }, resume: function() { isProcessing = false; input.val('').show().focus(); msg.hide(); updateDlg(); }, saveVideo: function() { if (isProcessing) { return; } var url = input.val(), that = this; if ($.trim(url) === '') { return; } $.ajax({ type: 'get', url: '/j/video', data: { url: encodeURIComponent(url) }, beforeSend: function() { that.showLoading(); }, success: function(data) { if (data.r) { // displayError that.showError(data.error); return; } // TODO: parse // video seq, according to client var videoData, seq; $.tmpl(VIDEO_ITEM_TMPL, videoData). appendTo(videoList); videoList.show(); $(textarea_selector).insert_caret('<视频' + seq + '>'); dlg.close(); }, error: function() { that.showError('网络错误!'); } }); } }; }(); var app = { open: function() { dlg.set({ title: '添加视频', content: VIDEO_DLG, iframe: true, width: 400, buttons: [{ text: '确定', method: function() { videoURL.saveVideo(); } }, { text: '取消', method: function(o) { o.close(); } }] }); dlg.open(); return this; }, initWidgets: function() { videoURL.init(); return this; }, bindEvents: function() { dlg.body.find('.video-dlg').delegate( '.retry', 'click', function(e) { e.preventDefault(); videoURL.resume(); } ); return this; } }; app.open().initWidgets().bindEvents(); }
12ik
trunk/app/site/js/note/video.js
JavaScript
oos
4,475
function openLinkDialog(opt) { var textarea_selector = opt && opt.textarea_selector, selected_text = opt && opt.selected_text; if (!textarea_selector) return; var dlg = dui.Dialog(), LINK_DLG = $('#link_dlg')[0].innerHTML; dlg.set({ title: '添加链接', iframe: true, content: LINK_DLG.replace('SEL', selected_text), width: 400, buttons: [{ text: '确定', method: saveLink },{ text: '取消', method: function(o) { o.close(); } }] }); dlg.open(); // app event binding if (selected_text) { $('#link_url').focus(); } else { $('#link_text').focus(); } $('#link_url').keypress(function(e) { if (e.which === 13) { saveLink(); } }); // app method function saveLink() { var text = $('#link_text').val(), url = $.trim($('#link_url').val()); dlg.close(); if (url!== '') { url = (/^https?:\/\//.test(url) ? url : "http://"+url); $(textarea_selector).insert_caret('<a href="' + url + '">' + (text==''?url:text) + "</a>"); } } }
12ik
trunk/app/site/js/note/link.js
JavaScript
oos
1,241
function openImageDialog(opt) { var textarea_selector = opt && opt.textarea_selector, isBasic = opt && opt.isBasic, nid = opt && opt.nid, upload_photo_url = opt && opt.upload_photo_url; if (!textarea_selector) return; var IMAGE_ITEM_TMPL = $.template(null, $('#image_item_tmpl').html()), IMAGE_DLG_TMPL = $.template(null, $('#image_dlg_tmpl').html()), SLOT_TMPL = $.template(null, $('#image_slot').html()), SLOT_TMPL_LOADING = $.template(null, $('#image_slot_loading').html()), SLOT_TMPL_ERROR = $.template(null, $('#image_slot_error').html()); textarea = $(textarea_selector), dlg = dui.Dialog(); var resetTimer, updateDlg = function() { clearTimeout(resetTimer); resetTimer = setTimeout(function() { dlg.update(); }, 100) }; var parseSize = function(size) { var suffix = ['B', 'KB', 'MB', 'GB'], tier = 0; while (size > 1024) { size = size / 1024; tier++; } return Math.round(size*10) / 10 + "" + suffix[tier]; }; // for comparison of array of objects var by = function(name) { return function(o, p) { var a, b; if (typeof o === 'object' && typeof p === 'object' && o && p) { a = o[name]; b = p[name]; if (a === b) { return 0; } if (typeof a === typeof b) { return a < b ? -1 : 1; } return typeof a < typeof b ? -1 : 1; } else { throw { name: 'Error', message: 'Expected an object when sorting by ' + name }; } }; } /* * ## WIDGET * 1. imageTable 下面的图片列表 * 2. uploadArea 上方的上传区域,根据浏览器初始化 */ var imageTable = function() { var slots, imageList, self, footer, image_num, total_size; var list = [], id = 0; return { init: function() { self = $('.upload-info'); slots = $('#image-slots'); imageList = $('.images', document.getElementById('form_note')); footer = $('.footer', document.getElementById('image_upload')); image_num = footer.find('.image-num'); total_size = footer.find('.image-total-size'); var that = this; // event binding slots.delegate('a.image-delete', 'click', function(e) { e.preventDefault(); var ID = $(this).closest('.slot').attr('data_id'); that.removeSlot(ID); }); }, addSlot: function(name, size, ID) { if (list.length >= 20) { footer.find('.total-num').find('.num-warning').show(); return undefined; } //每个文件有唯一的id,uploadify用它自己的,而其他则用累加器 var ID = ID || id++; var isBasic = !size; if (isBasic) { $.tmpl(SLOT_TMPL_LOADING, { isBasic: isBasic, name: name, ID: ID }).appendTo(slots); } else { $.tmpl(SLOT_TMPL_LOADING, { isBasic: isBasic, name: name, sizeText: parseSize(size), ID: ID }).appendTo(slots); } updateDlg(); list.push({ ID: ID, unfinished: true }); self.show(); return ID; }, removeSlot: function(ID) { if (ID === undefined) { return; } slots.find('[data_id="' + ID + '"]').remove(); for (var i=list.length-1; i>=0; i--) { if (list[i].ID == ID) { list.splice(i, 1); break; } } if (list.length === 0) { self.hide(); } updateDlg(); this.updateInfo(); }, finishSlot: function(real, ID) { if (!real) return; var slot = slots.find('[data_id="' + ID + '"]'); if (slot.length < 1) { $.tmpl(SLOT_TMPL, real).addClass('done').appendTo(slots); } else { $.tmpl(SLOT_TMPL, real).addClass('done').insertAfter(slot); slot.remove(); } for (var i=list.length-1; i>=0; i--) { if (list[i].ID === ID) { list.splice(i, 1, real); break; } } updateDlg(); this.updateInfo(); }, errorSlot: function(error, ID) { var slot = slots.find('[data_id="' + ID + '"]'); if (!error.isBasic) { error.isBasic = false; } if (error.cb) { error.retry = true; } if (slot.length < 1) { $.tmpl(SLOT_TMPL_ERROR, error).appendTo(slots); } else { $.tmpl(SLOT_TMPL_ERROR, error).insertAfter(slot); slot.remove(); } self.show(); if (error.cb) { slot = slots.find('[data_id="' + ID + '"]'); slot.find('a.image-retry').click(function(e) { e.preventDefault(); error.cb(); }); } error.unfinished = true; for (var i=list.length-1; i>=0; i--) { if (list[i].ID === ID) { list.splice(i, 1, error); break; } } updateDlg(); }, progressSlot: function(percentage, ID) { var ID = ID || id; var slot = slots.find('.slot[data_id="' + ID + '"]'); slot.find('.percentage').text(percentage + '%'); slot.find('.progress').css({ width: percentage + '%' }); }, updateInfo: function() { var num = 0, size = 0, i, slot; for (i = list.length - 1; i>=0; i--) { slot = list[i]; if (!slot.unfinished){ num += 1; size += slot.size; } } image_num.text(num); total_size.text(parseSize(size)); }, saveImages: function() { var i, len, slot, tags; list.sort(by('seq')); for (i=0, len=list.length, tags = ''; i<len; i++) { slot = list[i]; if (slot.unfinished){ list.splice(i, 1); } else { tags += '<图片' + slot.seq + '>\n' } } textarea.insert_caret(tags); $.tmpl(IMAGE_ITEM_TMPL, list).appendTo(imageList); imageList.show(). trigger('image:saved'); } }; }(); var sizeLimit = 1024 * 1000 * 5; var uploadArea = { // init function initDnd: function() { var that = this; var droppable = $('.drag-drop', document.getElementById('upload-area')); droppable[0].addEventListener('dragover', function(e) { e.stopPropagation(); e.preventDefault(); e.dataTransfer.dropEffect = 'copy'; }, false); droppable[0].addEventListener('drop', function(e) { e.stopPropagation(); e.preventDefault(); var files = e.dataTransfer.files; for (var i=0, f; f=files[i]; i++) { if (f.type.match(/image.*/)) { that.dndUploadFile(f); } } }, false); }, initUploadify: function() { var data = { note_id: nid, ck: get_cookie('ck') }; data[postParams.siteCookie.name] = postParams.siteCookie.value; $('#image_file').uploadify({ queueID: null, uploader: '/swf/uploadify.swf', expressInstall: '/swf/expressInstall.swf', script: upload_photo_url, fileDataName: 'file', scriptData: data, auto: true, multi: true, buttonText: '', buttonImg: '/pics/upload-pic-btn.png', width: 90, height: 22, rollover: true, sizeLimit: sizeLimit, fileDataName: 'image_file', fileExt: '*.jpeg;*.gif;*.jpg;*.png;', fileDesc: '图片文件', onError: function(e, ID, fileObj, errorObj) { var error = { name: fileObj.name, sizeText: parseSize(fileObj.size), size: fileObj.size, ID: ID }; if (errorObj.type == 'HTTP' || errorObj.type === 'IO') { error.msg = '网络错误'; imageTable.errorSlot(error, ID); } if (errorObj.type == 'File Size') { error.msg = '图片太大'; imageTable.errorSlot(error, ID); } }, onOpen: function(e, ID, fileObj) { var new_id = imageTable.addSlot(fileObj.name, fileObj.size, ID); if (new_id === undefined) { $('#image_file').uploadifyCancel(ID); } }, onCancel: function(e, ID, fileObj, data) { return false; }, onComplete: function(e, ID, fileObj, response, data) { response = $.parseJSON(response); if (response.r !== 0) { var error = { name: fileObj.file_name, sizeText: parseSize(fileObj.size), size: fileObj.size, ID: ID, msg: response.err }; imageTable.errorSlot(error, ID); } var photo = response.photo; var real = { name: fileObj.file_name, sizeText: parseSize(photo.file_size), size: photo.file_size, seq: photo.seq, thumb: photo.thumb, ID: ID }; imageTable.finishSlot(real, ID); }, onProgress: function(e, ID, fileObj, data) { imageTable.progressSlot(data.percentage, ID); return false; }, onSWFReady: function() { updateDlg(); } }); }, initBasic: function() { var that = this; Do('iframe-post-form', function() { var fileInput = $('#image_file'), form = $('#upload-area'); fileInput.change(function(e) { var name = (/([^[\\\/]*)$/.exec(fileInput[0].value) || [])[1], new_id = imageTable.addSlot(name); // basic if (new_id === undefined) { return; } that.basicUploadFile(new_id, form, fileInput); }); }); }, basicUploadFile: function(new_id, form, fileInput) { var suffix = /\.([^\.]+)$/, fileName = /([^\\\/]*)$/, options = { json: true, iframeID: 'iframe-post-' + new_id, post: function() { var hash = { 'jpeg': 1, 'png': 1, 'jpg': 1, 'gif': 1 }; var path = fileInput[0].value; if (!hash[(suffix.exec(path) || [])[1]]) { var error = { name: (fileName.exec(path) || [])[1], ID: new_id, sizeText: '', msg: '请选择图片文件(JPG/JPEG, PNG,或GIF)' }; imageTable.errorSlot(error, new_id); fileInput.val(''); return false; } }, complete: function(response) { var path = fileInput[0].value, name = (fileName.exec(path) || [])[1]; if (response === null) { var error = { name: name, ID: new_id, sizeText: '', msg: '网络错误', cb: function() { var returnNewId; imageTable.removeSlot(new_id); returnNewId = imageTable.addSlot(name, undefined, new_id); if (returnNewId === undefined) { return; } form.trigger('submit'); } }; imageTable.errorSlot(error, new_id); return; } if (response.r !== 0) { var error = { name: name, ID: new_id, sizeText: '', msg: response.err }; imageTable.errorSlot(error, new_id); fileInput.val(''); return; } var photo = response.photo; var real = { name: name, sizeText: parseSize(photo.file_size), size: photo.file_size, seq: photo.seq, thumb: photo.thumb, ID: new_id }; imageTable.finishSlot(real, new_id); } }; form.unbind('submit'); form.iframePostForm(options); form.trigger('submit'); }, // upload function dndUploadFile: function(file) { var new_id = imageTable.addSlot(file.fileName, file.fileSize); if (new_id === undefined) { return; } if (file.fileSize > sizeLimit) { var error = { name: file.fileName, sizeText: parseSize(file.fileSize), size: file.fileSize, ID: new_id, msg: '图片不超过5M' }; imageTable.errorSlot(error, new_id); return; } var formData = new FormData(); formData.append('image_file', file); formData.append('note_id', nid); formData.append('ck', get_cookie('ck')); formData.append(postParams.siteCookie.name, postParams.siteCookie.value); var xhr = new XMLHttpRequest(); xhr.open('POST', upload_photo_url, true); xhr.onreadystatechange = function(e) { if (xhr.readyState === 4) { if (xhr.status === 200) { // success var response = $.parseJSON(xhr.responseText); if (response.r !== 0) { var error = { name: file.fileName, sizeText: parseSize(file.fileSize), size: file.fileSize, ID: new_id, msg: response.err }; imageTable.errorSlot(error, new_id); return; } var photo = response.photo; var real = { name: file.fileName, sizeText: parseSize(photo.file_size), size: photo.file_size, seq: photo.seq, thumb: photo.thumb, ID: new_id }; imageTable.finishSlot(real, new_id); } else { // error var error = { name: file.fileName, sizeText: parseSize(file.fileSize), size: file.fileSize, ID: new_id, msg: '网络错误', cb: function() { xhr.open('POST', upload_photo_url, true); xhr.send(formData); } }; imageTable.errorSlot(error, new_id); } } }; xhr.upload.onprogress = function(e) { if (e.lengthComputable) { var percentage = parseInt((e.loaded/e.total)*100, 10); imageTable.progressSlot(percentage, new_id); } }; xhr.send(formData); } }; var app = { tmplData: {}, init: function(isBasic) { var tmplData = this.tmplData; tmplData.nid = nid; tmplData.UPLOAD_URL = UPLOAD_PHOTO_URL; if (Modernizr.draganddrop && !$.browser.msie && (typeof FormData !== 'undefined')) { tmplData.dnd = true; } else { tmplData.dnd = false; } var flashVersion = swfobject.getFlashPlayerVersion(); if (flashVersion.major > 9) { tmplData.flash = true; } else { tmplData.flash = false; } if (isBasic) { tmplData.dnd = false; tmplData.flash = false; tmplData.basic = true; } else { tmplData.basic = false; } return this; }, open: function() { var that = this; dlg.set({ title: '添加图片', content: $.tmpl(IMAGE_DLG_TMPL, that.tmplData), iframe: true, width: 650, buttons: [{ text: '保存', method: function(o) { imageTable.saveImages(); o.close(); } }, { text: '取消', method: function(o) { o.close(); } }] }); dlg.open(); return this; }, initWidgets: function() { var tmplData = this.tmplData; if (tmplData.dnd) { uploadArea.initDnd(); } if (tmplData.flash) { uploadArea.initUploadify(); } if (!tmplData.flash) { uploadArea.initBasic(); } imageTable.init(); return this; }, bindEvents: function() { var uploadAlter = $('.upload-alternative', document.getElementById('image_upload')); uploadAlter.delegate('.upload-basic', 'click', function(e) { e.preventDefault(); openImageDialog({ textarea_selector: textarea_selector, nid: nid, isBasic: true }); }); uploadAlter.delegate('.upload-multi', 'click', function(e) { e.preventDefault(); openImageDialog({ textarea_selector: textarea_selector, nid: nid }); }); return this; } }; app.init(isBasic). open(). initWidgets(). bindEvents(); }
12ik
trunk/app/site/js/note/image.js
JavaScript
oos
21,953
(function(){ Douban.init_rec_btn = function(e) { var show_dialog = function(s, cb) { Do('dialog', function(){ var dlg = dui.Dialog({ title: '推荐', content: s, width: 500, buttons: [ { text: '确定', method: function(o){ o.footer.find('input:submit, input:button').attr('disabled', 1); o.submit(function(res){ var dlg = dui.Dialog({ width: 300, iframe: true, isHideClose: true, isHideTitle: true, content: '<div class="dlg-success">推荐已成功提交!</div>' }, true).open(); o.close(); setTimeout(function(){dlg.close();dlg.node.remove();}, 500); }); } }, 'cancel'] }), frm; dlg.open(); if (cb) { cb(dlg); } dlg.setTitle(dlg.node.find('.rectitle .m').html() || '推荐'); dlg.updateSize(); dlg.updatePosition(); frm = dlg.node.find('form'); frm.append('<input type="hidden" name="ck" value="' + get_cookie('ck') + '">'); frm.find('.reccomment label').click(function(){ $(this).next().focus(); }); frm.find('.reccomment textarea').focus(function(){ $(this).css('border-color', '#666').prev().hide(); }).blur(function(e){ var el = $(this); if ($.trim(el.val()) === '') { el.css('border-color', '').prev().show(); } }); }); }, that = $(this), _ = that.attr('name').split('-'), cur_date = that.attr('data-date') url = '/j/recommend', rdialog = 'rdialog-' + _[1] + '-' + _[2], f = function () { var uid = ((_[1] == 'I')&&(_[2]==undefined)) ? $('input',$(o).parent())[0].value : _[2], rec = (_[3]==undefined) ? '':_[3], fcs = function(type, node){ var s; if(type == 'I'){ s = $('.text', node); if(s.length){ if(s[0].value.length){s[1].focus();} else{s[0].focus();} } }else{ node.find(':submit').focus(); } if (that.hasClass('novote')){ //it's a new test version of rec btn $('form', node).append('<input name="novote" value="1" type="hidden">'); } }; if($('#' + rdialog).length){ show_dialog($('#' + rdialog).html(), function(o){ fcs(_[1], o.node); }); }else{ $.getJSON(url, {type:_[1], uid:uid, rec:rec, date:cur_date}, function(r){ var rechtml; show_dialog(r.html, function(o){ if(_[1]!='I'){ rechtml = $('<div id="'+rdialog+'"></div>'); rechtml.html(r.html).appendTo('body').hide(); } fcs(_[1], o.node); }); }); } }; f(); if(_[1] == 'I'){ that.parent().parent().submit(f); } }; Douban.init_show_login = function (e) { IK('dialog', function(){ var api = siteUrl + 'user/misc/login'; dui.Dialog({ title: '登录', url: api, width: 350, cache: true, callback: function(da, o) { o.node.addClass('dialog-login'); o.node.find('h2').css('display', 'none'); o.node.find('.hd h3').replaceWith(o.node.find('.bd h3')); o.node.find('form').css({ border: 'none', width: 'auto', padding: '0' }); o.updateSize(); o.updatePosition(); } }).open(); }); }; Douban.init_click_tip = function(e){ var el = $(this), mark = 'a_click_tip_inited', tip = el.parent().find('.blocktip'); tip.show().blur_hide(); m = tip.width() + tip.pos().x - $.viewport_size()[0] > 0? -tip.width() : 0; tip.css('margin-left', m); if (!el.hasClass(mark)) { $('.hideme',tip).click(function(){ tip.hide(); }); el.addClass(mark); } }; Douban.init_confirm_link = function(e) { var el = $(this), text = el.attr('title') || el.text(); if(confirm(text)){ self.location = el.attr('href'); } }; Douban.init_rating_stars = function(o) { var ratewords = {1:'很差', 2:'较差', 3:'还行', 4:'推荐', 5:'力荐'}, num = $('#n_rating'), stars = o.find('img'), handle = function(i) { var rating = num.val() || 0; stars.each(function(j){ this.src = this.src.replace(/\w*\.gif$/, ((j<i) ? 'sth' : ((j<rating) ? 'st' : 'nst')) + '.gif'); }); if (i) { $('#rateword').text(ratewords[i]); } else { $('#rateword').text(rating ? ratewords[rating] : ''); } }; stars.hover(function(){ handle(parseInt(this.id.match(/\d+/)[0])); }, function(){ handle(0); }); if(num.attr('name')){ stars.click(function(){ var rating = parseInt(this.id.match(/\d+/)[0]); num.val(rating); handle(rating); }); } }; Douban.init_collect_btn = function(e) { var _ = $(this).attr('name').split('-'), btn_type = _[0], sid = _[1], interest = _[2], rating = _[3], url = '/j/subject/'+sid+'/interest?'+ (interest ? 'interest='+interest : '')+ (rating ? '&rating='+rating : '')+ (btn_type == 'cbtn' ? '&cmt=1':''), populate_tag_btns = function(title, div, tags, hash){ if (tags.length) { var p = $('<dl><dt>'+title+'</dt></dl>'),d = $('<dd></dd>'); $.each(tags, function(i,tag) { var btn = $('<span class="tagbtn"/>').addClass(hash[tag.toLowerCase()]?'rdact':'gract').text(tag); d.append(btn).append(' &nbsp; '); }); p.append(d); div.append(p); } }; Do('dialog', function(){ var tags, content, hash = {}, oprd, rate, r, f, save = function(o){ var frm = o.node.find('form'), da = Douban.get_form_fields(frm); $(':submit', o.node).css('disabled', 1); $.post_withck(frm.attr('action'), da, function(e){ o.close(); }, 'json'); }, updateUI = function(o){ $('.gact,.bd h2,form input:submit, form input:button', o.node).hide(); $('input[name=tags]', o.node).val((content.length > 1)? content + ' ' : content) $.each(tags, function(i,tag){hash[tag.toLowerCase()]=true;}); populate_tag_btns('我的标签:', $('#mytags', o.node), r['my_tags'], hash); populate_tag_btns("常用标签:", $('#populartags', o.node), r['popular_tags'], hash); $('form', o.node).append('<input type="hidden" name="ck" value="' + get_cookie('ck') + '">'); }, bindEvent = function(o){ var frm = o.node.find('form'), timer, rating, checkLength = function(e){ var el = $(this), max = 140, err = el.next(), frm = el.parents('form'); if ($.trim(el.val()).length > max) { frm.data('hasError', 1); if (!err.hasClass('attn')) { err = $('<div class="attn"></div>').insertAfter(el); } err.html('最多只能写' + max + '字'); o.updateSize(); o.updatePosition(); } else if(err.hasClass('attn')) { err.html(''); o.updateSize(); o.updatePosition(); } }; $('#showtags').click(function(){ if($('#advtags').is(':hidden')){ $(this).html('缩起 ▲'); $('#advtags').show(); $('#foldcollect').val('U'); }else{ $(this).html($(this).attr('rel')); $('#advtags').hide(); $('#foldcollect').val('F'); } $(this).blur(); o.updateSize(); o.updatePosition(); }); frm.submit(function(e){ e.preventDefault(); save(o); }); $('#populartags .tagbtn').click(function(e){ var el = $(e.currentTarget), word = el.html(), inp = frm[0].elements['tags']; if ((' ' + inp.value + ' ').indexOf(' ' + word + ' ') + 1){ el.removeClass('selected'); inp.value = $.trim((' ' + inp.value + ' ').replace(' ' + word + ' ', ' ')); } else { el.addClass('selected'); inp.value = $.trim(inp.value + ' ' + word); } }); $('input[name=tags]', frm).keyup(function(e){ var inp = $(this); if (timer) { window.clearTimeout(timer); } timer = window.setTimeout(function(){ var tags = $('#populartags .tagbtn'); tags.removeClass('selected'); $($.trim(inp[0].value).split(' ')).each(function(i, tag){ tags.each(function(i, e){ var el = $(e); if ( el.html() === tag) { el.addClass('selected'); } }); }); }, 500); }); $('textarea[name=comment]', frm).keyup(checkLength).mouseup(checkLength); rating = o.node.find('.a_stars'); if (rating.length) { Douban.init_rating_stars(rating); } }; dui.Dialog({ isHideTitle: true, width: 500, url: url, buttons: [ { text: '保存', method: function(o){ save(o); } }, 'cancel'], callback: function(res, o){ r = res, tags = r.tags; content = tags.join(' '); o.setContent('<div class="collect-dialog">' + r.html + '</div>'); o.setTitle(o.node.find('h2').html()); o.node.find('.hd').show(); updateUI(o); bindEvent(o); o.updateSize(); o.updatePosition(); } }).open(); }); }; Douban.init_post_link = function(e) { var el = $(this), href = el.attr("href"), text = el.attr("title") || el.text() + "?", post_url = href.split("?")[0], post_args = {}, args = href.split("?")[1] || []; if (typeof args === 'string') { args = args.split("&"); } e.preventDefault(); // prevent continuous click if (el.hasClass('processing')) { return; }; // parse query string for (i=0; i<args.length; i++) { var pair = args[i].split("="); post_args[pair[0]] = pair[1]; } // first confirm the operation if (confirm(text)) { el.addClass('processing'); $.post_withck(post_url, post_args, function(e){ el.removeClass('processing'); location.reload(true); }); } }; //自变改变聊天室窗口大小 Douban.autoUpdateChatWindow = function(h) { if (!Douban.currentChatWindow) { return; } var dlg = Douban.currentChatWindow; dlg.node.find('iframe')[0].height = h; dlg.update(); }; //打开聊天室 Douban.init_chat_room = function(e) { var el = $(this), init = function(){ var dlg = dui.Dialog({ content: '<iframe src="' + el.attr('href') + '" width="100%" height="200" frameborder="0" scrolling="no"></iframe>', isHideTitle: true, width: 650 }).open(); dlg.node.find('.dui-dialog-close').unbind().click(function(){ if (confirm('确认要离开聊天室吗?')) { dlg.node.find('iframe')[0].contentWindow.onWindowClose(); dlg.setContent(''); dlg.close(); } }); dlg.node.addClass('dialog-chat'); Douban.currentChatWindow = dlg; }; Do('dialog', init); }; //聊天室激活和续租 Douban.init_chat_activate = function(e) { var el = $(this), // param: id|datetime|balance|is_relet param = el.attr('href').split('#')[1].split('|'), balance = param[2], label = typeof param[3] === 'undefined'? '激活' : '续租', dlg, content = '<div class="join-tips"><h3>' + label + '聊天桌需要花 '+ CHAT_FEE +' 颗小豆</h3><p>使用期限: ' + (param[1] || '(未激活)') + '</p></div>', handleActivate = function() { $.getJSON('/j/widget/chat/' + param[0] + '/activate', {}, function (o) { failure = { content: label + '失败:' + o.error, buttons: ['confirm'] }; if (o.r == 1) { location.reload(); }else{ dlg.set(failure); } }); }, buttons = [{text: label, method: handleActivate}, 'cancel']; if (balance < CHAT_FEE) { content = '<div class="join-tips"><h3>' + label + '聊天桌需要花 '+ CHAT_FEE +' 颗小豆</h3>' + '<p>使用期限: ' + (param[1] || '(未激活)') + '</p>' + '<p>目前小豆数: <span style="color:red">' + balance + '</span></p></div>'; buttons = [{ text: '知道了', method: function() { dlg.close(); } }]; } Do('dialog', function(){ dlg = dui.Dialog(); dlg.set({ width: 350, content: content, buttons: buttons }).open(); dlg.updateSize(); dlg.updatePosition(); }); }; })();
12ik
trunk/app/site/js/common_eventhandler.js
JavaScript
oos
15,727
Douban.init_add_video = function(o) { var url = $(this)[0].href.replace('/widget/', '/j/widget/'), add = function(e){ if(e){ e.preventDefault(); } Douban.remote_submit_json(this.node.find('form')[0], $.proxy(function(r){ var err; if(!r.error){ location.reload(); return; } err = this.node.find('.bd .attn'); if(err.length === 0){ this.node.find('.bd').append('<div class="attn">' + r.error + '</div>'); }else{ err.html(r.error); } this.updateSize(); this.updatePosition(); }, this), false); }; $.getJSON(url, function(r){ var dlg = dui.Dialog({ title: '添加视频', content: r.html, width: 500, buttons: [ {text: '添加', method:function(o){ add.call(o, null); }}, 'cancel' ] }).open(); dlg.node.find('form').submit($.proxy(add, dlg));; }); }; Douban.init_edit_video = function(o) { var url = $(this).attr('href').replace('/widget/', '/j/widget/'), edit = function(frm, o){ Douban.remote_submit_json(frm, $.proxy(function(r){ var err; if(!r.error){ location.reload(); return; } err = this.node.find('.bd .attn'); if(err.length === 0){ this.node.find('.bd').append('<div class="attn">' + r.error + '</div>'); }else{ err.html(r.error); } this.updateSize(); this.updatePosition(); }, o), false); }; $.getJSON(url, function(r){ var dlg = dui.Dialog({ title: '修改视频', content: r.html, width: 500, buttons: [ {text: '修改', method:function(o){ edit(o.node.find('form')[0], o); }}, 'cancel' ] }).open(); dlg.node.find('form').submit(function(e){ e.preventDefault(); edit(this, dlg); }); }); };
12ik
trunk/app/site/js/video.js
JavaScript
oos
2,198
$(function(){ var config = { opacity: .6, handle: '.hd h2', placeholder: 'sort_helper', connectWith: '.drop-area', items: '.sort', scroll: true, tolerance: 'pointer', start: function (e, ui) { ui.placeholder.height(ui.helper.height() - 4); ui.placeholder.css('margin-bottom', ui.helper.css('margin-bottom')); }, change: function (e, ui) { var placeholder = ui.placeholder, self = ui.item[0]; if ($(self).hasClass('vonly') && this !== self.parentNode) { placeholder.html('此模块只能垂直拖动'); } else { placeholder.html(''); } }, stop: function (e, ui) { var self = ui.item[0], mod_id = self.id.toLowerCase(), container = self.parentNode, pos = $(container).hasClass('aside')? 'r' : 'l', mods = []; r_mods = []; if (this !== container) { if ($(self).hasClass('vonly')) { $(this).sortable('cancel'); } else { $.getJSON('/j/widget/'+ mod_id.split('-').join('/') + '/?pos=' + pos, function(da){ $(self).replaceWith(da.html) } ); } } $('.main .sort').each(function () { var extra = $(this).find("#extra")[0]; mods.push(extra ? this.id + extra.value : this.id); }); $('.aside .sort').each(function () { var extra = $(this).find("#extra")[0]; r_mods.push(extra ? this.id + extra.value : this.id); }); $.post(mine_page_url, { mods: mods.join(','), r_mods: r_mods.join(','), ck: get_cookie('ck') }); } }; $(function(){ $('.main').addClass('drop-area').sortable(config); if ($('.aside').length) { $('.aside').addClass('drop-area').sortable(config); } }); });
12ik
trunk/app/site/js/test.js
JavaScript
oos
2,273
$(function(){ var config = { opacity: .6, handle: '.hd h2', placeholder: 'sort_helper', connectWith: '.drop-area', items: '.sort', scroll: true, tolerance: 'pointer', start: function (e, ui) { ui.placeholder.height(ui.helper.height() - 4); ui.placeholder.css('margin-bottom', ui.helper.css('margin-bottom')); }, change: function (e, ui) { var placeholder = ui.placeholder, self = ui.item[0]; if ($(self).hasClass('vonly') && this !== self.parentNode) { placeholder.html('此模块只能垂直拖动'); } else { placeholder.html(''); } }, stop: function (e, ui) { var self = ui.item[0], mod_id = self.id.toLowerCase(), container = self.parentNode, pos = $(container).hasClass('aside')? 'r' : 'l', mods = []; r_mods = []; //this 当前元素的父容器 container 目标容器 if (this !== container) { if ($(self).hasClass('vonly')) { $(this).sortable('cancel'); } else {//alert(this.className+"container="+container.className) //$.getJSON('/j/widget/'+ mod_id.split('-').join('/') + '/?pos=' + pos, // function(da){ // $(self).replaceWith(da.html) // } // ); } } $('.main .sort').each(function () { var extra = $(this).find("#extra")[0]; mods.push(extra ? this.id + extra.value : this.id); }); $('.aside .sort').each(function () { var extra = $(this).find("#extra")[0]; r_mods.push(extra ? this.id + extra.value : this.id); }); $.post(mine_page_url, { mods: mods.join(','), r_mods: r_mods.join(','), ck: get_cookie('ck') }); } }; $(function(){ $('.main').addClass('drop-area').sortable(config); if ($('.aside').length) { $('.aside').addClass('drop-area').sortable(config); } }); });
12ik
trunk/app/site/js/mod_dragdrop.js
JavaScript
oos
2,398
$(function(){ var nav = $('.nav-items').disableSelection(), more = $('#room-more ul:first'), maxWidth = 650, refreshTabs = function(){ var total = 0, item, citem, ul; item = more.find('li:first'); citem = item.clone().css('visibility', 'hidden'); ul = nav.find('ul:first').append(citem); nav.find('ul:first>li:not(.opt)').each(function(i,e){ total += e.offsetWidth; }); citem.remove(); if (total < maxWidth) { item.insertBefore(more.parent()); } }, refreshConfig = function(){ $('li:not(.opt)', nav).draggable('option', 'cursorAt', false); $('#room-more ul li').each(function(i, e){ $(e).draggable('option', 'cursorAt', {right: Math.floor($(e).text().replace(/\s/g,'').length * 12 / 2)}); }); }, saveTabs = function(){ var roomID = [], hideRoomID = [], api = siteUrl+'index.php?app=site&ac=admins&ts=layout&siteid={ID}', siteId; siteId = globalsiteid; //全局小站id 只针对room 使用 //siteId = typeof mine_page_url === 'undefined' ? self.location.href.match(/\/([^/]+)\/room/)[1] : mine_page_url.match(/site\/([^/]+)/)[1]; nav.find('ul:first>li:not(.opt)>a').each(function(i, e){ roomID.push(e.getAttribute('roomid')); }); //console.log(roomID.slice(0, roomID.length-1)); //console.log(api.replace('{ID}', siteId)) //更多房间 /** more.find('li>a').each(function(i, e){ hideRoomID.push(e.getAttribute('href').match(/room\/(\d+|[^/]+)/)[1]); }); **/ $.post(api.replace('{ID}', siteId), { //tabs: roomID.slice(0, roomID.length-1).join(',') + ',' + hideRoomID.join(','), tabs: roomID.slice(0, roomID.length-1).join(','), ck: get_cookie('ck') }); }; $('li:not(.opt)', nav).draggable({ helper: 'clone', axis: 'x', opacity: 0.8, appendTo: '.nav-items ul:first', refreshPositions: true, start: function(e, ui){ var that = $(this), x = e.clientX; that.css({'opacity': 0, 'whiteSpace': 'nowrap'}); if (more.length > 0 && $.contains(more[0], this)) { that.draggable('option', 'axis', false); } ui.helper.css({'zIndex': 999, 'border': 'none', 'whiteSpace': 'nowrap'}); }, stop: function(){ $(this).css({opacity: 1, width: 'auto'}).draggable('option', 'axis', 'x'); saveTabs(); refreshConfig(); } }) .droppable({ over: function(e, ui){ //ui.draggable.insertBefore(this); var li = $('#nav-items-mark'), duration = 200, w = ui.helper.width(); if (li.length === 0) { li = $('<li id="nav-items-mark" style="width:0;overflow:hidden;visibility:hidden;">'); } li.stop().css('width', 0).show(); ui.draggable.css('opacity', 0).stop(); if (more.length > 0 && $.contains(more[0], ui.draggable[0])) { li.hide(); ui.draggable.insertBefore(this); return; } ui.draggable.animate({width: 0}, duration); if (ui.draggable.offset().left < $(this).offset().left) { // back li.insertAfter(this).animate({width: w}, duration, function(){ ui.draggable.css('width', 'auto').insertBefore(this); this.style.display = 'none'; }); } else { // forward li.insertBefore(this).animate({width: w}, duration, function(){ ui.draggable.css('width', 'auto').insertBefore(this); this.style.display = 'none'; }); } }, /* out: function(e, ui){ ui.draggable.insertAfter(this); }, */ drop: function(e, ui){ var total = 0, lastItem; nav.find('ul:first>li:not(.opt)').each(function(i,e){ total += e.offsetWidth; }); if (total > maxWidth) { lastItem = more.parent().prev(); if (lastItem.hasClass('on')) { lastItem = lastItem.prev(); } lastItem.insertBefore(more.find('li:first')); } } }); $('#room-more').droppable({ tolerance: 'touch', over: function(e, ui){ $(this).css('opacity', 0.8); }, out: function(){ $(this).css('opacity', 1); }, drop: function(e, ui){ var dragItem = ui.draggable, that = $(this); that.css('opacity', 1); if (dragItem.hasClass('on') || ui.helper.offset().left < $(this).offset().left) { return; } that.find('ul:first').append(dragItem); refreshTabs(); } }); $('#room-admin li').draggable('option', 'disabled', true); refreshConfig(); });
12ik
trunk/app/site/js/nav_dragdrop.js
JavaScript
oos
4,962
function tips(c){ $.dialog({content: '<font style="font-size:14px;">'+c+'</font>',fixed: true, width:300, time:1500}); } function succ(c){ $.dialog({icon: 'succeed',content: '<font style="font-size:14px;">'+c+'</font>' , time:2000});} function error(c){$.dialog({icon: 'error',content: '<font style="font-size:14px;">'+c+'</font>' , time:2000});} var loading = { show: function(obj){ $(obj).show();}, hide: function(obj){ $(obj).hide();} } //加小站list function loadSite(text, page) { //alert(text) var url = siteUrl+'index.php?app=site&ac=explore&ts=tag'; $.ajax({ async: false,//同步加载数据 type:"POST", url: url, dataType:"json", data:"tagname="+text+"&page="+page, beforeSend:function(){ loading.show('.site-loading'); }, success:function(res){ var items=''; if(res==null){ $('.site-list').html('<li class="pl" style="text-align:center; line-height:35px">暂无该标签的小站;重新发现小站吧!</li>');$('.site-more').fadeOut(100); loading.hide('.site-loading'); return; } for(var i=0; i<res.length; i++) { items += '<li class="site-item">' +'<div class="pic">' +'<a title="'+res[i]['sitename']+'" href="'+res[i]['url']+'" target="_blank">' +'<img width="75" height="75" src="'+res[i]['icon_75']+'" alt="'+res[i]['sitename']+'">' +'</a>' +'</div>' +'<div class="info">' +'<div class="title">' +'<a title="'+res[i]['sitename']+'" href="'+res[i]['url']+'" target="_blank">'+res[i]['sitename']+'</a>' +'</div>' +'<p>'+res[i]['sitedesc']+'</p>' +'</div>' +'</li>'; } if(page==1) { $('.site-list').html(items); loading.hide('.site-loading'); }else{ $('.site-list').append(items); loading.hide('.site-loading'); } if(page==res[0]['page']) { $('.site-more').fadeOut(100); }else { $('.site-more').html('<span class="stat"><a href="javascript:;" onclick="loadSite(\''+res[0]['tagname']+'\','+(page+1)+')">加载更多</a></span>').fadeIn(100); } } }) } //新建小站 tag-items function tags(obj) { var text = $(obj).text(), input = $('#tag'); var vals = $('#tag').val(); //设置input if($(obj).hasClass('selected')) { $(obj).removeAttr('class'); //删除 var value = vals.replace(' '+text, '').replace(text, '').replace(/\s+/, ' '); input.val($.trim(value)); }else{ if(vals.split(' ').length < 5) { $(obj).attr('class','selected'); input.val(vals ? vals + " " + text : text); } } } //提交新建site function createSite(that) { var title = $(that).find('input[name=sitename]').val(); var content = $(that).find('textarea[name=sitedesc]').val(); if(title == '' || content == ''){tips('请填写标题和内容'); return false;} $(that).find('input[type=submit]').val('正在提交^_^').attr('disabled',true); }
12ik
trunk/app/site/js/extend.func.js
JavaScript
oos
2,986
(function(){ var isIE8 = $.browser.msie && parseInt($.browser.version) === 8, siteId = $('body').attr('id'), ERR_BLANK = '模块标题不能为空', switchSetting = function(el, stat) { var mod = el.parents('.mod'), hd = mod.find('.hd'), lnk = hd.find('a.a_lnk_mod_setting'); if (stat === 'on' ) { el.slideDown('fast'); hd.addClass('stat-active'); lnk.addClass('on'); lnk.html('关闭设置'); }else{ el.slideUp('fast', function(){ if(isIE8){ $(this).parent().find('.fix_ie8_bug').remove(); $('<div class="fix_ie8_bug" style="height:1px;overflow:hidden;margin-top:-1px;"></div>').insertBefore(this); } }); el.find('form')[0].reset(); mod.find('.setting-panel .attn').html(''); hd.removeClass('stat-active'); lnk.removeClass('on'); lnk.html('设置'); } }, initSettingForm = function(frm){ //提交时触发 frm.submit(function(e){ e.preventDefault(); var frm = $(this), err, title = frm.find('input[name=title]'), url = frm.attr('action'); if ($.trim(title.val()) === '') { err = title.next(); if (err.length && err.hasClass('attn')) { err.html(ERR_BLANK); } else { $(' <span class="attn">' + ERR_BLANK + '</span>').insertAfter(title); } return; } frm.find('input:submit').attr('disabled', true); $.post_withck(url, Douban.get_form_fields(frm), $.proxy(function(e){ var url, frm = this, title, mod, err, e = (typeof e === 'object')? e : $.parseJSON(e); frm.find('input:submit').attr('disabled', false); //r=1,has error if(e.r){ err = frm.prev(); if (err.length && err.hasClass('attn')) { err.html(e.error); } else { $('<div class="attn">' + e.error + '</div>').insertBefore(frm); } return; } mod = frm.parents('.mod'); //change room if (e.html === '') { mod.fadeOut(function(){ $(this).remove(); }); return; } //success update content title = $('input[name=title]', frm).val(); mod.find('.bd').html(e.html); // setting panel within archives list when // there's an archives attrbute on mod object. if (typeof mod.attr('archives') == 'undefined') { mod.find('.hd h2 span:eq(0)').html(title); } else { mod.find('.hd span:eq(1) a').text(title); } switchSetting(frm.parents('.setting-panel'), 'off'); }, frm)); }); }; Douban.init_cancel_setting_panel = function(e){ switchSetting($(this).parents('.setting-panel'), 'off'); }; Douban.init_archive_mod = function(e) { var el = $(this); var url = el.attr('href'); var is_archive = url.indexOf('unarchive') < 0; var msg = '确定要将' + el.attr('screen_name') + '"' + el.attr('title') + '"' + ( is_archive ? '存档?<br/><span style="color:#999">提示:存档后可在房间底部的“更多应用”内找到。<span>' : '恢复到' + el.attr('room_name') + '?'); dui.Dialog({ width: 360, iframe: true, content: msg, buttons: [{ text: '确定', method: function(o){ o.close(); $.post_withck( url, {}, function(r) { var da = (typeof r === 'string') ? $.parseJSON(r) : r; if (da.r === 1) { dui.Dialog({width: 360, iframe: true, content: da.error, buttons: ['confirm']}).open(); return; } el.parents('.mod').fadeOut(function(){ $(this).remove(); }); // 出现“更多应用”的链接 if (is_archive) { var div = el.parents('.mod').siblings('div#div_archives'); if(div && div.css('display') == 'none') { div.fadeIn(); } } } ); } }, 'cancel'] }).open(); return; }; Douban.init_delete_mod = function(e){ var el = $(this), text = el.attr('title') || el.text(), url = el.attr('href'); if(confirm(text)){ $.post_withck(url, {}, $.proxy(function(r){ var da = (typeof r === 'string') ? $.parseJSON(r) : r; if (da.r === 1) { var error_tip = da.error ? da.error : '删除失败。'; dui.Dialog({width: 300, iframe: true, content: error_tip, buttons: ['confirm']}).open(); return; } this.parents('.mod').fadeOut(function(){ $(this).remove(); }); },el)); } }; Douban.init_lnk_mod_setting = function(e){ var el = $(this), mod = el.parents('.mod'), hd = mod.find('.hd').first(), url = el.attr('rel'); // url = siteUrl + 'index.php?app=site&siteid=' + siteId +'&ac=' + mod.attr('id').split('-')[0] + "&ts=settings&"+ mod.attr('id').split('-')[0] +'id='+ mod.attr('id').split('-')[1], //url = siteUrl + 'index.php?app=site&ac=' + mod.attr('id').split('-')[0] + "&ts=settings&"+ mod.attr('id').split('-')[0] +'id='+ mod.attr('id').split('-')[1], setting = mod.find('.setting-panel'); // can't click while loading. if (el.hasClass('lnk_setting_loading')){ return; } if (el.hasClass('on')) { switchSetting(setting, 'off'); } else { if(setting.length === 0){ $('<div class="setting-panel"></div>').insertAfter(hd); setting = mod.find('.setting-panel'); } el.addClass('lnk_setting_loading'); setting.html('<div class="loading">下载中......</div>'); $.getJSON(url, $.proxy(function(r){ this.html(r.html); el.removeClass('lnk_setting_loading'); initSettingForm(this.find('form')); switchSetting(setting, 'on'); }, setting)); } }; })();
12ik
trunk/app/site/js/setting_eventhandler.js
JavaScript
oos
6,165
IK('dialog', 'effects', function () { $(function () { /* global var */ var adding = false, renamePath = '', dlg = dui.Dialog(), color_fade = '#ffc', oTips = $('.widget-tips'), oFnBox = $('.sp-fn-box'), oSpUser = $('#sp-user'), oRename = $('#room-rename'), oSaveName = oRename.next(), oBoxClose = $('.box-close'), oRoomDelBn = $('.room-del'), oCreateRoom = $('#new-room'), oWidgetsBox = $('.widgets-box'), oAddWidget = $('.widgets-slider .lnk-add'), oCurrTab = $('.nav-items li > a:has("em") span'), oCurrEditor = $('.nav-items li > a:has("em") em, .street-editor'), siteId = $('body').attr('id'), roomName = $('#room-rename').val(), css_mod_wrap = '#content .main', templ_added = '<em></em>添加成功', templ_add_tips = '<span class="txt-added">正在添加</span>'; templ_box_loading = '<p class="box-loading">正在载入...</p>', isModEmpty = $('.main .sort').length==0 ? true : false, showBox = function (speed) { oFnBox.children().hide(); oSpUser.css('margin-top', '0'); oFnBox.slideDown(speed). append(templ_box_loading); setTimeout(function () { $('.box-loading').remove(); if ($.browser.msie && $.browser.version === '8.0') { oFnBox.children().show(); } else { oFnBox.children().fadeIn(); } oWidgetsBox.hide().eq(0).show(); if (isRoomEmpty) { oRename.focus(); } }, speed); }, DoCreateRoom = function (e) { $.post_withck( siteUrl+'index.php?app=site&ac=create_room&siteid=' + siteId, function (o) { if (!o.error) { location.href = o.room; } else { dlg.set({ width: 300, content: o.error, buttons: ['confirm'] }).open(); } }, 'json' ); }, roomRename = function (name,roomid) { oCurrTab.text(name);//设置名称 发送ajax $.post_withck( siteUrl+'index.php?app=site&ac=roomRename&siteid=' + siteId+'&roomid='+roomid, { 'name': name } ); }; oWidgetsBox.slider(); // load fn-box for blank room if (!isSiteFirstEnter && isRoomEmpty && isModEmpty) { showBox(500); } // var renamePath if (location.pathname.split('/').length === 3) { renamePath = 'room_settings/'; // for homepage } else { renamePath = 'settings/' } // widgets-list type swither oTips.click(function () { var type = $(this).attr('id').split('-')[1]; oTips.removeClass('selected'); $(this).addClass('selected'); oWidgetsBox.hide(); $('#widget-' + type).fadeIn(); }); // delete room/ oRoomDelBn.click(function (e) { e.preventDefault(); isModEmpty = !$('.main .sort').length && !$('#div_archives').length ? true : false; var delUrl = '/j/site/' + siteId + '/room/' + $(this).attr('id').split('_')[1] + '/settings/delete'; if (isModEmpty) { dlg.set({ width: 300, content: '确定要删除房间?', buttons: [{ text: '确定', method: function (o) { o.close(); $.post_withck( delUrl, { 'name': roomName }, function () { // back to home location.href = '/' + siteId + '/'; } ); } }, 'cancel'] }).open(); } else { dlg.set({ width: 300, content: '需要先把空间里的应用模块清理掉 再删除房间', buttons: ['confirm'] }).open(); } }); // create new room oCreateRoom.click(function (e) { e.preventDefault(); $.post_withck( siteUrl+'index.php?app=site&ac=create_room_check&siteid=' + siteId, function (o) { if (o.code == 'go_ahead') { DoCreateRoom(); } else if (o.code == 'reach_max_limit') { dlg.set({ width: 300, content: o.error, buttons: ['confirm'] }).open(); } else if (o.code == 'not_enough') { dlg.set({ width: 320, content: o.error, buttons: [{ text: '我知道了', method: function (x){ x.close(); } }] }).open(); } else if (o.code == 'need_confirm') { dlg.set({ width: 300, content: o.error, buttons: [{ text: '确定增加', method: function (o) { o.close(); DoCreateRoom(1); } }, 'cancel'] }).open(); } else if (o.code == 'cant_admin_dou') { dlg.set({ width: 280, content: o.error, buttons: [{ text: '我知道了', method: function (o) { o.close(); } }] }).open(); } }, 'json' ); }); // fn-box switcher oCurrEditor.click(function (e) { e.preventDefault(); if (oFnBox.is(':hidden')) { showBox(500); $(this).addClass('current'); } else { oFnBox.slideUp(300); $(this).removeClass(); oSpUser.css('margin-top', '-100px'); } }); // room rename oRename.keyup(function (e) { if (e.keyCode === 13) { var newName = e.target.value; var roomId = oRename.attr('roomid'); roomRename(newName,roomId); } }); oSaveName.click(function (e) { var newName = oRename.val(); var roomId = oRename.attr('roomid'); roomRename(newName,roomId); }); // close fn-box oBoxClose.click(function (e) { e.preventDefault(); $(this).parent().slideUp(300); oFnBox.slideUp(300); oCurrEditor.removeClass(); oSpUser.css('margin-top', '-100px'); }); // add widgets oAddWidget.click(function (e) { e.preventDefault(); var self = this, roomid = $(self).attr('roomid'), widget_kind = e.target.id.split('-')[1]; if (!$(this).data('adding')) { $(this).data('adding', 1); $.post_withck( siteUrl+'index.php?app=site&ac=widgets&siteid=' + siteId+'&roomid='+ roomid, { 'kind': widget_kind }, function (mod) { if (!mod.error) { $(self).hide().after(templ_add_tips); $(css_mod_wrap).prepend(mod.html); $(css_mod_wrap + ' .mod:first'). css('backgroundColor', color_fade). animate({ backgroundColor: 'white' }, 1500); $(self).next().html(templ_added); setTimeout(function () { $(self).show().next().remove(). end().data('adding', 0); }, 10000); } else { dlg.set({ width: 300, content: mod.error, buttons: ['confirm'] }).open(); } }, 'json' ); } }); // user guide if (isSiteFirstEnter) { (function () { var siteId = $('body').attr('id'), tmpl_tips = '<div class="user-guide"><em></em><h1>{TITLE}</h1><span>{PAGE}</span><p>{CONTENT}</p><a id="{ID}" href="#" class="lnk-add">{BUTTON}</a></div>', oTxtStep1 = { 'title': '小站设置', 'page': '1/2', 'content': '16套主题模板,让你的小站与众不同。', 'button': '知道了', 'id': 'next-step' }, oTxtStep2 = { 'title': '房间改名和添加应用', 'page': '2/2', 'content': '不仅可以随心搭配多种精彩的应用,还可以通过拖拽标签来改变房间顺序。', 'button': '立即开启', 'id': 'close' }; $('#room-admin').append(tmpl_tips. replace('{TITLE}', oTxtStep1.title). replace('{PAGE}', oTxtStep1.page). replace('{CONTENT}', oTxtStep1.content). replace('{BUTTON}', oTxtStep1.button). replace('{ID}', oTxtStep1.id) ); $('#next-step').live('click', function (e) { e.preventDefault(); $(this).parent().remove(); $('.nav-items .on').append(tmpl_tips. replace('{TITLE}', oTxtStep2.title). replace('{PAGE}', oTxtStep2.page). replace('{CONTENT}', oTxtStep2.content). replace('{BUTTON}', oTxtStep2.button). replace('{ID}', oTxtStep2.id) ); $('.user-guide').css('left', '4px'); }); $('#close').live('click', function (e) { e.preventDefault(); $(this).parent().remove(); showBox(500); $.post_withck( siteUrl+'index.php?app=site&ac=tips&siteid=' + siteId, { isSetting: '1'} ); }); })(); } }); });
12ik
trunk/app/site/js/room-setting.js
JavaScript
oos
12,306
(function(){ var site_list = /http:\/\/movie.douban.com\/sogou_search|http:\/\/audit.douban.com/; if (self !== top && document.referrer.search(site_list) === -1) { top.location = self.location; } })(); var Douban = Douban || {}; if (top.location !== self.location && document.referrer.search(/http:\/\/[^\/]+\.douban\.com/i) !== 0) { top.location = self.location; } Douban.errdetail = [ '','未知错误','文件过大', '信息不全','域名错误','分类错误', '用户错误','权限不足','没有文件', '保存文件错误','不支持的文件格式','超时', '文件格式有误','','添加文件出错', '已经达到容量上限','不存在的相册','删除失败', '错误的MP3文件','有禁用的内容,请修改重试']; Douban.trace = function(o){ if(!/^http:\/\/(www|movie|music\.|book|douban\.fm)/.test(location.href) && window.console && window.console.log){ $(arguments).each(console.log); } } Douban.report = function(s){$.get('/j/report?e='+s)} Douban.get_form_fields = function(form) { var param = {}; $(':input', form).each(function(i){ var name = this.name; if (this.type == 'radio') { if (this.checked) param[name] = this.value; } else if (this.type == 'checkbox') { if (this.checked) param[name] = this.value; } else if (this.type == 'submit'){ if (/selected/.test(this.className)) param[name] = this.value; } else { if (name) param[name] = this.value; } if(/notnull/.test(this.className) && this.value == ''){ $(this).prev().addClass('errnotnull'); param['err'] = 'notnull'; } }); return param; }; Douban.check_form = function(form){ var _re = true; $(':input',form).each(function(){ if((/notnull/.test(this.className) && this.value == '') || (/most/.test(this.className) && this.value && this.value.length>/most(\d*)/.exec(this.className)[1])) { $(this).next().show(); _re = false; }else{ if(/attn/.test($(this).next().attr('className'))) $(this).next().hide(); } }) return _re; }; Douban.remote_submit_json = function(form, func, disable, action) { var fvalue = Douban.get_form_fields(form); if(fvalue['err'] != undefined) return; $(':submit,:input',form).attr('disabled',disable==false?0:1); var act = action || form.action; $.post_withck(act, fvalue, function(ret){ func(ret); }, 'json'); }; Douban.initHandler = function(selector, eventType, callback, root, context) { $(root || 'body').delegate(selector, eventType, $.proxy(function(e){ e.preventDefault(); callback.call(this, e); }, context)); }; var set_cookie = function(dict, days){ days = days || 30; var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); for (var i in dict){ document.cookie = i+"="+dict[i]+expires+"; path=/"; } }; var get_cookie = function(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) { return c.substring(nameEQ.length,c.length).replace(/\"/g,''); } } return null; }; var paras = function(s){ var o = {}; if(s.indexOf('?') == -1) return {}; var vs = s.split('?')[1].split('&'); for(var i=0;i<vs.length;i++){ if(vs[i].indexOf('=') != -1){ var k = vs[i].split('='); o[k[0]] = k[1]; } } return o; } $('html').click(function(e){ var el = $(e.target), classname = el.attr('class'); if (classname === '' || typeof classname === 'undefined') { return; } //console.log(classname.match(/a_(\w+)/gi)) $(classname.match(/a_(\w+)/gi)).each($.proxy(function(i, n){ var fn = Douban[n.replace(/^a_/, 'init_')]; if (typeof fn === 'function') { e.preventDefault(); fn.call(this, e); } }, el[0])); }); $.viewport_size = function(){ var size = [0, 0]; if (typeof window.innerWidth != 'undefined'){ size = [window.innerWidth, window.innerHeight]; }else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0){ size = [document.documentElement.clientWidth, document.documentElement.clientHeight]; }else{ size = [document.body.clientWidth, document.body.clientHeight]; } return size; } $.ajax_withck = function(options){ if(options.type=="POST") options.data=$.extend(options.data||{},{ck:get_cookie('ck')}); return $.ajax(options) } $.postJSON_withck = function(url, data, callback){ $.post_withck(url, data, callback, "json"); } $.post_withck = function( url, data, callback, type ) { if ($.isFunction(data)) { type = callback; callback = data; data = {}; } return $.ajax({ type: "POST", url: url, data: $.extend(data,{ck:get_cookie('ck')}), success: callback, dataType: type || 'text' }); }; (function(){ var cache = {}; $.tmpl = function(str, data){ var fn = cache[str] = cache[str] || new Function("obj", "var p=[];with(obj){p.push('" + str.replace(/[\r\t\n]/g, " ") .replace(/'(?=[^%]*%})/g,"\t") .split("'").join("\\'") .split("\t").join("'") .replace(/{%=(.+?)%}/g, "',$1,'") .split("{%").join("');") .split("%}").join("p.push('") + "');}return p.join('');"); return fn(data); } })(); jQuery.fn.extend({ pos:function() { var o = this[0]; if(o.offsetParent) { for(var posX=0, posY=0; o.offsetParent; o=o.offsetParent){ posX += o.offsetLeft; posY += o.offsetTop; } return {x:posX, y:posY}; } else return {x:o.x, y:o.y}; }, chop: function(callback, inv ) { var ret = [], nret = []; for ( var i = 0, length = this.length; i < length; i++ ) if ( !inv != !callback( this[i], i )){ ret.push( this[i] ); } else { nret.push( this[i] ); } return [ret, nret]; }, sum: function(name, sp){ var len = this.length, s = zero = sp ? '' : 0; while(len) s += this[--len][name] + (len && sp || zero); return s }, set_len_limit : function(limit){ var s = this.find(':submit:first'); var oldv = s.attr('value'); var check = function(){ if(this.value && this.value.length > limit){ s.attr('disabled',1).attr('value','字数不能超过'+limit+'å­—'); } else { s.attr('disabled',0).attr('value', oldv); } } $('textarea', this).focus(check).blur(check).keydown(check).keyup(check); }, display_limit : function(limit, n){ var self = this, oldv, f = function(e){ var v = self.val(); if (v == oldv) return; if (v.length>=limit){ self.val(v.substring(0, limit)); } n.text(limit - self.val().length); oldv = self.val(); }; this.keyup(f); f(); }, set_caret: function(){ if(!$.browser.msie) return; var initSetCaret = function(){this.p = document.selection.createRange().duplicate()}; this.click(initSetCaret).select(initSetCaret).keyup(initSetCaret); }, insert_caret:function(t){ var o = this[0]; if(document.all && o.createTextRange && o.p){ var p=o.p; p.text = p.text.charAt(p.text.length-1) == '' ? t+'' : t; } else if(o.setSelectionRange){ var s=o.selectionStart; var e=o.selectionEnd; var t1=o.value.substring(0,s); var t2=o.value.substring(e); o.value=t1+t+t2; o.focus(); var len=t.length; o.setSelectionRange(s+len,s+len); o.blur(); } else { o.value+=t; } }, get_sel:function(){ var o = this[0]; return document.all && o.createTextRange && o.p ? o.p.text : o.setSelectionRange ? o.value.substring(o.selectionStart,o.selectionEnd) : ''; }, blur_hide:function(){ var s=this,h=function(){return false}; s.mousedown(h) $(document.body).mousedown(function(){ s.hide().unbind('mousedown',h) $(document.body).unbind('mousedown',arguments.callee); }) return this; }, yellow_fade:function() { var m = 0,setp=1,self=this; function _yellow_fade(){ self.css({backgroundColor:"rgb(100%,100%,"+m+"%)"}) m += setp;setp+=.5; if(m <= 100){ setTimeout(_yellow_fade,35) }else{ self.css({backgroundColor:""}) } }; _yellow_fade(); return this; }, hover_fold:function(type){ var i = {folder:[1,3], unfolder:[0,2]}, s = function(o,n){ return function(){$('img',o).attr("src","/pics/arrow"+n+".gif");} } return this.hover(s(this,i[type][0]),s(this,i[type][1])); }, multiselect:function(opt){ var nfunc = function(){return true}, onselect = opt.onselect || nfunc, onremove = opt.onremove || nfunc, onchange = opt.onchange || nfunc, sel = opt.selclass || 'sel', values = opt.values || []; return this.click(function(){ var id = /id(\d*)/.exec(this.className)[1], i = $.inArray(id, values); if(i != -1){ if (!onremove(this)) return; values.splice(i,1); $(this).removeClass(sel); }else{ if (!onselect(this)) return; values.push(id); $(this).addClass(sel); } onchange(values); return false; }) } }); try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {} Douban.init_donate = function(){ var templ_container = '<div class="blocktip dou-tip">{BODY}</div>', templ_form = '<form action="" method="post"><div class="frm-item">你将向{{= to_whom}}赠送<b>1</b>颗小豆</div><div class="frm-item"><label for="dou-inp-msg">顺带捎个话...</label><input id="dou-inp-msg" type="text" name="note"></div><div class="frm-submit"><span class="bn-flat"><input type="submit" value="送出"></span><a href="#" class="tip-bn-cancel">取消</a></div></form>', templ_tip = '<p>“感谢”将向作者赠送<b>1</b>颗小豆,你还没有小豆。<br><a href="http://www.douban.com/help/account#t4-q1">怎样获取小豆?</a></p><span class="bn-flat"><input type="button" class="tip-bn-cancel" value="知道了"></span>', templ_error = '<span class="donated-fail">{MSG}</span>', templ_success = '<span class="donated-success">{MSG}</span>', templ_processing = '<p>处理中,请稍候...</p>', css_closetip = '.tip-bn-cancel', css_process = 'processing', displayError = function(node, msg) { node.replaceWith(templ_error.replace('{MSG}', msg)); hideOverlay(); }, showOverlay = function(cont, node) { hideOverlay(); var overlay = $(templ_container.replace('{BODY}', cont)).appendTo('body'), pos = node.offset(), overlay_pos = [], win = $(window), winH = win.scrollTop() + win.height(); if ((winH - pos.top) < (overlay.height() + 20)) { overlay_pos = [pos.left, pos.top - overlay.height() - node.height()]; } else { overlay_pos = [pos.left, pos.top + node.height()]; } overlay.css({ position: 'absolute', left: overlay_pos[0] + 'px', top: overlay_pos[1] + 'px' }); return overlay.show(); }, hideOverlay = function() { $('.dou-tip').remove(); }, updateOverlay = function(overlay, node) { var pos = node.offset(), overlay_pos = [], win = $(window), winH = win.scrollTop() + win.height(); if ((winH - pos.top) < (overlay.height() + 20)) { overlay_pos = [pos.left, pos.top - overlay.height() - node.height()]; } else { overlay_pos = [pos.left, pos.top + node.height()]; } overlay.css({ left: overlay_pos[0] + 'px', top: overlay_pos[1] + 'px' }); }, handleDonateSubmit = function(e) { var handler = function(ret) { if (ret.error) { this.elm.replaceWith(templ_error.replace('{MSG}', ret.error)); } else { this.elm.replaceWith(templ_success.replace('{MSG}', ret.msg)); } hideOverlay(); }; e.preventDefault(); this.args.is_first = 0; this.args.note = $.trim(e.target.elements['note'].value); this.relateTip.html(templ_processing); updateOverlay(this.relateTip, this.elm); $.dataPoster(this.url, this.args, $.proxy(handler, this), 'post', 'json'); }, handleCloseTip = function(e) { e.preventDefault(); hideOverlay(); if (this.elm) { this.elm.removeClass(css_process); } }, handler = function(ret){ var elm = this.elm, pos, bn, tip; if (ret.error) { displayError(elm, ret.error); return; } if (ret.balance) { templ_form = templ_form.replace('{{= to_whom}}', '小站'); tip = showOverlay(templ_form, elm); this.relateTip = tip; tip.find('form').bind('submit', $.proxy(handleDonateSubmit, this)); tip.find(css_closetip).bind('click', $.proxy(handleCloseTip, this)); tip.find('input[type=text]').bind({ 'focusin': function(e){ $(this).prev().hide(); }, 'focusout': function(e){ if (this.value === '') { $(this).prev().show(); } } }); } else { // 余额不足 tip = showOverlay(templ_tip, elm); tip.css('width', 260 + 'px'); this.relateTip = tip; tip.find(css_closetip).bind('click', $.proxy(handleCloseTip, this)); } $(window).bind('resize', function() { updateOverlay(tip, elm); }); }; $('body').delegate('.btn-donate', 'click', function(e){ var elm = $(e.currentTarget), url = elm.attr('href').split('?'), param, p, i, len, o = { elm: elm }, args = {is_first: 1}; e.preventDefault(); if (elm.hasClass(css_process)) { return; } elm.addClass(css_process); if (url[1]) { param = url[1].split('&'); for (i = 0, len = param.length; i<len; i++) { p = param[i].split('='); args[p[0]] = p[1] || ''; } } o.args = args; o.url = url[0]; $.dataPoster(url[0], args, $.proxy(handler, o), 'post', 'json'); }); }; var moreurl = function(self, dict){ var more = ['ref='+encodeURIComponent(location.pathname)]; for (var i in dict) more.push(i + '=' + dict[i]); set_cookie({report:more.join('&')}, 0.0001) }
12ik
trunk/app/site/js/common.js
JavaScript
oos
16,783
(function($) { $.fn.extend({ slider: function (options) { var defaults = { slide_items: 4, item_width: 166 }, options = $.extend(defaults, options), current = 0, items_per_page = options.slide_items, css_slider_wrap = '.widgets-slider', css_slider_list = '.widgets-slider ul', css_slider_item = '.widgets-slider li', css_btn_prev = '.switcher-prev', css_btn_next = '.switcher-next', css_dot_item = '.switcher-dot li', css_switcher_dis = 'switcher-dis', css_switcher_dot = '.switcher-dot', templ_dot_item = '<li>{NUM}</li>'; return this.each(function () { var self = this, items_total = $(css_slider_item, this).length, page_nums = Math.ceil(items_total / items_per_page), max_page_index = page_nums - 1, slider_width = items_total * options.item_width + 'px', oSlider = $(css_slider_list, this), oSwitcher = $(css_btn_prev + ', ' + css_btn_next, this), oSwitcherDot = $(css_dot_item, this) last_nums = items_total, actionSlider = function (obj, step) { var width_each_slide = parseInt($(css_slider_wrap, self).css('width')), duration = Math.abs(step - current) * (items_total - Math.abs(step - current)) * .2 * 200, oSwitcherWrap = obj.parent().next(); oSwitcherWrap.children('span').removeClass(css_switcher_dis); if (step === max_page_index) { oSwitcherWrap.children(css_btn_next).addClass(css_switcher_dis); } if (step === 0) { oSwitcherWrap.children(css_btn_prev).addClass(css_switcher_dis); } obj.animate({ 'left': - step * width_each_slide }, duration); oSwitcherWrap.children().children('.on').removeClass(); oSwitcherWrap.children().children(':contains("' + step + '")').addClass('on'); current = step; }; // change slider wrapper width oSlider.css('width', slider_width); // add switcher dots if (page_nums > 1) { for (i = 0; i < page_nums; i++) { $(css_switcher_dot, this).append(templ_dot_item.replace('{NUM}', i)); } $(css_switcher_dot + ' li:first', this).addClass('on'); } else { $(css_btn_next, this).addClass('switcher-dis'); } oSwitcherDot.live('click', function (e) { var step = parseInt($(this).text()), obj = $(this).parent().parent().prev().children(); actionSlider(obj, step); }); oSwitcher.click(function (e) { var isPrev = $(e.target).hasClass('switcher-prev'), obj = $(this).parent().prev().children(), slide_step = parseInt($(this).parent().children().children('.on').text()); if (isPrev) { slide_step -= 1; } else { slide_step += 1; } slide_step = slide_step < 0 ? 0 : slide_step; slide_step = slide_step < max_page_index ? slide_step : max_page_index; if (page_nums > 1) { actionSlider(obj, slide_step); } }); }); } }); })(jQuery);
12ik
trunk/app/site/js/slider.js
JavaScript
oos
3,986
function playcount(songid, worked){ $.get('/j/artist/incplaycount',{song_id:songid,worked:worked?1:0}); } window.playnext = function(widget_id){ var just_num = playsong.now_play_song[widget_id], songs = playsong.widgets[widget_id].songs; if (just_num >= songs.length - 1){ playsong(widget_id, 0, true); } else { playsong(widget_id, just_num + 1); } } window.playsong = function(widget_id, song_num, hold){ var mplayer = document.getElementById('mplayer_' + widget_id), table = $('.table_' + widget_id); $('tr', table).removeClass('selsong'); $('.tr' + song_num, table).addClass('selsong'); if(mplayer !== undefined && mplayer.playsong !== undefined){ var s = playsong.widgets[widget_id].songs[song_num]; mplayer.playsong(s.url, s.id, hold ? 0 : 1, s.title, s.isdemo); playsong.now_play_song[widget_id] = song_num; } } playsong.widgets = {}; playsong.now_play_song = {};
12ik
trunk/app/site/js/artist.js
JavaScript
oos
973
//@import /js/sns/note/image.js //@import /js/sns/note/video.js //@import /js/sns/note/link.js IK('template', 'dialog', 'modernizr.dnd', 'uploadify', function() { var formNote = $('#form_note'), control_panel = $('.control-panel', formNote), images = formNote.children('.images'), videos = formNote.children('.videos'), noteTitle = $('#note_title'), noteText = $('#note_text'), notePrivacy = formNote.find('.note-privacy'), noteSubmitButton = formNote.find('#publish_note'), cannotReply = $('#cannot_reply'), NOTE_TEXT = '#note_text'; var nid = $('#note_id').val(); var userid = $('#userid').val(); var readyToLeave = false; /* * 错误信息模块 */ var errorInfo = function() { var tip = $('<div class="error-msg tip"></div>'), board = formNote.find('.footer .error-msg'), reset; tip.appendTo('body'); return { putAside: function (anchor, msg) { clearTimeout(reset); var pos = anchor.offset(), width = anchor.outerWidth(); tip.text(msg). css({ top: pos.top + 5, left: pos.left + width + 5 }). show(); $('html, body').animate({ scrollTop: pos.top - 10 }); reset = setTimeout(function() { tip.hide(); }, 5000); }, showBoard: function (msg) { board.text(msg).show(); setTimeout(function() { board.text(''); }, 5000); }, clear: function() { tip.hide(); board.hide(); } } }(); // control_panel 预处理 control_panel.delegate('a', 'click', function(e) { e.preventDefault(); }); noteText.set_caret(); /* * 图片模块 */ if (images.children().length !== 0) { images.show(); } control_panel.delegate('.image-btn', 'click', function(e) { e.preventDefault(); openImageDialog({ textarea_selector: NOTE_TEXT, nid: nid, upload_photo_url: UPLOAD_PHOTO_URL }); }); images.delegate('.delete-image', 'click', function(e) { e.preventDefault(); var item = $(this).parent('.image-item'), tagName = item.find('.image-name').text(); item.slideUp(function() { item.remove(); }); //noteText[0].value = noteText[0].value.replace(new RegExp(tagName, 'g'), ''); noteText[0].value = noteText[0].value.replace(tagName, ''); if (images.children().length === 0) { images.hide(); } }); images.bind('image:saved', autoSave); /* * 视频模块 */ if (videos.children().length !== 0) { videos.show(); } control_panel.delegate('.video-btn', 'click', function(e) { e.preventDefault(); openVideoDialog({textarea_selector: NOTE_TEXT}); }); videos.delegate('.delete-video', 'click', function(e) { e.preventDefault(); var item = $(this).parent('.video-item'), tagName = item.find('.video-name').text(); item.slideUp(function() { item.remove(); }); noteText[0].value = noteText[0].value.replace(new RegExp(tagName, 'g'), ''); if (videos.children().length === 0) { videos.hide(); } }); /* * 链接模块 */ control_panel.delegate('.link-btn', 'click', function(e) { e.preventDefault(); openLinkDialog({ textarea_selector: NOTE_TEXT, selected_text: noteText.get_sel() }); }); /* * 验证模块 */ function validate() { if ($.trim(noteTitle.val()) === '') { errorInfo.putAside(noteTitle, '给日记加个标题吧'); return false; } if ($.trim(noteText.val()) === '') { errorInfo.putAside(noteText, '日记正文还没写呢'); return false; } return true; } formNote.submit(function () { if (validate() && !noteSubmitButton.attr('isPublishing')) { noteSubmitButton.attr('isPublishing', 'true'); readyToLeave = true; return true; } else { return false; } }); /* * 获取note的数据, 服务ajax的data */ function getFormData() { var data = {}; $.each(formNote.serializeArray(), function(i, elem) { data[elem.name] = elem.value; }); return data; } /* * 预览模块 */ var preview = $('#preview'), previewNote= $('#preview_note'), isPreviewing = false, PREVIEW_TMPL = $.template(null, $('#preview_tmpl').html()); previewNote.click(function(e) { e.preventDefault(); if (validate() && !isPreviewing) { $.ajax({ type: 'post', url: PREVIEW_URL, data: getFormData(), beforeSend: function() { isPreviewing = true; previewNote.val('预览中...'); }, success: function(response) { if (!response) { errorInfo.showBoard('预览内容解析错误'); return; } if (response.r) { // show error errorInfo.showBoard(response.err); } else { response.content.cannot_reply = cannotReply.is(':checked') ? '日记被作者设为不可回应' : ''; var privacy = notePrivacy.find('input:checked').val(); response.content.note_privacy = (privacy === 'S') ? '仅朋友可见' : (privacy === 'X' ? '仅自己可见' : ''); // show preview formNote.hide(); preview.empty(). append($.tmpl(PREVIEW_TMPL, response.content)). show(); } }, error: function() { // show error errorInfo.showBoard('发生网络错误了,暂时不能预览'); }, complete: function() { isPreviewing = false; previewNote.val('预览'); } }); } autoSave(); }); preview.delegate('.continue-edit', 'click', function(e) { preview.hide(); formNote.show(); }); preview.delegate('.submit-note', 'click', function(e) { if (!noteSubmitButton.attr('isPublishing')) { noteSubmitButton.click(); noteSubmitButton.attr('isPublishing', 'true'); readyToLeave = true; } }); /* * 自动保存 */ function autoSave() { $.ajax({ type: 'post', url: AUTOSAVE_URL, data: getFormData() }); } noteText.keydown(function(e) { if (String.fromCharCode(e.which).toLowerCase() == 's' && e.ctrlKey) { e.preventDefault(); autoSave(); return false; } }); //setInterval(autoSave, 1000 * 60 * 5 ); // 5分钟保存一次 /* * 离开时提醒 */ /* window.onbeforeunload = function(e) { if (!readyToLeave) { return '日记还没有提交'; } }; */ var isRealCancel = false; $('#cancel_note').click(function(e) { if (isRealCancel) { return true; } e.preventDefault(); var dlg = dui.Dialog({ title: '取消新加日记', content: '日记还未保存,确定要放弃编辑吗?', iframe: true, width: 370, buttons: [{ text: '确定离开', method: function(o) { readyToLeave = true; o.close(); isRealCancel = true; $('#cancel_note').click(); } }, { text: '留在此页', method: function(o) { o.close(); } }] }); dlg.open(); }); }); //////////////////////////////////// function openLinkDialog(opt) { var textarea_selector = opt && opt.textarea_selector, selected_text = opt && opt.selected_text; if (!textarea_selector) return; var dlg = dui.Dialog(), LINK_DLG = $('#link_dlg')[0].innerHTML; dlg.set({ title: '添加链接', iframe: true, content: LINK_DLG.replace('SEL', selected_text), width: 400, buttons: [{ text: '确定', method: saveLink },{ text: '取消', method: function(o) { o.close(); } }] }); dlg.open(); // app event binding if (selected_text) { $('#link_url').focus(); } else { $('#link_text').focus(); } $('#link_url').keypress(function(e) { if (e.which === 13) { saveLink(); } }); // app method function saveLink() { var text = $('#link_text').val(), url = $.trim($('#link_url').val()); dlg.close(); if (url!== '') { url = (/^https?:\/\//.test(url) ? url : "http://"+url); $(textarea_selector).insert_caret('[url=' + url + ']' + (text===''? url : text) + "[/url]"); } } } ////////////////////////////////////////////////// function openImageDialog(opt) { var textarea_selector = opt && opt.textarea_selector, isBasic = opt && opt.isBasic, nid = opt && opt.nid, upload_photo_url = opt && opt.upload_photo_url; if (!textarea_selector) return; var IMAGE_ITEM_TMPL = $.template(null, $('#image_item_tmpl').html()), IMAGE_DLG_TMPL = $.template(null, $('#image_dlg_tmpl').html()), SLOT_TMPL = $.template(null, $('#image_slot').html()), SLOT_TMPL_LOADING = $.template(null, $('#image_slot_loading').html()), SLOT_TMPL_ERROR = $.template(null, $('#image_slot_error').html()); textarea = $(textarea_selector), dlg = dui.Dialog(); var resetTimer, updateDlg = function() { clearTimeout(resetTimer); resetTimer = setTimeout(function() { dlg.update(); }, 100) }; var parseSize = function(size) { var suffix = ['B', 'KB', 'MB', 'GB'], tier = 0; while (size > 1024) { size = size / 1024; tier++; } return Math.round(size*10) / 10 + "" + suffix[tier]; }; // for comparison of array of objects 比较数组对象 var by = function(name) { return function(o, p) { var a, b; if (typeof o === 'object' && typeof p === 'object' && o && p) { a = o[name]; b = p[name]; if (a === b) { return 0; } if (typeof a === typeof b) { return a < b ? -1 : 1; } return typeof a < typeof b ? -1 : 1; } else { throw { name: 'Error', message: 'Expected an object when sorting by ' + name }; } }; } /* * ## WIDGET * 1. imageTable 下面的图片列表 * 2. uploadArea 上方的上传区域,根据浏览器初始化 */ var imageTable = function() { var slots, imageList, self, footer, image_num, total_size; var list = [], id = 0; return { init: function() { self = $('.upload-info'); slots = $('#image-slots'); imageList = $('.images', document.getElementById('form_note')); footer = $('.footer', document.getElementById('image_upload')); image_num = footer.find('.image-num'); total_size = footer.find('.image-total-size'); var that = this; // event binding slots.delegate('a.image-delete', 'click', function(e) { e.preventDefault(); var ID = $(this).closest('.slot').attr('data_id'); that.removeSlot(ID); }); }, addSlot: function(name, size, ID) { if (list.length >= 20) { footer.find('.total-num').find('.num-warning').show(); return undefined; } //每个文件有唯一的id,uploadify用它自己的,而其他则用累加器 var ID = ID || id++; var isBasic = !size; if (isBasic) { $.tmpl(SLOT_TMPL_LOADING, { isBasic: isBasic, name: name, ID: ID }).appendTo(slots); } else { $.tmpl(SLOT_TMPL_LOADING, { isBasic: isBasic, name: name, sizeText: parseSize(size), ID: ID }).appendTo(slots); } updateDlg(); list.push({ ID: ID, unfinished: true }); self.show(); return ID; }, removeSlot: function(ID) { if (ID === undefined) { return; } slots.find('[data_id="' + ID + '"]').remove(); for (var i=list.length-1; i>=0; i--) { if (list[i].ID == ID) { list.splice(i, 1); break; } } if (list.length === 0) { self.hide(); } updateDlg(); this.updateInfo(); }, finishSlot: function(real, ID) { if (!real) return; var slot = slots.find('[data_id="' + ID + '"]'); if (slot.length < 1) { $.tmpl(SLOT_TMPL, real).addClass('done').appendTo(slots); } else { $.tmpl(SLOT_TMPL, real).addClass('done').insertAfter(slot); slot.remove(); } for (var i=list.length-1; i>=0; i--) { if (list[i].ID === ID) { list.splice(i, 1, real); break; } } updateDlg(); this.updateInfo(); }, errorSlot: function(error, ID) { var slot = slots.find('[data_id="' + ID + '"]'); if (!error.isBasic) { error.isBasic = false; } if (error.cb) { error.retry = true; } if (slot.length < 1) { $.tmpl(SLOT_TMPL_ERROR, error).appendTo(slots); } else { $.tmpl(SLOT_TMPL_ERROR, error).insertAfter(slot); slot.remove(); } self.show(); if (error.cb) { slot = slots.find('[data_id="' + ID + '"]'); slot.find('a.image-retry').click(function(e) { e.preventDefault(); error.cb(); }); } error.unfinished = true; for (var i=list.length-1; i>=0; i--) { if (list[i].ID === ID) { list.splice(i, 1, error); break; } } updateDlg(); }, progressSlot: function(percentage, ID) { var ID = ID || id; var slot = slots.find('.slot[data_id="' + ID + '"]'); slot.find('.percentage').text(percentage + '%'); slot.find('.progress').css({ width: percentage + '%' }); }, updateInfo: function() { var num = 0, size = 0, i, slot; for (i = list.length - 1; i>=0; i--) { slot = list[i]; if (!slot.unfinished){ num += 1; size += slot.size; } } image_num.text(num); total_size.text(parseSize(size)); }, saveImages: function() { var i, len, slot, tags; list.sort(by('seq')); for (i=0, len=list.length, tags = ''; i<len; i++) { slot = list[i]; if (slot.unfinished){ list.splice(i, 1); } else { tags += '[图片' + slot.seq + ']\n' } } textarea.insert_caret(tags); $.tmpl(IMAGE_ITEM_TMPL, list).appendTo(imageList); imageList.show(). trigger('image:saved'); } }; }(); var sizeLimit = 1024 * 1000 * 2; var uploadArea = { // init function initDnd: function() { //初始化拖拽上传 var that = this; var droppable = $('.drag-drop', document.getElementById('upload-area')); droppable[0].addEventListener('dragover', function(e) { e.stopPropagation(); e.preventDefault(); e.dataTransfer.dropEffect = 'copy'; }, false); droppable[0].addEventListener('drop', function(e) { e.stopPropagation(); e.preventDefault(); var files = e.dataTransfer.files; for (var i=0, f; f=files[i]; i++) { if (f.type.match(/image.*/)) { that.dndUploadFile(f); } } }, false); }, initUploadify: function() {//flash 上传 var data = { note_id: nid, userid: $('#userid').val(), ck: get_cookie('ck') }; data[postParams.siteCookie.name] = postParams.siteCookie.value; $('#image_file').uploadify({ queueID: null, uploader: siteUrl + 'app/site/swf/uploadify.swf', expressInstall: siteUrl + 'app/site/swf/expressInstall.swf', script: upload_photo_url, fileDataName: 'file', scriptData: data, auto: true, multi: true, buttonText: '', buttonImg: siteUrl + 'app/site/pics/upload-pic-btn.png', width: 90, height: 22, rollover: true, sizeLimit: sizeLimit, fileDataName: 'image_file', fileExt: '*.jpeg;*.gif;*.jpg;*.png;', fileDesc: '图片文件', onError: function(e, ID, fileObj, errorObj) { var error = { name: fileObj.name, sizeText: parseSize(fileObj.size), size: fileObj.size, ID: ID }; if (errorObj.type == 'HTTP' || errorObj.type === 'IO') { error.msg = '网络错误'; imageTable.errorSlot(error, ID); } if (errorObj.type == 'File Size') { error.msg = '图片太大'; imageTable.errorSlot(error, ID); } }, onOpen: function(e, ID, fileObj) { var new_id = imageTable.addSlot(fileObj.name, fileObj.size, ID); if (new_id === undefined) { $('#image_file').uploadifyCancel(ID); } }, onCancel: function(e, ID, fileObj, data) { return false; }, onComplete: function(e, ID, fileObj, response, data) { response = $.parseJSON(response); if (response.r !== 0) { var error = { name: fileObj.file_name, sizeText: parseSize(fileObj.size), size: fileObj.size, ID: ID, msg: response.err }; imageTable.errorSlot(error, ID); } var photo = response.photo; var real = { //name: fileObj.file_name, //原版bug name: photo.file_name, sizeText: parseSize(photo.file_size), size: photo.file_size, seq: photo.seq, thumb: photo.thumb, ID: ID }; imageTable.finishSlot(real, ID); }, onProgress: function(e, ID, fileObj, data) { imageTable.progressSlot(data.percentage, ID); return false; }, onSWFReady: function() { updateDlg(); } }); }, initBasic: function() { //初始化基本上传 var that = this; IK('iframe-post-form', function() { var fileInput = $('#image_file'), form = $('#upload-area'); fileInput.change(function(e) { //当点击浏览按钮 var name = (/([^[\\\/]*)$/.exec(fileInput[0].value) || [])[1],//文件名称 new_id = imageTable.addSlot(name); // basic if (new_id === undefined) { return; } that.basicUploadFile(new_id, form, fileInput); }); }); }, basicUploadFile: function(new_id, form, fileInput) { var suffix = /\.([^\.]+)$/, fileName = /([^\\\/]*)$/, options = { json: true, iframeID: 'iframe-post-' + new_id, post: function() { var hash = { 'jpeg': 1, 'png': 1, 'jpg': 1, 'gif': 1 }; var path = fileInput[0].value; if (!hash[(suffix.exec(path) || [])[1]]) { var error = { name: (fileName.exec(path) || [])[1], ID: new_id, sizeText: '', msg: '请选择图片文件(JPG/JPEG, PNG,或GIF)' }; imageTable.errorSlot(error, new_id); fileInput.val(''); return false; } }, complete: function(response) { var path = fileInput[0].value, name = (fileName.exec(path) || [])[1]; var response = $.parseJSON(response); if (response === null) { var error = { name: name, ID: new_id, sizeText: '', msg: '网络错误', cb: function() { var returnNewId; imageTable.removeSlot(new_id); returnNewId = imageTable.addSlot(name, undefined, new_id); if (returnNewId === undefined) { return; } form.trigger('submit'); } }; imageTable.errorSlot(error, new_id); return; } if (response.r !== 0) { var error = { name: name, ID: new_id, sizeText: '', msg: response.err }; imageTable.errorSlot(error, new_id); fileInput.val(''); return; } var photo = response.photo; var real = { //name: name, name: photo.file_name, sizeText: parseSize(photo.file_size), size: photo.file_size, seq: photo.seq, thumb: photo.thumb, ID: new_id }; imageTable.finishSlot(real, new_id); } }; form.unbind('submit'); form.iframePostForm(options); form.trigger('submit'); }, // upload function dndUploadFile: function(file) { //var new_id = imageTable.addSlot(file.fileName, file.fileSize); var new_id = imageTable.addSlot(file.name, file.size); if (new_id === undefined) { return; } if (file.size > sizeLimit) { var error = { name: file.name, sizeText: parseSize(file.size), size: file.size, ID: new_id, msg: '图片不超过5M' }; imageTable.errorSlot(error, new_id); return; } var formData = new FormData(); formData.append('image_file', file); formData.append('note_id', nid); formData.append('userid', $('#userid').val()); formData.append('ck', get_cookie('ck')); formData.append(postParams.siteCookie.name, postParams.siteCookie.value);//神作业 var xhr = new XMLHttpRequest(); xhr.open('POST', upload_photo_url, true); xhr.onreadystatechange = function(e) { if (xhr.readyState === 4) { if (xhr.status === 200) { // success var response = $.parseJSON(xhr.responseText); if (response.r !== 0) { var error = { name: file.name, sizeText: parseSize(file.size), size: file.name, ID: new_id, msg: response.err }; imageTable.errorSlot(error, new_id); return; } var photo = response.photo; var real = { // name: file.fileName, name: photo.file_name, sizeText: parseSize(photo.file_size), size: photo.file_size, seq: photo.seq, thumb: photo.thumb, ID: new_id }; imageTable.finishSlot(real, new_id); } else { // error var error = { name: file.name, sizeText: parseSize(file.size), size: file.size, ID: new_id, msg: '网络错误', cb: function() { xhr.open('POST', upload_photo_url, true); xhr.send(formData); } }; imageTable.errorSlot(error, new_id); } } }; xhr.upload.onprogress = function(e) { if (e.lengthComputable) { var percentage = parseInt((e.loaded/e.total)*100, 10); imageTable.progressSlot(percentage, new_id); } }; xhr.send(formData); } }; var app = { tmplData: {}, init: function(isBasic) { var tmplData = this.tmplData; tmplData.nid = nid; tmplData.UPLOAD_URL = UPLOAD_PHOTO_URL; if (Modernizr.draganddrop && !$.browser.msie && (typeof FormData !== 'undefined')) { tmplData.dnd = true; } else { tmplData.dnd = false; } var flashVersion = swfobject.getFlashPlayerVersion(); if (flashVersion.major > 9) { tmplData.flash = true; } else { tmplData.flash = false; } if (isBasic) { tmplData.dnd = false; tmplData.flash = false; tmplData.basic = true; } else { tmplData.basic = false; } return this; }, open: function() { var that = this; dlg.set({ title: '添加图片', content: $.tmpl(IMAGE_DLG_TMPL, that.tmplData), iframe: true, width: 650, buttons: [{ text: '保存', method: function(o) { imageTable.saveImages(); o.close(); } }, { text: '取消', method: function(o) { o.close(); } }] }); dlg.open(); return this; }, initWidgets: function() { var tmplData = this.tmplData; if (tmplData.dnd) { uploadArea.initDnd(); } if (tmplData.flash) { uploadArea.initUploadify(); } if (!tmplData.flash) { uploadArea.initBasic(); } imageTable.init(); return this; }, bindEvents: function() { var uploadAlter = $('.upload-alternative', document.getElementById('image_upload')); uploadAlter.delegate('.upload-basic', 'click', function(e) { e.preventDefault(); openImageDialog({ textarea_selector: textarea_selector, nid: nid, isBasic: true }); }); uploadAlter.delegate('.upload-multi', 'click', function(e) { e.preventDefault(); openImageDialog({ textarea_selector: textarea_selector, nid: nid }); }); return this; } }; app.init(isBasic). open(). initWidgets(). bindEvents(); } //////////////////////////////////////////////////// function openVideoDialog(opt) { // opt check var textarea_selector = opt && opt.textarea_selector; if (!textarea_selector) return; var VIDEO_ITEM_TMPL = $.template(null, $('#video_item_tmpl').html()), VIDEO_DLG = $('#video_dlg').html(), videoList = $('.videos', document.getElementById('form_note')), dlg = dui.Dialog(); var resetTimer, updateDlg = function() { clearTimeout(resetTimer); resetTimer = setTimeout(function() { dlg.update(); }, 100) }; /* * ## WIDGET * 1. videoURL */ var videoURL = function() { var input, msg; var isProcessing = false; return { init: function() { var that = this; input = $('#video_url'); msg = input.next(); // event input.focus(); // event binding input.keypress(function(e) { e.preventDefault(); if (e.which === 13) { that.saveVideo(); } }); }, showLoading: function() { isProcessing = true; input.hide(); msg.show(). html('<span class="loading-video">\ 解析地址中... \ </span>'); updateDlg(); }, showError: function(msgStr) { isProcessing = true; input.hide(); msg.show(). html(msgStr + '&nbsp;&nbsp;&nbsp;<a class="retry">重新输入</a>'); updateDlg(); }, resume: function() { isProcessing = false; input.val('').show().focus(); msg.hide(); updateDlg(); }, saveVideo: function() { if (isProcessing) { return; } var url = input.val(), that = this; if ($.trim(url) === '') { return; } $.ajax({ type: 'get', url: '/j/video', data: { url: encodeURIComponent(url) }, beforeSend: function() { that.showLoading(); }, success: function(data) { if (data.r) { // displayError that.showError(data.error); return; } // TODO: parse // video seq, according to client var videoData, seq; $.tmpl(VIDEO_ITEM_TMPL, videoData). appendTo(videoList); videoList.show(); $(textarea_selector).insert_caret('[视频' + seq + ']'); dlg.close(); }, error: function() { that.showError('网络错误!'); } }); } }; }(); var app = { open: function() { dlg.set({ title: '添加视频', content: VIDEO_DLG, iframe: true, width: 400, buttons: [{ text: '确定', method: function() { videoURL.saveVideo(); } }, { text: '取消', method: function(o) { o.close(); } }] }); dlg.open(); return this; }, initWidgets: function() { videoURL.init(); return this; }, bindEvents: function() { dlg.body.find('.video-dlg').delegate( '.retry', 'click', function(e) { e.preventDefault(); videoURL.resume(); } ); return this; } }; app.open().initWidgets().bindEvents(); }
12ik
trunk/app/site/js/create_note.js
JavaScript
oos
38,055
<?php defined('IN_IK') or die('Access Denied.'); class photo extends IKApp{ //构造函数 public function __construct($db){ parent::__construct($db); } //getPhotoForApp function getPhotoForApp($photoid){ $strPhoto = $this->db->once_fetch_assoc("select * from ".dbprefix."photo where photoid='$photoid'"); return $strPhoto; } function getSamplePhoto($photoid){ $strPhoto = $this->db->once_fetch_assoc("select path,photourl from ".dbprefix."photo where photoid='$photoid'"); return $strPhoto; } //根据用户id获取所有相册 function getAllAlbumByUserId($userid, $num='') { $arrAlbum = $this->db->fetch_all_assoc("select * from ".dbprefix."photo_album where userid=$userid limit $num"); return $arrAlbum; } }
12ik
trunk/app/photo/class.photo.php
PHP
oos
773
<?php defined('IN_IK') or die('Access Denied.'); $page = isset($_GET['page']) ? $_GET['page'] : '1'; $url = SITE_URL."index.php?app=photo&ac=index&page="; $lstart = $page*28-28; $arrAlbum = $db->fetch_all_assoc("select * from ".dbprefix."photo_album where `isrecommend`='1' order by albumid desc limit $lstart,28"); $albumNum = $db->once_num_rows("select * from ".dbprefix."photo_album where `isrecommend`='1'"); $pageUrl = pagination($albumNum, 28, $page, $url); //获取最新的评论 $arrComments = $db->fetch_all_assoc("select * from ".dbprefix."photo_comment order by addtime desc limit 30"); foreach($arrComments as $key=>$item){ $arrComment[] = $item; $arrComment[$key]['user'] = aac('user')->getOneUser($item['userid']);; } $title = '推荐相册'; include template("index");
12ik
trunk/app/photo/action/index.php
PHP
oos
823
<?php defined('IN_IK') or die('Access Denied.'); switch($ts){ case "list": $page = isset($_GET['page']) ? intval($_GET['page']) : 1; $lstart = $page*10-10; $url = SITE_URL.'index.php?app=photo&ac=admin&mg=photo&ts=list&page='; $arrPhoto = $db->fetch_all_assoc("select * from ".dbprefix."photo order by addtime desc limit $lstart,10"); $photoNum = $db->once_fetch_assoc("select count(*) from ".dbprefix."photo"); $pageUrl = pagination($photoNum['count(*)'], 10, $page, $url); include template("admin/photo_list"); break; //推荐图片 case "isrecommend": $photoid = intval($_GET['photoid']); $strPhoto = $db->once_fetch_assoc("select isrecommend from ".dbprefix."photo where `photoid`='$photoid'"); if($strPhoto['isrecommend']==0){ $db->query("update ".dbprefix."photo set `isrecommend`='1' where `photoid`='$photoid'"); }else{ $db->query("update ".dbprefix."photo set `isrecommend`='0' where `photoid`='$photoid'"); } qiMsg("操作成功!"); break; }
12ik
trunk/app/photo/action/admin/photo.php
PHP
oos
1,072