ft"> updateinfo-res05.html 987B
履歴 生データ
    <!doctype html> <html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link href="../css/mui.min.css" rel="stylesheet" /> <link href="../css/app.css" rel="stylesheet" /> </head> <body> <header class="mui-bar mui-bar-nav toptitbox"> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></a> <h1 class="mui-title toptit">合作备注</h1> <span class="mui-pull-right topsave">保存</span> </header> <div class="mui-content"> <div class="mui-input-group marginbox"> <div class="maincon"> <div class="textareabox borderarea" contenteditable="true"></div> </div> </div> </div> <script src="../js/public/mui.min.js"></script> <script src="../js/public/base.js"></script> <script type="text/javascript" src="../js/updateinfo-res05.js"></script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

en.js 29KB

    /** * Created with JetBrains PhpStorm. * User: taoqili * Date: 12-6-12 * Time: 下午6:57 * To change this template use File | Settings | File Templates. */ UE.I18N['en'] = { 'labelMap':{ 'anchor':'Anchor', 'undo':'Undo', 'redo':'Redo', 'bold':'Bold', 'indent':'Indent', 'snapscreen':'SnapScreen', 'italic':'Italic', 'underline':'Underline', 'strikethrough':'Strikethrough', 'subscript':'SubScript','fontborder':'text border', 'superscript':'SuperScript', 'formatmatch':'Format Match', 'source':'Source', 'blockquote':'BlockQuote', 'pasteplain':'PastePlain', 'selectall':'SelectAll', 'print':'Print', 'preview':'Preview', 'horizontal':'Horizontal', 'removeformat':'RemoveFormat', 'time':'Time', 'date':'Date', 'unlink':'Unlink', 'insertrow':'InsertRow', 'insertcol':'InsertCol', 'mergeright':'MergeRight', 'mergedown':'MergeDown', 'deleterow':'DeleteRow', 'deletecol':'DeleteCol', 'splittorows':'SplitToRows','insertcode':'insert code', 'splittocols':'SplitToCols', 'splittocells':'SplitToCells','deletecaption':'DeleteCaption','inserttitle':'InsertTitle', 'mergecells':'MergeCells', 'deletetable':'DeleteTable', 'cleardoc':'Clear', 'insertparagraphbeforetable':"InsertParagraphBeforeTable", 'fontfamily':'FontFamily', 'fontsize':'FontSize', 'paragraph':'Paragraph','simpleupload':'Single Image','insertimage':'Multi Image','edittable':'Edit Table', 'edittd':'Edit Td','link':'Link', 'emotion':'Emotion', 'spechars':'Spechars', 'searchreplace':'SearchReplace', 'map':'BaiduMap', 'gmap':'GoogleMap', 'insertvideo':'Video', 'help':'Help', 'justifyleft':'JustifyLeft', 'justifyright':'JustifyRight', 'justifycenter':'JustifyCenter', 'justifyjustify':'Justify', 'forecolor':'FontColor', 'backcolor':'BackColor', 'insertorderedlist':'OL', 'insertunorderedlist':'UL', 'fullscreen':'FullScreen', 'directionalityltr':'EnterFromLeft', 'directionalityrtl':'EnterFromRight', 'rowspacingtop':'RowSpacingTop', 'rowspacingbottom':'RowSpacingBottom', 'pagebreak':'PageBreak', 'insertframe':'Iframe', 'imagenone':'Default', 'imageleft':'ImageLeft', 'imageright':'ImageRight', 'attachment':'Attachment', 'imagecenter':'ImageCenter', 'wordimage':'WordImage', 'lineheight':'LineHeight','edittip':'EditTip','customstyle':'CustomStyle', 'scrawl':'Scrawl', 'autotypeset':'AutoTypeset', 'webapp':'WebAPP', 'touppercase':'UpperCase', 'tolowercase':'LowerCase','template':'Template','background':'Background','inserttable':'InsertTable', 'music':'Music', 'charts': 'charts','drafts': 'Load from Drafts' }, 'insertorderedlist':{ 'num':'1,2,3...', 'num1':'1),2),3)...', 'num2':'(1),(2),(3)...', 'cn':'一,二,三....', 'cn1':'一),二),三)....', 'cn2':'(一),(二),(三)....', 'decimal':'1,2,3...', 'lower-alpha':'a,b,c...', 'lower-roman':'i,ii,iii...', 'upper-alpha':'A,B,C...', 'upper-roman':'I,II,III...' }, 'insertunorderedlist':{ 'circle':'○ Circle', 'disc':'● Circle dot', 'square':'■ Rectangle ', 'dash' :'- Dash', 'dot' : '。dot' }, 'paragraph':{'p':'Paragraph', 'h1':'Title 1', 'h2':'Title 2', 'h3':'Title 3', 'h4':'Title 4', 'h5':'Title 5', 'h6':'Title 6'}, 'fontfamily':{ 'songti':'Sim Sun', 'kaiti':'Sim Kai', 'heiti':'Sim Hei', 'lishu':'Sim Li', 'yahei': 'Microsoft YaHei', 'andaleMono':'Andale Mono', 'arial': 'Arial', 'arialBlack':'Arial Black', 'comicSansMs':'Comic Sans MS', 'impact':'Impact', 'timesNewRoman':'Times New Roman' }, 'customstyle':{ 'tc':'Title center', 'tl':'Title left', 'im':'Important', 'hi':'Highlight' }, 'autoupload': { 'exceedSizeError': 'File Size Exceed', 'exceedTypeError': 'File Type Not Allow', 'jsonEncodeError': 'Server Return Format Error', 'loading':"loading...", 'loadError':"load error", 'errorLoadConfig': 'Server config not loaded, upload can not work.', }, 'simpleupload':{ 'exceedSizeError': 'File Size Exceed', 'exceedTypeError': 'File Type Not Allow', 'jsonEncodeError': 'Server Return Format Error', 'loading':"loading...", 'loadError':"load error", 'errorLoadConfig': 'Server config not loaded, upload can not work.', }, 'elementPathTip':"Path", 'wordCountTip':"Word Count", 'wordCountMsg':'{#count} characters entered,{#leave} left. ', 'wordOverFlowMsg':'<span style="color:red;">The number of characters has exceeded allowable maximum values, the server may refuse to save!</span>', 'ok':"OK", 'cancel':"Cancel", 'closeDialog':"closeDialog", 'tableDrag':"You must import the file uiUtils.js before drag! ", 'autofloatMsg':"The plugin AutoFloat depends on EditorUI!", 'loadconfigError': 'Get server config error.', 'loadconfigFormatError': 'Server config format error.', 'loadconfigHttpError': 'Get server config http error.', 'snapScreen_plugin':{ 'browserMsg':"Only IE supported!", 'callBackErrorMsg':"The callback data is wrong,please check the config!", 'uploadErrorMsg':"Upload error,please check your server environment! " }, 'insertcode':{ 'as3':'ActionScript 3', 'bash':'Bash/Shell', 'cpp':'C/C++', 'css':'CSS', 'cf':'ColdFusion', 'c#':'C#', 'delphi':'Delphi', 'diff':'Diff', 'erlang':'Erlang', 'groovy':'Groovy', 'html':'HTML', 'java':'Java', 'jfx':'JavaFX', 'js':'JavaScript', 'pl':'Perl', 'php':'PHP', 'plain':'Plain Text', 'ps':'PowerShell', 'python':'Python', 'ruby':'Ruby', 'scala':'Scala', 'sql':'SQL', 'vb':'Visual Basic', 'xml':'XML' }, 'confirmClear':"Do you confirm to clear the Document?", 'contextMenu':{ 'delete':"Delete", 'selectall':"Select all", 'deletecode':"Delete Code", 'cleardoc':"Clear Document", 'confirmclear':"Do you confirm to clear the Document?", 'unlink':"Unlink", 'paragraph':"Paragraph", 'edittable':"Table property", 'aligncell':'Align cell', 'aligntable':'Table alignment', 'tableleft':'Left float', 'tablecenter':'Center', 'tableright':'Right float', 'aligntd':'Cell alignment', 'edittd':"Cell property", 'setbordervisible':'set table edge visible', 'table':"Table", 'justifyleft':'Justify Left', 'justifyright':'Justify Right', 'justifycenter':'Justify Center', 'justifyjustify':'Default', 'deletetable':"Delete table", 'insertparagraphbefore':"InsertedBeforeLine", 'insertparagraphafter':'InsertedAfterLine', 'inserttable':'Insert table', 'insertcaption':'Insert caption', 'deletecaption':'Delete Caption', 'inserttitle':'Insert Title', 'deletetitle':'Delete Title', 'inserttitlecol':'Insert Title Col', 'deletetitlecol':'Delete Title Col', 'averageDiseRow':'AverageDise Row', 'averageDisCol':'AverageDis Col', 'deleterow':"Delete row", 'deletecol':"Delete col", 'insertrow':"Insert row", 'insertcol':"Insert col", 'insertrownext':'Insert Row Next', 'insertcolnext':'Insert Col Next', 'mergeright':"Merge right", 'mergeleft':"Merge left", 'mergedown':"Merge down", 'mergecells':"Merge cells", 'splittocells':"Split to cells", 'splittocols':"Split to Cols", 'splittorows':"Split to Rows", 'tablesort':'Table sorting', 'enablesort':'Sorting Enable', 'disablesort':'Sorting Disable', 'reversecurrent':'Reverse current', 'orderbyasc':'Order By ASCII', 'reversebyasc':'Reverse By ASCII', 'orderbynum':'Order By Num', 'reversebynum':'Reverse By Num', 'borderbk':'Border shading', 'setcolor':'interlaced color', 'unsetcolor':'Cancel interlacedcolor', 'setbackground':'Background interlaced', 'unsetbackground':'Cancel Bk interlaced', 'redandblue':'Blue and red', 'threecolorgradient':'Three-color gradient', 'copy':"Copy(Ctrl + c)", 'copymsg':"Browser does not support. Please use 'Ctrl + c' instead!", 'paste':"Paste(Ctrl + v)", 'pastemsg':"Browser does not support. Please use 'Ctrl + v' instead!" }, 'copymsg': "Browser does not support. Please use 'Ctrl + c' instead!", 'pastemsg': "Browser does not support. Please use 'Ctrl + v' instead!", 'anthorMsg':"Link", 'clearColor':'Clear', 'standardColor':'Standard color', 'themeColor':'Theme color', 'property':'Property', 'default':'Default', 'modify':'Modify', 'justifyleft':'Justify Left', 'justifyright':'Justify Right', 'justifycenter':'Justify Center', 'justify':'Default', 'clear':'Clear', 'anchorMsg':'Anchor', 'delete':'Delete', 'clickToUpload':"Click to upload", 'unset':'Language hasn\'t been set!', 't_row':'row', 't_col':'col', 'pasteOpt':'Paste Option', 'pasteSourceFormat':"Keep Source Formatting", 'tagFormat':'Keep tag', 'pasteTextFormat':'Keep Text only', 'more':'More', 'autoTypeSet':{ 'mergeLine':"Merge empty line", 'delLine':"Del empty line", 'removeFormat':"Remove format", 'indent':"Indent", 'alignment':"Alignment", 'imageFloat':"Image float", 'removeFontsize':"Remove font size", 'removeFontFamily':"Remove fontFamily", 'removeHtml':"Remove redundant HTML code", 'pasteFilter':"Paste filter", 'run':"Done", 'symbol':'Symbol Conversion', 'bdc2sb':'Full-width to Half-width', 'tobdc':'Half-width to Full-width' }, 'background':{ 'static':{ 'lang_background_normal':'Normal', 'lang_background_local':'Online', 'lang_background_set':'Background Set', 'lang_background_none':'No Background', 'lang_background_colored':'Colored Background', 'lang_background_color':'Color Set', 'lang_background_netimg':'Net-Image', 'lang_background_align':'Align Type', 'lang_background_position':'Position', 'repeatType':{'options':["Center", "Repeat-x", "Repeat-y", "Tile","Custom"]} }, 'noUploadImage':"No pictures has been uploaded!", 'toggleSelect':'Change the active state by click!\n Image Size: ' }, //===============dialog i18N======================= 'insertimage':{ 'static':{ 'lang_tab_remote':"Insert", 'lang_tab_upload':"Local", 'lang_tab_online':"Manager", 'lang_tab_search':"Search", 'lang_input_url':"Address:", 'lang_input_size':"Size:", 'lang_input_width':"Width", 'lang_input_height':"Height", 'lang_input_border':"Border:", 'lang_input_vhspace':"Margins:", 'lang_input_title':"Title:", 'lang_input_align':'Image Float Style:', 'lang_imgLoading':"Loading...", 'lang_start_upload':"Start Upload", 'lock':{'title':"Lock rate"}, 'searchType':{'title':"ImageType", 'options':["News", "Wallpaper", "emotions", "photo"]}, 'searchTxt':{'value':"Enter the search keyword!"}, 'searchBtn':{'value':"Search"}, 'searchReset':{'value':"Clear"}, 'noneAlign':{'title':'None Float'}, 'leftAlign':{'title':'Left Float'}, 'rightAlign':{'title':'Right Float'}, 'centerAlign':{'title':'Center In A Line'} }, 'uploadSelectFile':'Select File', 'uploadAddFile':'Add File', 'uploadStart':'Start Upload', 'uploadPause':'Pause Upload', 'uploadContinue':'Continue Upload', 'uploadRetry':'Retry Upload', 'uploadDelete':'Delete', 'uploadTurnLeft':'Turn Left', 'uploadTurnRight':'Turn Right', 'uploadPreview':'Doing Preview', 'uploadNoPreview':'Can Not Preview', 'updateStatusReady': 'Selected _ pictures, total _KB.', 'updateStatusConfirm': '_ uploaded successfully and _ upload failed', 'updateStatusFinish': 'Total _ pictures (_KB), _ uploaded successfully', 'updateStatusError': ' and _ upload failed', 'errorNotSupport': 'WebUploader does not support the browser you are using. Please upgrade your browser or flash player', 'errorLoadConfig': 'Server config not loaded, upload can not work.', 'errorExceedSize':'File Size Exceed', 'errorFileType':'File Type Not Allow', 'errorInterrupt':'File Upload Interrupted', 'errorUploadRetry':'Upload Error, Please Retry.', 'errorHttp':'Http Error', 'errorServerUpload':'Server Result Error.', 'remoteLockError':"Cannot Lock the Proportion between width and height", 'numError':"Please enter the correct Num. e.g 123,400", 'imageUrlError':"The image format may be wrong!", 'imageLoadError':"Error,please check the network or URL!", 'searchRemind':"Enter the search keyword!", 'searchLoading':"Image is loading,please wait...", 'searchRetry':" Sorry,can't find the image,please try again!" }, 'attachment':{ 'static':{ 'lang_tab_upload': 'Upload', 'lang_tab_online': 'Online', 'lang_start_upload':"Start upload", 'lang_drop_remind':"You can drop files here, a single maximum of 300 files" }, 'uploadSelectFile':'Select File', 'uploadAddFile':'Add File', 'uploadStart':'Start Upload', 'uploadPause':'Pause Upload', 'uploadContinue':'Continue Upload', 'uploadRetry':'Retry Upload', 'uploadDelete':'Delete', 'uploadTurnLeft':'Turn Left', 'uploadTurnRight':'Turn Right', 'uploadPreview':'Doing Preview', 'updateStatusReady': 'Selected _ files, total _KB.', 'updateStatusConfirm': '_ uploaded successfully and _ upload failed', 'updateStatusFinish': 'Total _ files (_KB), _ uploaded successfully', 'updateStatusError': ' and _ upload failed', 'errorNotSupport': 'WebUploader does not support the browser you are using. Please upgrade your browser or flash player', 'errorLoadConfig': 'Server config not loaded, upload can not work.', 'errorExceedSize':'File Size Exceed', 'errorFileType':'File Type Not Allow', 'errorInterrupt':'File Upload Interrupted', 'errorUploadRetry':'Upload Error, Please Retry.', 'errorHttp':'Http Error', 'errorServerUpload':'Server Result Error.' }, 'insertvideo':{ 'static':{ 'lang_tab_insertV':"Video", 'lang_tab_searchV':"Search", 'lang_tab_uploadV':"Upload", 'lang_video_url':" URL ", 'lang_video_size':"Video Size", 'lang_videoW':"Width", 'lang_videoH':"Height", 'lang_alignment':"Alignment", 'videoSearchTxt':{'value':"Enter the search keyword!"}, 'videoType':{'options':["All", "Hot", "Entertainment", "Funny", "Sports", "Science", "variety"]}, 'videoSearchBtn':{'value':"Search in Baidu"}, 'videoSearchReset':{'value':"Clear result"}, 'lang_input_fileStatus':' No file uploaded!', 'startUpload':{'style':"background:url(upload.png) no-repeat;"}, 'lang_upload_size':"Video Size", 'lang_upload_width':"Width", 'lang_upload_height':"Height", 'lang_upload_alignment':"Alignment", 'lang_format_advice':"Recommends mp4 format." }, 'numError':"Please enter the correct Num. e.g 123,400", 'floatLeft':"Float left", 'floatRight':"Float right", 'default':"Default", 'block':"Display in block", 'urlError':"The video url format may be wrong!", 'loading':" &nbsp;The video is loading, please wait…", 'clickToSelect':"Click to select", 'goToSource':'Visit source video ', 'noVideo':" &nbsp; &nbsp;Sorry,can't find the video,please try again!", 'browseFiles':'Open files', 'uploadSuccess':'Upload Successful!', 'delSuccessFile':'Remove from the success of the queue', 'delFailSaveFile':'Remove the save failed file', 'statusPrompt':' file(s) uploaded! ', 'flashVersionError':'The current Flash version is too low, please update FlashPlayer,then try again!', 'flashLoadingError':'The Flash failed loading! Please check the path or network state', 'fileUploadReady':'Wait for uploading...', 'delUploadQueue':'Remove from the uploading queue ', 'limitPrompt1':'Can not choose more than single', 'limitPrompt2':'file(s)!Please choose again!', 'delFailFile':'Remove failure file', 'fileSizeLimit':'File size exceeds the limit!', 'emptyFile':'Can not upload an empty file!', 'fileTypeError':'File type error!', 'unknownError':'Unknown error!', 'fileUploading':'Uploading,please wait...', 'cancelUpload':'Cancel upload', 'netError':'Network error', 'failUpload':'Upload failed', 'serverIOError':'Server IO error!', 'noAuthority':'No Permission!', 'fileNumLimit':'Upload limit to the number', 'failCheck':'Authentication fails, the upload is skipped!', 'fileCanceling':'Cancel, please wait...', 'stopUploading':'Upload has stopped...', 'uploadSelectFile':'Select File', 'uploadAddFile':'Add File', 'uploadStart':'Start Upload', 'uploadPause':'Pause Upload', 'uploadContinue':'Continue Upload', 'uploadRetry':'Retry Upload', 'uploadDelete':'Delete', 'uploadTurnLeft':'Turn Left', 'uploadTurnRight':'Turn Right', 'uploadPreview':'Doing Preview', 'updateStatusReady': 'Selected _ files, total _KB.', 'updateStatusConfirm': '_ uploaded successfully and _ upload failed', 'updateStatusFinish': 'Total _ files (_KB), _ uploaded successfully', 'updateStatusError': ' and _ upload failed', 'errorNotSupport': 'WebUploader does not support the browser you are using. Please upgrade your browser or flash player', 'errorLoadConfig': 'Server config not loaded, upload can not work.', 'errorExceedSize':'File Size Exceed', 'errorFileType':'File Type Not Allow', 'errorInterrupt':'File Upload Interrupted', 'errorUploadRetry':'Upload Error, Please Retry.', 'errorHttp':'Http Error', 'errorServerUpload':'Server Result Error.' }, 'webapp':{ 'tip1':"This function provided by Baidu APP,please apply for baidu APPKey webmaster first!", 'tip2':"And then open the file ueditor.config.js to set it! ", 'applyFor':"APPLY FOR", 'anthorApi':"Baidu API" }, 'template':{ 'static':{ 'lang_template_bkcolor':'Background Color', 'lang_template_clear' : 'Keep Content', 'lang_template_select':'Select Template' }, 'blank':"Blank", 'blog':"Blog", 'resume':"Resume", 'richText':"Rich Text", 'scrPapers':"Scientific Papers" }, scrawl:{ 'static':{ 'lang_input_previousStep':"Previous", 'lang_input_nextsStep':"Next", 'lang_input_clear':'Clear', 'lang_input_addPic':'AddImage', 'lang_input_ScalePic':'ScaleImage', 'lang_input_removePic':'RemoveImage', 'J_imgTxt':{title:'Add background image'} }, 'noScarwl':"No paint, a white paper...", 'scrawlUpLoading':"Image is uploading, please wait...", 'continueBtn':"Try again", 'imageError':"Image failed to load!", 'backgroundUploading':'Image is uploading,please wait...' }, 'music':{ 'static':{ 'lang_input_tips':"Input singer/song/album, search you interested in music!", 'J_searchBtn':{value:'Search songs'} }, 'emptyTxt':'Not search to the relevant music results, please change a keyword try.', 'chapter':'Songs', 'singer':'Singer', 'special':'Album', 'listenTest':'Audition' }, anchor:{ 'static':{ 'lang_input_anchorName':'Anchor Name:' } }, 'charts':{ 'static':{ 'lang_data_source':'Data source:', 'lang_chart_format': 'Chart format:', 'lang_data_align': 'Align', 'lang_chart_align_same': 'Consistent with the X-axis Y-axis', 'lang_chart_align_reverse': 'X-axis Y-axis opposite', 'lang_chart_title': 'Title', 'lang_chart_main_title': 'main title:', 'lang_chart_sub_title': 'sub title:', 'lang_chart_x_title': 'X-axis title:', 'lang_chart_y_title': 'Y-axis title:', 'lang_chart_tip': 'Prompt', 'lang_cahrt_tip_prefix': 'prefix:', 'lang_cahrt_tip_description': '仅饼图有效, 当鼠标移动到饼图中相应的块上时,提示框内的文字的前缀', 'lang_chart_data_unit': 'Unit', 'lang_chart_data_unit_title': 'unit:', 'lang_chart_data_unit_description': '显示在每个数据点上的数据的单位, 比如: 温度的单位 ℃', 'lang_chart_type': 'Chart type:', 'lang_prev_btn': 'Previous', 'lang_next_btn': 'Next' } }, emotion:{ 'static':{ 'lang_input_choice':'Choice', 'lang_input_Tuzki':'Tuzki', 'lang_input_lvdouwa':'LvDouWa', 'lang_input_BOBO':'BOBO', 'lang_input_babyCat':'BabyCat', 'lang_input_bubble':'Bubble', 'lang_input_youa':'YouA' } }, gmap:{ 'static':{ 'lang_input_address':'Address:', 'lang_input_search':'Search', 'address':{value:"Beijing"} }, searchError:'Unable to locate the address!' }, help:{ 'static':{ 'lang_input_about':'About', 'lang_input_shortcuts':'Shortcuts', 'lang_input_introduction':"UEditor is developed by Baidu Co.ltd. It is lightweight, customizable , focusing on user experience and etc. , UEditor is based on open source BSD license , allowing free use and redistribution.", 'lang_Txt_shortcuts':'Shortcuts', 'lang_Txt_func':'Function', 'lang_Txt_bold':'Bold', 'lang_Txt_copy':'Copy', 'lang_Txt_cut':'Cut', 'lang_Txt_Paste':'Paste', 'lang_Txt_undo':'Undo', 'lang_Txt_redo':'Redo', 'lang_Txt_italic':'Italic', 'lang_Txt_underline':'Underline', 'lang_Txt_selectAll':'Select All', 'lang_Txt_visualEnter':'Submit', 'lang_Txt_fullscreen':'Fullscreen' } }, insertframe:{ 'static':{ 'lang_input_address':'Address:', 'lang_input_width':'Width:', 'lang_input_height':'height:', 'lang_input_isScroll':'Enable scrollbars:', 'lang_input_frameborder':'Show frame border:', 'lang_input_alignMode':'Alignment:', 'align':{title:"Alignment", options:["Default", "Left", "Right", "Center"]} }, 'enterAddress':'Please enter an address!' }, link:{ 'static':{ 'lang_input_text':'Text:', 'lang_input_url':'URL:', 'lang_input_title':'Title:', 'lang_input_target':'open in new window:' }, 'validLink':'Supports only effective when a link is selected', 'httpPrompt':'The hyperlink you enter should start with "http|https|ftp://"!' }, map:{ 'static':{ lang_city:"City", lang_address:"Address", city:{value:"Beijing"}, lang_search:"Search", lang_dynamicmap:"Dynamic map" }, cityMsg:"Please enter the city name!", errorMsg:"Can't find the place!" }, searchreplace:{ 'static':{ lang_tab_search:"Search", lang_tab_replace:"Replace", lang_search1:"Search", lang_search2:"Search", lang_replace:"Replace", lang_searchReg:'Support regular expression ,which starts and ends with a slash ,for example "/expression/"', lang_searchReg1:'Support regular expression ,which starts and ends with a slash ,for example "/expression/"', lang_case_sensitive1:"Case sense", lang_case_sensitive2:"Case sense", nextFindBtn:{value:"Next"}, preFindBtn:{value:"Preview"}, nextReplaceBtn:{value:"Next"}, preReplaceBtn:{value:"Preview"}, repalceBtn:{value:"Replace"}, repalceAllBtn:{value:"Replace all"} }, getEnd:"Has the search to the bottom!", getStart:"Has the search to the top!", countMsg:"Altogether replaced {#count} character(s)!" }, snapscreen:{ 'static':{ lang_showMsg:"You should install the UEditor screenshots program first!", lang_download:"Download!", lang_step1:"Step1:Download the program and then run it", lang_step2:"Step2:After complete install,try to click the button again" } }, spechars:{ 'static':{}, tsfh:"Special", lmsz:"Roman", szfh:"Numeral", rwfh:"Japanese", xlzm:"The Greek", ewzm:"Russian", pyzm:"Phonetic", yyyb:"English", zyzf:"Others" }, 'edittable':{ 'static':{ 'lang_tableStyle':'Table style', 'lang_insertCaption':'Add table header row', 'lang_insertTitle':'Add table title row', 'lang_insertTitleCol':'Add table title col', 'lang_tableSize':'Automatically adjust table size', 'lang_autoSizeContent':'Adaptive by form text', 'lang_orderbycontent':"Table of contents sortable", 'lang_autoSizePage':'Page width adaptive', 'lang_example':'Example', 'lang_borderStyle':'Table Border', 'lang_color':'Color:' }, captionName:'Caption', titleName:'Title', cellsName:'text', errorMsg:'There are merged cells, can not sort.' }, 'edittip':{ 'static':{ lang_delRow:'Delete entire row', lang_delCol:'Delete entire col' } }, 'edittd':{ 'static':{ lang_tdBkColor:'Background Color:' } }, 'formula':{ 'static':{ } }, wordimage:{ 'static':{ lang_resave:"The re-save step", uploadBtn:{src:"upload.png", alt:"Upload"}, clipboard:{style:"background: url(copy.png) -153px -1px no-repeat;"}, lang_step:" 1. Click top button to copy the url and then open the dialog to paste it. 2. Open after choose photos uploaded process." }, fileType:"Image", flashError:"Flash initialization failed!", netError:"Network error! Please try again!", copySuccess:"URL has been copied!", 'flashI18n':{ lang:encodeURI( '{"UploadingState":"totalNum: ${a},uploadComplete: ${b}", "BeforeUpload":"waitingNum: ${a}", "ExceedSize":"Size exceed${a}", "ErrorInPreview":"Preview failed", "DefaultDescription":"Description", "LoadingImage":"Loading..."}' ), uploadingTF:encodeURI( '{"font":"Arial", "size":12, "color":"0x000", "bold":"true", "italic":"false", "underline":"false"}' ), imageTF:encodeURI( '{"font":"Arial", "size":11, "color":"red", "bold":"false", "italic":"false", "underline":"false"}' ), textEncoding:"utf-8", addImageSkinURL:"addImage.png", allDeleteBtnUpSkinURL:"allDeleteBtnUpSkin.png", allDeleteBtnHoverSkinURL:"allDeleteBtnHoverSkin.png", rotateLeftBtnEnableSkinURL:"rotateLeftEnable.png", rotateLeftBtnDisableSkinURL:"rotateLeftDisable.png", rotateRightBtnEnableSkinURL:"rotateRightEnable.png", rotateRightBtnDisableSkinURL:"rotateRightDisable.png", deleteBtnEnableSkinURL:"deleteEnable.png", deleteBtnDisableSkinURL:"deleteDisable.png", backgroundURL:'', listBackgroundURL:'', buttonURL:'button.png' } }, 'autosave': { 'success':'Local conservation success' } };
portal-front - Gogs: Go Git Service

portal html css js resource

myDemand.js 13KB

    $(document).ready(function() { $(".onlogin .headnavbtn li").eq(0).addClass("navcurrent"); loginStatus(); //判断个人是否登录 var yesNo = "", oSortType = 0, demandType, orgId; /*我的需求列表*/ function myDemandList(isbind, page, pageNum, dema, sortType) { $.ajax({ url: "/ajax/demand/pqDemander", type: "GET", timeout: 10000, dataType: "json", data: { "demander": userid, "pageNo": page, "demandStatus": dema, "sortType": sortType, "pageSize": pageNum }, beforeSend: function() {}, success: function(data, textState) { if(data.success) { // if(data.data.data.length==0){ // return; // } $(".workselectitem").html(" "); demandHtml(data.data.data); if(isbind == true) { $(".tcdPageCode").createPage({ pageCount: Math.ceil(data.data.total / pageNum), current: data.data.data.pageNo, backFn: function(p) { myDemandList(false, p, 5, yesNo, oSortType); } }); } } }, error: function(XMLHttpRequest, textStats, errorThrown) { } }) } function demandHtml($data) { for(var i = 0; i < $data.length; i++) { var oTime, oDemandType, oDemandAim, oDemandStatus; if($data[i].demandType == 1) { oDemandType = "个人需求" } else if($data[i].demandType == 2) { oDemandType = "企业需求" } if($data[i].demandAim == 1) { oDemandAim = "技术咨询" } else if($data[i].demandAim == 2) { oDemandAim = "寻找资源" } else if($data[i].demandAim == 3) { oDemandAim = "其他需求" } if($data[i].demandStatus == 0) { oDemandStatus = "已关闭" } else if($data[i].demandStatus == 1) { oDemandStatus = "发布中" } oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" + $data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2); var oString = "<div class='workselectitem'><table width='100%'><tbody><tr>" oString += "<td style='position:relative;top:20px;'>" oString += "<div class='workinfor worksitcon'>" oString += "<h4><div class='titList h4Font' style='width:620px'>" + $data[i].demandTitle + "</div></h4>" oString += "<h6 style='position:relative;'>" oString += "<div class='clearfix'>" oString += "<div class='floatL'>发布时间:<span class='lasttime'>" + oTime + "</span></div>" if($data[i].closeTime) { var oCloseTime = $data[i]["closeTime"].substr(0, 4) + "年" + $data[i].closeTime.substr(4, 2) + "月" + $data[i].closeTime.substr(6, 2) + "日" + $data[i].closeTime.substr(8, 2) + ":" + $data[i].closeTime.substr(10, 2); oString += "<div class='floatL' style='margin-left:40px;'>关闭时间:<span class='lasttime'>" + oCloseTime + "</span></div></div>" } oString += "<div style='height:70px'><p class='rebackcon lastReplyCon' style='width: 860px;' >" + $data[i].demandContent + "</p></div></h6></div>" oString += "<div class='workhandle'>" oString += "<div class='rightopert floatR'>" oString += "<span class='replybtn'demanid='" + $data[i].demandId + "'>查看</span></div>" oString += "<div class='leftstate floatR'>" oString += "<span class='coultstate status-1'><i>" + oDemandStatus + "</i></span></div>" oString += "<div class='leftstate floatR'>" oString += "<span class='coultstate status-4'><i>" + oDemandAim + "</i></span></div>" oString += "<div class='leftstate floatR'>" oString += "<span class='coultstate coulstAim status-4'><i>" + oDemandType + "</i></span></div></div></td></tr></tbody></table></div>" $("#myNeed").append(oString) } } myDemandList(true, 1, 5, yesNo, oSortType); /*检索排序*/ function selcet(i) { $(".selcet" + i).on('click', function(e) { var option = $(this).find(".option" + i); option.css("display", "block") var o_this = $(this); o_this.find("li").click(function() { o_this.find("li").removeClass("workcurrent"); $(this).addClass("workcurrent"); o_this.find("span").text($(this).text()); option.css("display", "none"); if($(this).text() == "全部") { yesNo = ""; $(".tcdPageCode").remove(); $("#workContainer2").append('<div class="tcdPageCode"></div>'); myDemandList(true, 1, 5, yesNo, oSortType); } else if($(this).text() == "发布中") { yesNo = 1; $(".tcdPageCode").remove(); $("#workContainer2").append('<div class="tcdPageCode"></div>'); myDemandList(true, 1, 5, yesNo, oSortType); } else if($(this).text() == "已关闭") { yesNo = 0; $(".tcdPageCode").remove(); $("#workContainer2").append('<div class="tcdPageCode"></div>'); myDemandList(true, 1, 5, yesNo, oSortType); } else if($(this).text() == "按最早发布时间排序") { oSortType = 1; $(".tcdPageCode").remove(); $("#workContainer2").append('<div class="tcdPageCode"></div>'); myDemandList(true, 1, 5, yesNo, oSortType); } else if($(this).text() == "按最新发布时间排序") { oSortType = 0; $(".tcdPageCode").remove(); $("#workContainer2").append('<div class="tcdPageCode"></div>'); myDemandList(true, 1, 5, yesNo, oSortType); } return false; }); $("body").click(function(e) { if($(".option4")[0].style.display == "block" || $(".option1")[0].style.display == "block") { $(".option4")[0].style.display = "none"; $(".option1")[0].style.display = "none"; } }); return false; }) } selcet(1); selcet(4); $("#myNeed").on("click", ".replybtn", function() { var de = $(this).attr("demanid"); location.href = "needShow.html?demandId=" + de }); /*发布新需求*/ $("#needIssueBtn").click(function() { $.ajax({ url: "/ajax/professor/baseInfo/" + userid, type: "GET", timeout: 10000, dataType: "json", success: function(data) { if(data.success) { console.log(data); var $rta = data.data; orgId = $rta.orgId console.log(orgId) $("#induSub").val(""); $("textarea").val(""); $("#demandContent").val(""); $("#navsub").find("li").removeClass("aimedLi"); $("#mutChecked").find("li").removeClass("checkedLi"); $('.checkNow').removeClass('checkNow'); if($rta.authStatus != 3) { if($rta.orgAuth == 1) { $(".blackcover ").show(); $("body").css("position","fixed"); $("span:contains('企业需求')").addClass("checkNow"); $("span:contains('个人需求')").addClass("checkNo"); demandType = 2; } else { location.href = "realname-authentication.html"; } } else { $(".blackcover ").show(); $("body").css("position","fixed"); if($rta.orgAuth == 0) { $("span:contains('企业需求')").addClass("checkNo"); $("span:contains('个人需求')").addClass("checkNow"); demandType = 1; } else { demanTy(); } } } }, error: function(XMLHttpRequest, textStats, errorThrown) { } }) }); $("#workclose2").click(function() { $(".blackcover ").hide(); $("body").css("position","relative"); }) /*发布新需求目的*/ var consun; tab("navsub"); //身份切换 function tab(name) { var oDome = document.getElementById(name); var oSpan = oDome.getElementsByTagName('ul')[0].childNodes; for(var i = 0; i < oSpan.length; i++) { oSpan[i].onclick = function() { for(var i = 0; i < oSpan.length; i++) { oSpan[i].className = ''; } this.className = 'aimedLi'; if(this.getElementsByTagName("span")[0].innerText == "咨询技术难题") { consun = 1; } else if(this.getElementsByTagName("span")[0].innerText == "寻求研发资源") { consun = 2; } else { consun = 3; } } } } /*切换需求类型*/ function demanTy() { var deTy = document.getElementsByClassName("boxnavTo")[0]; var deTyChild = deTy.getElementsByTagName("span"); if(deTyChild[0].className != "checkNo" && deTyChild[1].className != "checkNo") { for(var n = 0; n < deTyChild.length; n++) { (function(m) { deTyChild[m].onclick = function() { this.className = "checkNow"; if(m == 0) { demandType = 1; deTyChild[1].className = ""; } else if(m == 1) { demandType = 2; deTyChild[0].className = ""; } } })(n); } } } /*需求题目限制30个字*/ $("#demandContent").on('keyup', function() { if(this.value.length > 30) { this.value = this.value.substring(0, 30); } }); /*需求内容限制300个字*/ $("textarea").on('keyup', function() { var maxChars = 300; if(this.value.length > maxChars) { this.value = this.value.substring(0, maxChars); } var oCanInput = maxChars - this.value.length; $("#countNum").text(oCanInput); }); /*查询应用行业及学术领域*/ function industry(insu) { $.ajax({ url: "/ajax/dataDict/qaDictCode", dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, //超时设置 data: { "dictCode": insu }, success: function(data) { if(data.success) { var $data = data.data; var n; ($data.length > 5) ? n = 5: n = $data.length for(var i = 0; i < n; i++) { var oString = '<li><span>' + $data[i].caption + '</span></li>'; $("#mutChecked").append(oString); } } }, error: function() { return; } }); } industry("INDUSTRY"); industry("SUBJECT"); /*行业及领域选择*/ $('#mutChecked').on('click', 'li', function() { if(this.className == "checkedLi") { this.className = "" } else { this.className = "checkedLi" } }) /*行业或者领域添加及删除*/ $("#labelshow").on("click", ".removeNu", function() { $(this).parent().remove(); }); $("#addIndu").click(function() { var oinduSub = $("#induSub").val(); var oAddNum = $("#labelshow").find("em"); if(!oinduSub.trim()) { $.MsgBox.Alert("消息", "请先添加内容"); return; } if(oinduSub.trim().length > 10) { $.MsgBox.Alert("消息", "不能多于10个字"); return; } if(oAddNum.length == 5) { $.MsgBox.Alert("消息", "最多添加五条"); return; } for(var i = 0; i < oAddNum.length; i++) { if(oAddNum[i].innerHTML == oinduSub) { $.MsgBox.Alert("消息", "不能重复添加"); return; } } $("#labelshow").append('<li class="deleteSubject"><em>' + oinduSub + '</em><span class="removeNu"><img src="images/move.png"></span></li>') $("#induSub").val(""); }) /*发布新需求*/ $("#postDemand").click(function() { var dd = $("#navsub").find(".aimedLi"); var cc = $("#navsubTo").find(".checkNow"); if(dd.length == 0) { $.MsgBox.Alert("消息", "请选择您发布需求的目的"); return; } if(cc.length == 0) { $.MsgBox.Alert("消息", "请选择您的需求类型"); return; } if(!$("#demandContent").val().trim()) { $.MsgBox.Alert("消息", "请填写需求主题"); return; } if(!$("textarea").val().trim()) { $.MsgBox.Alert("消息", "请填写需求内容"); return; } publish() }); function publish() { var arr = []; var oSuin = $(".checkedLi"); var oin = $("#labelshow").find("li"); for(var i = 0; i < oSuin.length; i++) { arr[i] = oSuin[i].innerText; } for(var j = 0; j < oin.length; j++, i++) { //console.log(oin[j].innerText); arr[i] = oin[j].innerText; } $.ajax({ url: '/ajax/demand', dataType: 'json', //数据格式类型 type: 'post', //http请求类型 timeout: 10000, //超时设置 traditional: true, data: { "demander": userid, "demandAim": consun, "demandType": demandType, "demandTitle": $("#demandContent").val(), "demandContent": $("textarea").val(), "args": arr, "orgId": (demandType == 2) ? orgId : "", }, success: function(data) { if(data.success) { myDemandList(true, 1, 5, yesNo, oSortType); $(".blackcover ").hide(); $("body").css("position","relative"); $.MsgBox.Alert("消息", "需求发布成功!很快会有专家与您联系,您可以在咨询列表中查看专家回复的信息"); $("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain'); } }, error: function() { return; } }); } /*判断是否是专家*/ $.ajax({ url: "/ajax/professor/auth", type: "GET", timeout: 10000, dataType: "json", data: { "id": userid, }, success: function(data, textState) { if(data.success) { var $rta = data.data; if($rta.authType == 0) { $("#searchDemand").hide(); } } }, error: function(XMLHttpRequest, textStats, errorThrown) { } }) })