<!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> <?php include_js('prototype.js, application.js'); ?> <?php include_css('main.css'); ?> </head> <body> <p>Sample View</p> </body> </html>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title><?php echo get_config('site.title'); ?> </title> <?php // css include_css('bootstrap.css'); include_css('bootstrap-theme.css'); include_css('datepicker3.css'); include_css('style.css'); // js include_js('jquery-1.10.2.min.js'); include_js('bootstrap.min.js'); include_js('bootstrap-datepicker.js'); include_js('locales/bootstrap-datepicker.zh-CN.js'); ?> </head> <body> <div id="wrapper"> <!-- header --> <?php include_element('header.php'); ?> <div class="misc container-fluid" style="margin-top: 80px;"> <?php include_element('messages.php'); include_template($template); ?>
<div class="small-box bg-red"> <div class="inner"> <h3>65</h3> <p>Unique Visitors</p> </div> <div class="icon"> <i class="ion ion-pie-graph"></i> </div> <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div><!-- ./col --> </div> </section> </div> <!-- Main Footer --> <?php foot($pageName); ?> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> <div class="control-sidebar-bg"></div> </div><!-- ./wrapper --> <?php include_js(); ?> </body> </html>
function content_55e44441c21315_45821929($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/var/www/includes/smartyv3/plugins/modifier.replace.php'; } ?> <script> var baseurl = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> '; var imageurl = '<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> '; </script> <script type="text/javascript"> var embedPlayerWidth = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_width']; ?> '; var embedPlayerHeight = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_height']; ?> '; var autoPlayEmbed = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['autoplay_embed']; ?> '; var embed_type = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type']; ?> '; function updateEmbed(width,height,autoplay) { $('#embed_code').val( $('#embed_code').val().replace(/width=\"([0-9]+)\"/g,'width="'+width+'"') ); $('#embed_code').val( $('#embed_code').val().replace(/height=\"([0-9]+)\"/g,'height="'+height+'"') ); $('#embed_code').val( $('#embed_code').val().replace(/width=([0-9]+)/g,'width='+width) ); $('#embed_code').val( $('#embed_code').val().replace(/height=([0-9]+)/g,'height='+height+'') ); } function switchEmbedCode(type) { if(embed_type==type) return false; else { embed_type = type; var alt_embed =$('#alternate_embed_code').val(); $('#alternate_embed_code').val($('#embed_code').val()); $('#embed_code').val(alt_embed); } } </script> <!-- Including JS Files--> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->JSArray; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['scope'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scope']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['type']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['scope']->key => $_smarty_tpl->tpl_vars['scope']->value) { $_smarty_tpl->tpl_vars['scope']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['scope']->key; ?> <?php echo include_js(array('type' => $_smarty_tpl->tpl_vars['scope']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl); ?> <?php } } ?> <!-- Including JS Files--> <script type="text/javascript"> callURLParser(); </script> <!-- Including Plugin Headers --> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->header_files; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key; ?> <?php echo include_header(array('file' => $_smarty_tpl->tpl_vars['file']->value, 'type' => $_smarty_tpl->tpl_vars['type']->value), $_smarty_tpl); ?> <?php } ?> <!-- Ending Plugin Headers --> <?php if (@constant('THIS_PAGE') == 'upload') { ?> <link href="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/swfobject.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/jquery.uploadify.v2.1.4.js"></script> <script type="text/javascript"> var jsURL = '<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> '; var uploadError = false; var file_name = '<?php echo $_smarty_tpl->tpl_vars['file_name']->value; ?> '; var lang = new Array(); lang['saveData'] = '<?php echo smarty_lang(array('code' => 'save_data'), $_smarty_tpl); ?> '; lang['savingData'] = '<?php echo smarty_lang(array('code' => 'saving'), $_smarty_tpl); ?> '; lang['remoteUploadFile'] = '<?php echo smarty_lang(array('code' => "remote_upload_file"), $_smarty_tpl); ?> '; lang['upload_video_button'] = '<?php echo smarty_lang(array('code' => "upload_video_button"), $_smarty_tpl); ?> '; var fileExt = '<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['Cbucket']->value->list_extensions(), ",", ";"); ?> '; var uploadSwfPath = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadSwfPath']; ?> '; var uploadScriptPath = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadScriptPath']; ?> '; var time_stamp = <?php echo time(); ?> ; function show_error(msg,ID,fade) { $('#file_uploads'+ID+' .percentage') .after('<div class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+msg+'<\/div><\/div>'); if(fade){$('.uploadSuccessDiv').delay(3000).fadeOut('slow');} } function show_message(msg,ID,fade) { $('#uploadForm'+ID) .prepend('<div class=\"uploadSuccessDiv\"><div class=\"uploadSuccessMsg\">'+msg+'<\/div><\/div>'); if(fade){$('.uploadSuccessDiv').delay(3000).fadeOut('slow');} } function doUpdateVideo(formId,ID) { var formObjectData = $(formId).serialize(); //alert(serializedData); $('#updateVideoDataLoading').html('<img src="'+imageurl+'/ajax-loader.gif" />'); $('#cbSubmitUpload'+ID) .attr('disabled','disabled') .attr("value",lang.savingData) .attr("onClick","return false;"); $.post( baseurl+'/actions/file_uploader.php',formObjectData,function(data) { if(data.msg) show_message(data.msg,ID,true); if(data.error) show_error(data.error,ID,true); $('#updateVideoDataLoading').empty(); $('#cbSubmitUpload'+ID) .removeAttr("disabled") .attr("value",lang.saveData) .attr("onClick","doUpdateVideo('#uploadForm"+ID+"','"+ID+"')") },"json" ) } $(document).ready(function() { var instanceNumber = 0; function showUploadify(object) { $(object).uploadify({ 'uploader' : uploadSwfPath, 'scriptAccess' : 'always', 'script' : uploadScriptPath, 'cancelImg' : imageurl+'/cancel_upload.png', 'auto' : true, 'removeCompleted' : false, 'displayData' : 'both', 'fileExt' : fileExt, 'multi' : true, 'fileDesc' : 'Video Files', 'buttonText' : lang.upload_video_button, 'queueID' : 'fileUploadQueue', 'queueLimit' : 2, 'onOpen' : function(event,ID,fileObj) { uploadError = false; filename = new Date().getTime() + Math.round((99977 - 10016) * Math.random() + 1) ; $.ajax({ url: baseurl+'/actions/file_uploader.php', type: "POST", data:({"getForm":"get_form","title":fileObj.name,"objId":ID}), dataType: "text", success: function(data) { if(!uploadError) { $('#file_uploads'+ID).append(data); } } }); return true; }, 'onComplete' : function(event, ID, fileObj, response, data) { var resObj = eval('(' + response + ')'); var vid = ""; if(resObj.success=='yes') { var file_name = resObj.file_name; $.ajax({ url: baseurl+'/actions/file_uploader.php', type: "POST", data:({"insertVideo":"yes","title":fileObj.name,"file_name":file_name,'time_stamp' : time_stamp}), dataType: "text", success: function(data) { if(data.error) { show_error(data.error,ID,true); }else { vid = data.videoid; $("#uploadForm"+ID+" #title").after('<input type="hidden" name="videoid" value="'+vid+'" id="videoid" />') .after('<input type="hidden" name="updateVideo" value="yes" id="updateVideo" />'); $('#cbSubmitUpload'+ID) .before('<span id="updateVideoDataLoading" style="margin-right:5px"></span>') .removeAttr("disabled") .attr("value",lang.saveData) .attr("onClick","doUpdateVideo('#uploadForm"+ID+"','"+ID+"')"); doUpdateVideo('#uploadForm'+ID,ID); } } }); }else { $("#upload_form"+ID).empty().remove(); show_error(resObj.error,ID,false); uploadError = true; return false; } } }); } showUploadify('#file_uploads'); }); </script> <?php } else { ?> <script type="text/javascript"> window.onload = function() { <?php if ($_smarty_tpl->tpl_vars['total_quicklist']->value) { ?> load_quicklist_box(); <?php } ?> ini_cookies(); } </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'photo_upload') { ?> <link href="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/swfobject.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/jquery.uploadify.v2.1.4.js"></script> <script type="text/javascript" language="javascript"> fileExt = '<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->extensions(); ?> ', lang = new Array(), pData = new Array(), ajaxImage = '<img src="'+imageurl+'/ajax-loader.gif" style="vertical-align:middle;" /> ', uploadError = false; <?php if ($_GET['collection']) { ?> <?php if (isset($_smarty_tpl->tpl_vars['cid'])) { $_smarty_tpl->tpl_vars['cid'] = clone $_smarty_tpl->tpl_vars['cid']; $_smarty_tpl->tpl_vars['cid']->value = $_smarty_tpl->tpl_vars['cbphoto']->value->decode_key($_GET['collection']); $_smarty_tpl->tpl_vars['cid']->nocache = null; $_smarty_tpl->tpl_vars['cid']->scope = 0; } else { $_smarty_tpl->tpl_vars['cid'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbphoto']->value->decode_key($_GET['collection']), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['cbphoto']->value->is_addable($_smarty_tpl->tpl_vars['cid']->value)) { ?> collectionID = '<?php echo $_smarty_tpl->tpl_vars['cid']->value; ?> '; <?php } } ?> lang['browsePhrase'] = '<?php echo smarty_lang(array('code' => "browse_photos"), $_smarty_tpl); ?> '; lang['saveData'] = "<?php echo smarty_lang(array('code' => 'save_data'), $_smarty_tpl); ?> "; lang['savingData'] = "<?php echo smarty_lang(array('code' => 'saving'), $_smarty_tpl); ?> "; lang['upPhoto'] = "<?php echo smarty_lang(array('code' => 'update_photo'), $_smarty_tpl); ?> "; var uploadSwfPath = '<?php echo $_smarty_tpl->tpl_vars['photoUploaderDetails']->value['uploadSwfPath']; ?> '; var uploadScriptPath = '<?php echo $_smarty_tpl->tpl_vars['photoUploaderDetails']->value['uploadScriptPath']; ?> '; function photoMessage(message,ID,fade) { if(document.getElementById(ID+"Message")) $("#"+ID+"Message").children(":first-child").html(message).end().fadeIn('slow'); else { $("#Form"+ID).before('<div id=\"'+ID+'Message\" class=\"uploadSuccessDiv\"><div class=\"uploadSuccessMsg\">'+message+'<\/div><\/div>'); } if(fade) $("#"+ID+"Message").delay(300).fadeOut('slow'); } function photoError(message,ID,fade) { if(document.getElementById(ID+"Error")) $("#"+ID+"Error").children(":first-child").html(message).end().fadeIn('slow'); else { $("#Form"+ID) .before('<div id=\"'+ID+'Error\" class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+message+'<\/div><\/div>'); } if(fade) $("#"+ID+"Error").delay(3000).fadeOut('slow'); } function QueueLimitError(message,fade) { $("#photoUploadQueue") .before('<div id=\"QueueError\" style=\"margin-top:6px;\" class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+message+'<\/div><\/div>'); if(fade) $("#QueueError").delay(5000).fadeOut('slow'); } function insertAjaxPhoto(ID,filename,extension,server_url,folder) { var photoFields = $("#Form"+ID).serialize(); $.ajax({ url : baseurl+'/actions/photo_uploader.php', type : 'POST', dataType : 'json', data : photoFields+"&filename="+filename+"&ext="+extension+"&insertPhoto=yes&server_url="+server_url+ "&folder="+folder, beforeSend : function() { $("#cbSubmitUpload"+ID).html(ajaxImage+lang.savingData).attr('disabled','disabled'); }, success : function(data) { if(data.error) { photoError(data.error,ID,true); $("#cbSubmitUpload"+ID).html("Save Photo") .removeAttr('disabled').attr('onClick','insertAjaxPhoto("'+ID+'","'+filename+'","'+extension+'");'); } if(data.success) { photoMessage(data.success,ID,true); showPhotoPreview(ID,data.photoPreview); $("<input />").attr({ 'id' : 'photo_id', 'name' : 'photo_id', 'value' : data.photoID, 'type' : 'hidden' }).prependTo('#Form'+ID); $("#cbSubmitUpload"+ID).html(lang.upPhoto) .removeAttr('disabled').attr('onClick','updateAjaxPhoto("'+ID+'");'); } } }) } function updateAjaxPhoto(ID) { var updateFields = $("#Form"+ID).serialize(); $.ajax({ url : baseurl+'/actions/photo_uploader.php', type : 'POST', dataType : 'json', data : updateFields+"&updatePhoto=yes", beforeSend : function() { $("#cbSubmitUpload"+ID).html(ajaxImage+lang.upPhoto).attr('disabled','disabled'); }, success : function(data) { if(data.error) { photoError(data.error,ID,true); $("#cbSubmitUpload"+ID).removeAttr('disabled').html(lang.upPhoto); } if(data.success) { photoMessage(data.success,ID,true); $("#Form"+ID).hide(); $("#cbSubmitUpload"+ID).removeAttr('disabled').html(lang.upPhoto); if(!document.getElementById("toggle"+ID)) { $("<a></a>") .addClass('reUpdateButton') .attr({ "id" : "toggle"+ID, "href" : "#reUpdate", "onClick" : "$('#Form"+ID+"').toggle(); return false;", "title" : "Toggle Photo Form" }).html('Re-'+lang.upPhoto).appendTo("#photo_uploads"+ID+" .percentage").fadeIn(350); } } } }) } function showPhotoPreview(ID,preview) { var object = $("#"+ID+"Preview"), parentObj = object.parent(); var FinalPreview = new Image(); FinalPreview.src = preview; $(FinalPreview).load(function() { object.hide(); $("<img />") .addClass(object.attr('class')) .attr({ "id" : "FinalPreview"+ID, "src" : preview }).appendTo(parentObj).fadeIn('normal'); }); } function update_collection_selection(obj) { if($("#CollectionResult").css('display') == 'block') $("#CollectionResult").slideUp('fast'); var This = $(obj), thisObj = obj; This.attr('disabled','disabled'); This.after(ajaxImage); collectionID = thisObj.value; setTimeout(function(){ This.next().remove(); $("#CollectionResult").html("<div class='msg'>Collection Selected</div>").slideDown(350); This.removeAttr('disabled'); },1000); } $(document).ready(function() { function photoUploadify(object) { $(object).uploadify( { 'uploader' : uploadSwfPath, 'script' : uploadScriptPath, 'scriptAccess' : 'always', 'fileDataName' : 'photoUpload', 'cancelImg' : imageurl+'/cancel_upload.png', 'auto' : true, 'removeCompleted' : false, 'displayData' : 'both', 'fileExt' : fileExt, 'multi' : true, 'queueSizeLimit': '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['photo_multi_upload']; ?> ', 'fileDesc' : 'Photo Files', 'buttonText' : lang.browsePhrase, 'queueID' : 'photoUploadQueue', 'sizeLimit' : '<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->max_file_size; ?> ', 'onSelect' : function(event,ID,fileObj) { uploadError = false; $.ajax({ url : baseurl+'/actions/photo_uploader.php', dataType : 'json', type : 'POST', data : ({ "photoForm":"yes" , "objID":ID , "name":fileObj.name , "collection":collectionID }), success : function(data) { if(!uploadError) $("#photo_uploads"+ID).append(data['form']); } }); }, 'onComplete' : function(event,ID,fileObj,response,data) { var resObj = $.parseJSON(response); if(resObj.success == "yes") { insertAjaxPhoto(ID,resObj.filename,resObj.extension,resObj.server_url,resObj.folder); } }, 'onQueueFull' : function(event,queueSizeLimit) { QueueError = "I'm stuffed, "+queueSizeLimit+" is my limit. Thanks."; QueueLimitError(QueueError,true); return false; }, 'onError' : function(event,ID,fileObj,errorObj) { uploadError = true; } }); } photoUploadify('#photo_uploads'); }); </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'view_item') { ?> <script type="text/javascript"> var Seo = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['seo']; ?> '; onReload_item(); </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'watch_video' || $_smarty_tpl->tpl_vars['object']->value['videoid']) { ?> <?php if ($_smarty_tpl->tpl_vars['object']->value['videoid']) { if (isset($_smarty_tpl->tpl_vars['vdo'])) { $_smarty_tpl->tpl_vars['vdo'] = clone $_smarty_tpl->tpl_vars['vdo']; $_smarty_tpl->tpl_vars['vdo']->value = $_smarty_tpl->tpl_vars['object']->value; $_smarty_tpl->tpl_vars['vdo']->nocache = null; $_smarty_tpl->tpl_vars['vdo']->scope = 0; } else { $_smarty_tpl->tpl_vars['vdo'] = new Smarty_variable($_smarty_tpl->tpl_vars['object']->value, null, 0); } ?> <?php } ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['vdo']->value['title']; ?> " /> <meta property="og:description" content="<?php echo preg_replace('!<[^>]*?>!', ' ', description($_smarty_tpl->tpl_vars['vdo']->value['description'])); ?> " /> <meta property="og:image" content="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> " /> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['facebook_embed'] == 'yes') { ?> <meta property="og:type" content="video"> <meta property="og:video" content='<?php echo fb_embed_video(array('video' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> '> <meta property="og:video:height" content="259" /> <meta property="og:video:width" content="398" /> <meta property="og:video:type" content="application/x-shockwave-flash"> <?php } ?> <meta property='og:url' content='<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> '/> <meta property='og:site_name' content='<?php echo $_smarty_tpl->tpl_vars['website_title']->value; ?> '/> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value['photo_id']) { ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['object']->value['photo_title']; ?> " /> <meta property="og:description" content="<?php echo description($_smarty_tpl->tpl_vars['object']->value['photo_description']); ?> " /> <meta property="og:image" content="<?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['object']->value, 'size' => 'm', 'output' => 'non_html', 'alt' => $_smarty_tpl->tpl_vars['object']->value['photo_title']), $_smarty_tpl); ?> " /> <meta name="medium" content="image" /> <?php } ?> <?php if (@constant('THIS_PAGE') == 'view_channel') { ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> " /> <?php } ?> <?php if (@constant('THIS_PAGE') == 'videos') { ?> <meta property="og:description" content="this is a videos page of ClipBucket"/> <?php } ?> <script> $(function() { /*$( ".date_field" ).datepicker({ dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true, yearRange : "1901 : c" });*/ }); </script> <?php echo ANCHOR(array('place' => 'cb_head'), $_smarty_tpl); ?> <!-- ClipBucket version <?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->cbinfo['version']; ?> --><?php }
<html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title><?php echo get_config('site.title'); ?> </title> <?php // css include_css('bootstrap.css'); include_css('bootstrap-theme.css'); include_css('style.css'); // js include_js('jquery-1.10.2.min.js'); include_js('bootstrap.min.js'); include_js('Chart.min.js'); ?> </head> <body> <div id="wrapper"> <!-- header --> <?php include_element('header.php'); ?> <div class="misc container-fluid" style="margin-top: 80px;"> <?php include_element('messages.php'); include_template($template); ?>
</p> </div> </div> <!-- /container --> <?php echo include_js("jquery.js"); ?> <?php echo include_js("jquery.validate.js"); ?> <?php echo include_js("jquery.glow.js"); ?> <?php echo include_js("bootstrap.js"); ?> <?php echo include_js("wysihtml5.js"); ?> <?php echo include_js("bootstrap-wysihtml5.js"); ?> <?php echo include_js("app.js"); ?> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title><?php echo get_config('site.title'); ?> </title> <?php // css include_css('bootstrap.min.css'); include_css('bootstrap-theme.css'); include_css('style.css'); // js include_js('jquery-1.10.2.min.js'); include_js('bootstrap.min.js'); ?> </head> <body> <div id="wrapper"> <!-- header --> <?php include_element('header.php'); ?> <div class="container" style="width: 300px; margin-top: 80px;"> <p class="alert alert-info">系统调试中...</p> </div> </div>
<?php $content_style = "half_and_half"; // include css $handle = @fopen("php/content/demo/css_includes.txt", "r"); if ($handle) { while (!feof($handle)) { $line = trim(fgets($handle)); if ($line != "") { include_css($line); } } fclose($handle); } // include js $handle = @fopen("php/content/demo/js_includes.txt", "r"); if ($handle) { while (!feof($handle)) { $line = trim(fgets($handle)); if ($line != "") { include_js($line); } } fclose($handle); }
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?> " type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?> " /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?> " /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?> " /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php include_js('app'); ?> <?php wp_head(); ?> </head> <body>
function content_56afd771f0ba60_43988601($_smarty_tpl) { ?> <meta charset="UTF-8"> <title><?php echo cbtitle(array(), $_smarty_tpl); ?> </title> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/css/font-awesome.min.css" /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /css/styles.css" /> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/css/font-awesome-ie7.min.css" /> <![endif]--> <!-- page specific plugin styles --> <!-- fonts --> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,300" /> <!-- ace styles --> <?php if (!this_page('admin_login')) { ?> <!-- these css file not includes in admin area login.html --> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/css/ace.min.css" /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/css/ace-rtl.min.css" /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/css/ace-skins.min.css" /> <?php } ?> <!--[if lte IE 8]> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/css/ace-ie.min.css" /> <![endif]--> <!-- inline styles related to this page --> <script type="text/javascript"> var baseurl = "<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> "; var imageurl = "<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> "; </script> <!-- ace settings handler --> <script src="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /assets/js/ace-extra.min.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /js/clipbucket.js"></script> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="assets/js/html5shiv.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]--> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /../../../../js/functions.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /../../../../js/admin_functions.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <!-- for bootstrap wysiwyg --> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /css/summernote.css" /> <script src="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /js/editor.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /js/main.js"></script> <!-- for bootstrap wysiwyg --> <!-- for popovers --> <script> $(function (){ $(".popoverButton").popover(); }); </script> <!-- bootstrap x-editable --> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /bootstrap-editable/css/bootstrap-editable.css" /> <script src="<?php echo $_smarty_tpl->tpl_vars['theme_url']->value; ?> /bootstrap-editable/js/bootstrap-editable.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.xedit').editable({ mode: 'inline', url:baseurl+'/admin_area/index.php?mode=update_pharse', pk: function(){ var id = $(this).attr("id"); id = id.match(/([0-9]+)$/g); return id.pop(); }, }); }); </script> <script> $(document).ready(function() { $('.edit_lang').editable(baseurl+'/actions/update_phrase.php', { alert('yu'); // cancel : 'Cancel', // submit : 'OK', indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">', tooltip : 'Click to edit...', }); }); $(document).ready(function(){ $(".drop").on({ click: function(e){ var ele = $(this).parent().nextAll("#content").get(0); $(ele).toggle(); } }); }); </script> <script> $(document).ready(function() { $('#desc').summernote(); }); </script> <script> $(function(){ $(".saveTodo").click(function(e){ var self = this; var newVal = $(this).parent().parent().find("input[name='todo']").val(); if(newVal.length){ var ajaxCall = $.ajax({ url: "<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> " + "/admin_area/index.php", type: "post", data: { val: newVal, mode: "add_todo", }, }); ajaxCall.success(function(data){ data = $.parseJSON(data); var p = document.createElement("p"); p.className = "xedit editable editable-click"; var input = document.createElement("input"); input.type = "hidden"; input.name = "todoid"; input.value = data.id; var b = document.createElement("b"); b.innerHTML = data.todo; p.appendChild(input); p.appendChild(b); console.log(p); $(self).parents("form").after(p); }); }else{ alert("Please enter a valid value"); } }); $("#todolist").on("click", ".editable-clear-x", function(e){ e.preventDefault(); var self = this; var id = $(this).parents(".editable-container").prev().attr("id"); id = id.match(/([0-9]+)$/g); id = id.pop(); var ajaxCall = $.ajax({ url: "<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> " + "/admin_area/index.php", type: "post", data: { id: id, mode: "delete_todo", }, }); ajaxCall.success(function(data){ $(self).parents("p").remove(); $(self).parents(".editable-container").remove(); }); e.stopPropagation(); }); }); </script> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->AdminJSArray) { ?> <!-- Including JS Files--> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->AdminJSArray; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key; ?> <?php if ($_smarty_tpl->tpl_vars['curActive']->value == $_smarty_tpl->tpl_vars['type']->value || $_smarty_tpl->tpl_vars['type']->value == 'global') { ?> <?php echo include_js(array('type' => $_smarty_tpl->tpl_vars['type']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl); ?> <?php } } ?> <!-- Including JS Files--> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->admin_header_files) { ?> <!-- Including Headers --> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->admin_header_files; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key; ?> <?php echo include_header(array('type' => $_smarty_tpl->tpl_vars['type']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl); ?> <?php } ?> <!-- Ending Headers --> <?php } }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title><?php echo $part->num . ' ' . $part->name; ?> </title> <?php include_css('bootstrap.css'); include_css('bootstrap-theme.css'); include_js('jquery-1.10.2.min.js'); ?> <style type="text/css"> /* table{ border: 1px solid #000 !important; } table thead tr{ border: 1px solid #000 !important; } table thead tr td{ border: 1px solid #000 !important; } table tbody tr{ border: 1px solid #000 !important; } table tbody tr td{ border: 1px solid #000 !important; } */ table tr td.fixed{ width: 30px !important; /* font-size: 12px; */ } table tr td.fixed-2{ width: 60px !important; /* font-size: 12px; */ } </style> </head> <body> <?php //debug($part); ?>
// 分页信息 curPage = 0; total_pages = "<?php echo $pages; ?> "; </script> <?php // ztree include_js('ztree/init.js'); include_js('ztree/common.js'); include_js('ztree/nodes.js'); include_js('ztree/search.js'); ?> <script type="text/javascript"> $(document).ready(function(){ $.fn.zTree.init($("ul#treeDemo"), setting, zNodes); zTree = $.fn.zTree.getZTreeObj("treeDemo"); rMenu = $("#rMenu"); tempNodes = []; // 存储复制的节点 // ZTree 列表高度自动调整到屏幕高度 $('ul.ztree').height( window.innerHeight - 150 ); window.onresize = function(){ $('ul.ztree').height( window.innerHeight - 150 );
include_once $page_declaration; } //TODO not sure where this goes.... include_js("/js/cytoscape_web/shortcut.js"); // include if ($include == "") { $include = "php/content/{$navigation_link}" . ($page_link != "" ? "/{$page_link}" : "") . ".php"; } switch ($content_style) { case "side": include_js("/js/layout/side.js"); break; } // automatic css and js includes include_css("/css/content/{$navigation_link}.css"); include_css("/css/content/{$navigation_link}.ie.css"); include_js("/js/content/{$navigation_link}.js"); if ($page_link != "") { include_css("/css/content/{$navigation_link}/{$page_link}.css"); include_css("/css/content/{$navigation_link}/{$page_link}.ie.css"); include_js("/js/content/{$navigation_link}/{$page_link}.js"); include_js("/js/content/{$navigation_link}/{$page_link}.ie.js"); } // Google Analytics include_js("/js/util/ga.js"); // remove duplicates from css, js, rss includes $js_includes = array_unique($js_includes); $css_includes = array_unique($css_includes); $ie_js_includes = array_unique($ie_js_includes); $ie_css_includes = array_unique($ie_css_includes); $rss_includes = array_unique($rss_includes);
$body .= include_js(['javascript/Modifiers/combined.js']); } if (false) { $body .= include_js(['javascript/PreferencesDialog/Dialog.js', 'javascript/PreferencesDialog/GeneralTab.js', 'javascript/PreferencesDialog/LanguageTab.js']); } else { $body .= include_js(['javascript/PreferencesDialog/combined.js']); } if (false) { $body .= include_js(['javascript/RichTextarea/AltDownModule.js', 'javascript/RichTextarea/AltUpModule.js', 'javascript/RichTextarea/CtrlBackspaceModule.js', 'javascript/RichTextarea/CtrlDModule.js', 'javascript/RichTextarea/CtrlDeleteModule.js', 'javascript/RichTextarea/CtrlDownModule.js', 'javascript/RichTextarea/CtrlEndModule.js', 'javascript/RichTextarea/CtrlHomeModule.js', 'javascript/RichTextarea/CtrlLeftModule.js', 'javascript/RichTextarea/CtrlLeftSquareBracketModule.js', 'javascript/RichTextarea/CtrlRightModule.js', 'javascript/RichTextarea/CtrlRightSquareBracketModule.js', 'javascript/RichTextarea/CtrlUpModule.js', 'javascript/RichTextarea/DownModule.js', 'javascript/RichTextarea/EndModule.js', 'javascript/RichTextarea/HomeModule.js', 'javascript/RichTextarea/LeftModule.js', 'javascript/RichTextarea/EnterModule.js', 'javascript/RichTextarea/RightModule.js', 'javascript/RichTextarea/ShiftCtrlDownModule.js', 'javascript/RichTextarea/ShiftCtrlLeftModule.js', 'javascript/RichTextarea/ShiftCtrlLeftSquareBracketModule.js', 'javascript/RichTextarea/ShiftCtrlRightModule.js', 'javascript/RichTextarea/ShiftCtrlRightSquareBracketModule.js', 'javascript/RichTextarea/ShiftCtrlUpModule.js', 'javascript/RichTextarea/ShiftDownModule.js', 'javascript/RichTextarea/ShiftEndModule.js', 'javascript/RichTextarea/ShiftHomeModule.js', 'javascript/RichTextarea/ShiftLeftModule.js', 'javascript/RichTextarea/ShiftRightModule.js', 'javascript/RichTextarea/ShiftTabModule.js', 'javascript/RichTextarea/ShiftUpModule.js', 'javascript/RichTextarea/TabModule.js', 'javascript/RichTextarea/Textarea.js', 'javascript/RichTextarea/UpModule.js']); } else { $body .= include_js(['javascript/RichTextarea/combined.js']); } if (false) { $body .= include_js(['javascript/String/FindCtrlDownIndex.js', 'javascript/String/FindCtrlLeftIndex.js', 'javascript/String/FindCtrlLeftSquareBracketIndex.js', 'javascript/String/FindCtrlRightIndex.js', 'javascript/String/FindCtrlRightSquareBracketIndex.js', 'javascript/String/FindCtrlUpIndex.js', 'javascript/String/FindDownIndex.js', 'javascript/String/FindLineEnd.js', 'javascript/String/FindLineStart.js', 'javascript/String/FindUpIndex.js']); } else { $body .= include_js(['javascript/String/combined.js']); } if (false) { $body .= include_js(['javascript/Tabs/Tabs.js', 'javascript/Tabs/Tab.js']); } else { $body .= include_js(['javascript/Tabs/combined.js']); } if (false) { $body .= include_js(['javascript/Languages/de/Terms.js', 'javascript/Languages/en/Terms.js', 'javascript/Languages/ka/Terms.js']); } else { $body .= include_js(['javascript/Languages/combined.js']); } $body .= include_js(['javascript/Main.js']); header('Cache-Control: public'); header('Content-Type: text/html; charset=UTF-8'); echo '<!DOCTYPE html>' . '<html>' . '<head>' . '<title>Gvirila</title>' . '<link rel="icon" type="image/png" href="images/icon16.png" />' . '<link rel="icon" type="image/png" href="images/icon32.png" sizes="32x32" />' . '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />' . '<meta name="viewport" content="width=device-width, user-scalable=no" />' . $head . '</head>' . '<body>' . $body . '<noscript>' . '<div class="AbsoluteDiv Dialog visible">' . '<div class="AbsoluteDiv Dialog-frame" style="width: 300px; height: 144px;">' . '<div class="AbsoluteDiv ButtonBar">' . '<div class="ButtonBar-content" style="text-align: center;">' . '<div style="display: inline-block; vertical-align: middle; height: 100%;"></div>' . '<div style="display: inline-block; vertical-align: middle; padding: 0 16px;">' . 'Gvirila requires JavaScript to be enabled in your web browser. Once you enable JavaScript, please, reload the page.' . '</div>' . '</div>' . '<div class="ButtonBar-bar">' . '<div class="ButtonBar-padded">' . '<form action="" class="AbsoluteDiv ButtonBar-element">' . '<button class="Button">Reload</button>' . '</form>' . '</div>' . '</div>' . '</div>' . '</div>' . '</div>' . '</noscript>' . '</body>' . '</html>';