示例#1
0
<?php

$model = 'blog_article';
$blog_article = aql::profile($model, IDE);
$primary_table = aql::get_primary_table($model);
$blog_article_id = $blog_article['blog_article_id'];
$blog_article_ide = $blog_article['blog_article_ide'];
$title = $blog_article['title'] ? $blog_article['title'] : 'Write A New Post';
$head_arr[] = "<script src = '/lib/swfupload/swfupload.js' type = 'text/javascript'></script>";
$head_arr[] = "<script src = '/modules/media/upload/handlers.js' type = 'text/javascript'></script>";
$head_arr[] = "<link type='text/css' rel='stylesheet' href='/modules/media/upload/progress.css' />";
template::inc('intranet', 'top');
?>
	<div id = "back_to_blogs"><a href = "/admin/blog/post/">&laquo; Back to Blog Posts</a></div>
<?php 
//$theme_ab1 = "undo,redo,|,bold,italic,underline,strikethrough,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,fontselect,fontsizeselect,styleselect";
//$theme_ab2 = "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,sub,sup,charmap,|,link,unlink,anchor,image,cleanup,help,|,code,|,removeformat,|,fullscreen,|,preview";
$theme_ab1 = "undo,redo,|,bold,italic,underline,strikethrough,forecolor,backcolor,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect";
$theme_ab2 = "cut,copy,paste,pastetext,pasteword,|,outdent,indent,blockquote,|,sub,sup,charmap,|,link,unlink,image,cleanup,|,code,|,removeformat,|,fullscreen,|,hr";
if (!$css_blog_editor) {
    $css_blog_editor = '/css/blog.css';
}
$options_article = array('resizing' => false, 'full_url' => $blog_img_absolute ? true : false, 'theme' => 'advanced', 'multi_buttons' => true, 'theme_ab1' => $theme_ab1, 'theme_ab2' => $theme_ab2, 'theme_ab3' => "", 'theme_ab4' => "", 'width' => '675', 'height' => '520', 'css' => $css_blog_editor);
$theme_ab1_notes = "bold,italic,underline,strikethrough,forecolor,backcolor,hr";
$options_notes = array('resizing' => true, 'theme' => 'advanced', 'multi_buttons' => true, 'theme_ab1' => $theme_ab1_notes, 'theme_ab2' => '', 'theme_ab3' => "", 'theme_ab4' => "", 'height' => '120', 'width' => '257');
$settings = array('article-content' => $options_article, 'note' => $options_notes);
helper::tinymce($settings);
aql::form($model);
template::inc('intranet', 'bottom');
示例#2
0
        if (!$bad['success']) {
            $disable_slony = true;
            if ($bad['success'] === false) {
                echo "Unable to determine Slony-I installation status on {$bad['host']} for reason \"{$bad['error']}\" <br />";
            } else {
                echo "Slony-I is not installed on {$bad['host']}.  <br />";
            }
        }
    }
}
?>
</div><?php 
if (!in_array('ssh2', get_loaded_extensions())) {
    echo "You are using phpseclib to make your ssh connections.  It is recommended you install the libssh2 php extension, which is 10 times faster.<br />";
}
aql::form('slony_cluster');
if (!$disable_slony) {
    if (!$slony_cluster_id) {
        /*
           <input type="button" value="Save" onclick="confirm_warning()?function(){new_cluster=false;save_form('<?=$model?>',null,null,function(){location.href='/dev/slony';});}():null;" /> */
        ?>
   <input type="button" value="Save" onclick="save_form('<?php 
        echo $model;
        ?>
',null,null,function(){location.href='/dev/slony';});" />
   <?php 
    } else {
        ?>
   <input type="button" id='button_uninstall' value="Uninstall" onclick="confirm('This action will stop all replication and remove all cluster configurations.  This can not be undone.\n\nClick OK to continue.')?ajax_uninstall():null;" />
   <?php 
    }
示例#3
0
<?php

$person_ide = $_POST['pide'];
$form_id = $_POST['fid'];
if ($_GET['debug']) {
    $person_ide = $_GET['pide'];
    $form_id = $_GET['fid'];
}
if (!($person_ide && ($form_id || $form_id == 0))) {
    echo "<!--failure-->";
    //  die();
}
?>
<!--success-->
<?php 
aql::form('blog_author');
?>
<input class='blog_author_form_save_button_new' type="button" value="Save" onclick="save_button(false,'blog_author_form_<?php 
echo $form_id;
?>
','blog_author');" />
示例#4
0
文件: myprofile.php 项目: hshoghi/cms
<?php

$title = "My Profile";
template::inc('intranet', 'top');
?>
<div class = "has-floats">
	<div class = "float-right blog_listing">
		<div class = "content_listing">
<?php 
aql::form('blog_author_personal');
?>
	
			<div class = "has-floats">
				<div class = "float-left">
					<input value = "Save" type = "button" onclick = "tinyMCE.triggerSave(); save_form('blog_author_personal')"/>
				</div>
			</div>	
		</div>
	</div>
	<div class = "left_nav">
<?php 
include 'pages/admin/blog/left-nav/left-nav.php';
?>
	</div>
</div>

<?php 
template::inc('intranet', 'bottom');
示例#5
0
}
template::inc('intranet', 'top');
?>

<div>
    <div>
        <a href = "/admin/blog/blogs">Back to blog listing</a>
    </div>
    <br />
    <br />
    <fieldset><legend>Blog</legend>
    <div>

    <div id='blog_form_message'></div>
    <?php 
aql::form('blog');
?>
    <div class = "has-floats">
        <div class = "float-left">
            <input type = "button" value = "Save" onclick = "tinyMCE.triggerSave(); save_primary_profile('blog_form','blog')" />
        </div>
    </div>
</div>

<?php 
if (is_numeric($blog_id)) {
    ?>

<hr />
Logo for light background:
<div>
示例#6
0
<?php

$model = 'slony_node';
$slony_node = aql::profile($model, IDE);
$primary_table = aql::get_primary_table($model);
$slony_node_ide = IDE;
$slony_node_id = decrypt($slony_node_ide, $model);
$slony_node_prof = aql::profile($model, $slony_node_id);
$title = "Slony Node Definition";
template::inc('intranet', 'top');
?>
<fieldset><legend>Node Profile</legend>
<?php 
aql::form('slony_node');
?>

   <input type="button" value="Save" onclick="save_form('<?php 
echo $model;
?>
'<?php 
echo slony::cluster_defined() ? ",null,null" : "";
?>
 );" />
<?php 
if (!slony::cluster_defined()) {
    ?>
   <input type="button" value="Save and Define Another Node" onclick="save_form('<?php 
    echo $model;
    ?>
',null,null,function(){location.href='/dev/slony/node/add-new';});" />
   <input type="button" value="Save and Continue to Next Step" onclick="save_form('<?php