Ejemplo n.º 1
0
//Create books treeview
$books_tree = new KoolTreeView("books_tree");
$books_tree->imageFolder = $KoolControlsFolder . "/KoolTreeView/icons";
$books_tree->styleFolder = $KoolControlsFolder . "/KoolTreeView/styles/default";
$books_tree->getRootNode()->visible = false;
$books_tree->getRootNode()->expand = true;
$books_tree->Add("root", "ajax", "Ajax For Dummies", false, "BookY.gif", "");
$books_tree->Add("root", "csharp", "Mastering C#", false, "BookY.gif", "");
$books_tree->Add("root", "flash", "Flash 8 Bible", false, "BookY.gif", "");
$books_tree->showLines = true;
//Create SlideMenu
$ksm = new KoolSlideMenu("sm");
$ksm->styleFolder = $KoolControlsFolder . "/KoolSlideMenu/styles/bluearrow";
//Create parent hardware and add hardware tree inside subpanel
$ksm->addParent("root", "hardware", "Hardware", "", true);
$ksm->addPanel("hardware", "hardware_tree_panel", $hardware_tree->Render());
//Create parent software and add software tree inside subpanel
$ksm->addParent("root", "software", "Software");
$ksm->addPanel("software", "software_tree_panel", $software_tree->Render());
//Create parent books and add books tree inside subpanel
$ksm->addParent("root", "books", "Books");
$ksm->addPanel("books", "books_tree_panel", $books_tree->Render());
$ksm->singleExpand = true;
$ksm->width = "200px";
?>
<form id="form1" method="post">
	<div style="padding-left:10px">
		<?php 
echo $ksm->Render();
?>
	</div>
Ejemplo n.º 2
0
		$root = $ktv->getRootNode();
		$root->text = "Personal Folders";
		$root->expand=true;
		$root->image="1PersonalFolders.gif";
		$ktv->Add("root","deleteditem","Deleted Items (6)",false,"2DeletedItems.gif");
		$ktv->Add("root","draft","Drafts",false,"3Drafts.gif");
		$ktv->Add("root","inbox","<b>Inbox (14)</b>",true,"4Inbox.gif");
		$ktv->Add("inbox","invoice","Invoices",false,"folder.gif");
		$ktv->Add("root","junkemail","Junk E-mail",false,"folder.gif");
		$ktv->Add("root","outbox","Outbox",false,"outbox.gif");
		$ktv->Add("root","sentitem","Sent Items",false,"sent.gif");
		$ktv->Add("root","searchfolder","Search Folder",true,"searchFolder.gif");
		$ktv->Add("searchfolder","followup","From Follow Up",false,"searchFolder.gif");
		$ktv->Add("searchfolder","largeemail","Large E-mail",false,"searchFolder.gif");
		$ktv->Add("searchfolder","unreademail","Unread E-mail",false,"searchFolder.gif");
		$ksm->addPanel("treeview","treeview_panel",$ktv->Render());

	
	$resolution = "640x480";
	$form_expand = false;
	if(isset($_POST["resolution"]))
	{
		$resolution = $_POST["resolution"];
		$form_expand=true;
	}
	$ksm->addParent("root","theform","Form",null,$form_expand);	
		$form = "<div style='padding:10px;'>";
		$form .= "<div style='padding-bottom:5px;'>Enter your preferred resolution:</div>";
		$form .= "<div style='padding-left:5px;'>";
		$form .= "<input id='640x480' name='resolution' type='radio' value='640x480' ".(($resolution=="640x480")?"checked":"")." /> <label for='640x480'>640 x 480</label> <br/>";
		$form .= "<input id='800x600' name='resolution' type='radio' value='800x600' ".(($resolution=="800x600")?"checked":"")." /> <label for='800x600'>800 x 600</label> <br/>";
Ejemplo n.º 3
0
<?php
	require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";
	require $KoolControlsFolder."/KoolAjax/koolajax.php";
	if ($koolajax->isCallback)	{		sleep(1);	}	
	
	include_once "functions.php" ;
	$ksm = new KoolSlideMenu("ksm");
	$ksm->scriptFolder =  $KoolControlsFolder."/KoolSlideMenu";	
	$ksm->styleFolder = $KoolControlsFolder."KoolSlideMenu/styles/darkgray";
	$ksm_expand = $ksm->addParent("root","step1","Step1 : Account information");	
	$ksm->addPanel( "step1", "Pstep1" , echoStep1() ) ;
	$ksm_expand->expand = true ;
	
	$ksm->addParent("root","step2","<span class='hid' id='wstep2' >Step2 : Newsletter options </span>");
	$ksm->addPanel( "step2", "Pstep2" , echoStep2() ) ;
	
	$ksm->addParent("root","step3","<span class='hid' id='wstep3' >Step3 : Terms of use </span>");
	$ksm->addPanel( "step3", "Pstep3" , echoStep3() ) ;
	
	$ksm->singleExpand = true;
	$ksm->width="500px";
	
	$regisForm = new UpdatePanel( "regisForm" ) ;
	$regisForm->setLoading("$KoolControlsFolder/koolajax/loading/1.gif" , "white"   , 50 );	
	$stepDone = ( isset( $_POST["task"] ) && $_POST[ "task" ] == "done" ) ? true : false  ;
	
	if( $stepDone ) {
		$return = '<div style="height:auto;width:500px;" id="registration-form">		
						<div id="my-tit" >Registration form</div><br/>
						<div >';						
		$return .= echoResult( $_POST[ "data" ]) ;
Ejemplo n.º 4
0
$smt = new SMT('StuReg');
$smt->render(array(
    'title' => '新用户注册',
    'st_depart' => $st_depart,
    'st_depart_sel' => -1,
    'st_edu' => $st_edu,
    'st_edu_sel' => key($st_edu)
    ));*/
$KoolControlsFolder = '../../KoolPHPSuite/KoolControls';
require_once $KoolControlsFolder . '/KoolSlideMenu/koolslidemenu.php';
require_once $KoolControlsFolder . '/KoolAjax/koolajax.php';
include_once '../private/class/StuReg/RegPage.php';
$ksm = new KoolSlideMenu("ksm");
$ksm->styleFolder = $KoolControlsFolder . "KoolSlideMenu/styles/apple";
$ksm_expand = $ksm->addParent("root", "step1", "第一步:帐号信息");
$ksm->addPanel("step1", "Pstep1", Step_1());
$ksm->addParent("root", "step2", "<span class='hid' id='wstep2' >第二步 : 用户基本资料 </span>");
$ksm->addPanel("step2", "Pstep2", Step_2());
$ksm->singleExpand = true;
$ksm->width = "100%";
$regisForm = new UpdatePanel("regisForm");
$regisForm->setLoading("../../KoolPHPSuite/KoolControls/KoolAjax/loading/1.gif", "white", 50);
//  $stepDone = ( isset( $_POST["task"] ) && $_POST[ "task" ] == "done" ) ? true : false  ;
$return = ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <link rel="icon" href="images/StuReg/favicon.ico" type="image/x-icon" />
                <link href="css/common.css" rel="stylesheet" type="text/css" />
                <link href="css/StuReg.css" rel="stylesheet" type="text/css" />
                <link rel="stylesheet" href="jquery-ui/development-bundle/themes/base/jquery.ui.all.css" />
                <script type="text/javascript" src="script/jquery.js"></script> 
                <script type="text/javascript" src="script/common.js"></script>
                <script type="text/javascript" src="script/StuReg.js"></script>