コード例 #1
0
ファイル: _node.php プロジェクト: paranoidxc/iwebhost
<?php

echo "<ul class='api_categorys_ul' id='top_tree' render_url='" . CController::createurl('category/leafs', array('ajax' => 'ajax')) . "'>";
$temp_depth = 0;
$class = "fold";
$handle_class = 'f_' . $class;
foreach ($nodes as $leaf) {
    //$class="fold";
    $handle_class = 'f_' . $class;
    $id = $leaf->id;
    $depth = $leaf->depth;
    $name = $leaf->name;
    $style_text_indent = 10 * $depth + 10 . 'px';
    $style_chapters_indent = 10 * $depth + 10 + 32 . 'px';
    if ($leaf->lft + 1 == $leaf->rgt) {
        $handle_class = 'stand';
    }
    if ($depth == 0) {
        echo '<li class="' . $class . '" >';
        echo '<p 
              class="gallery_return_pick" return_id="' . $return_id . '" rel_id="' . $leaf->id . '" rel_name="' . $leaf->name . '"
              style="text-indent: ' . $style_text_indent . '" title="' . $name . '"><span class="' . $handle_class . '" data_id="' . $id . '" >&nbsp;&nbsp;</span>';
        echo '<span class="' . $class . '" >&nbsp;&nbsp;</span>';
        echo ' <span class="leaf">';
    } else {
        if ($depth > $temp_depth) {
            echo '<ul class="' . $class . '"><li class="' . $class . '">';
            echo '<p 
              class="gallery_return_pick" return_id="' . $return_id . '" rel_id="' . $leaf->id . '" rel_name="' . $leaf->name . '"
              style="text-indent: ' . $style_text_indent . '" title="' . $name . '"><span class="' . $handle_class . '" data_id="' . $id . '" >&nbsp;&nbsp;</span>';
            echo '<span class="' . $class . '" >&nbsp;&nbsp;</span>';
コード例 #2
0
<script type="text/javascript">
	var swfu;		
	var settings = {		
		flash_url : "<?php 
echo API::get_theme_baseurl();
?>
/swfupload/swfupload.swf",
    upload_url: "<?php 
echo CController::createurl('attachment/upload', array('category_id' => '30'));
?>
",
    button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT,
		custom_settings : {
				progressTarget : "fsUploadProgress",
				cancelButtonId : "ibtnCancel"
			},
		debug: false,
		// Button settings
		button_image_url: "/default_image/swf_upload_bg.jpg",				
		button_width: "110",
		button_height: "32",
		button_placeholder_id: "spanButtonPlaceHolder",
		// The event handler functions are defined in handlers.js
	  upload_start_handler : pickimage_uploadStart,
		upload_success_handler : uploadSuccess,			
    upload_progress_handler : uploadProgress,
		upload_error_handler : uploadError,
		upload_complete_handler : uploadComplete,
    file_queued_handler : fileQueued,
    file_dialog_complete_handler : fileDialogComplete,			
	  file_queue_error_handler : fileQueueError,
コード例 #3
0
}
?>

</ul>
    </td>    
    <td style="width: 35%" id="attachment_form_wrap">        
    <script type="text/javascript">
		var swfu;
		//window.onload = function() {
			var settings = {
				flash_url : "<?php 
echo Yii::app()->request->baseUrl;
?>
/swfupload/swfupload.swf",
        upload_url: "<?php 
echo CController::createurl('attachment/upload', array('category_id' => $model->id));
?>
",
				post_params: {"PHPSESSID" : "<?php 
echo session_id();
?>
"},
				file_size_limit : "100 MB",
				file_types : "*.*",
				file_types_description : "All Files",
				file_upload_limit : 100,
				file_queue_limit : 0,
				custom_settings : {
					progressTarget : "fsUploadProgress",
					cancelButtonId : "btnCancel"
				},
コード例 #4
0
ファイル: batch_edit.php プロジェクト: paranoidxc/iwebhost
<div class='mac_panel_wrap w600p'>
<?php 
$this->beginWidget('application.extensions.Flatmacpanel', array('title' => 'Edit Atts '));
?>

<div class="iform">  
  <form action="<?php 
echo CController::createurl('attachment/batchupdate');
?>
" method="post" class="atts_ajax_form">
  <input type="hidden" name='ids' value="<?php 
echo $ids;
?>
" />
  <div class="flL w200p ml20P bcBlue p5p">
    <ul>
      <li>
        width*height <span class="new_resize csP" >+</span>
      </li>        	      
      <li>
        <input type="text" size="4" name="resize_w[]" class="image_resize_input" autocomplete="off" />
        *
        <input type="text" size="4" name="resize_h[]" class="image_resize_input" autocomplete="off" />
      </li>
    </ul>  	        
  </div>
    
  <div class="taR h30P pr10P clB">
  	<input type="submit" value="Update" class="ibtn"/>
  </div> 
  
コード例 #5
0
ファイル: move.php プロジェクト: paranoidxc/iwebhost
<div class='mac_panel_wrap w600p' >
<?php 
$this->beginWidget('application.extensions.Flatmacpanel', array('title' => "Move to"));
?>

<input type="hidden" class="return_panel" value="<?php 
echo $panel_ident;
?>
" />
<form action="<?php 
echo CController::createurl('attachment/move');
?>
" method="post" class="ajax_move_form" >
  <?php 
$this->renderPartial('_node', array('nodes' => $leafs, 'return_id' => $return_id));
?>
  
  <div class="taR h30P pr10P">
    Move To: 
    <input type="text" size="8" name="category_id"  class="move_category_id" readonly = true /> - 
    <input type="text" size="40" name="category_name" class="move_category_name" readonly = true />  
    <?php 
echo CHtml::submitButton('Ok', array('class' => 'ibtn blue'));
?>
  </div>  

</form>

<div class="ajax_overlay" />
<?php 
$this->endWidget('application.extensions.Flatmacpanel');
コード例 #6
0
ファイル: _form.php プロジェクト: paranoidxc/iwebhost
<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'datablock-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('class' => 'ajax_form datablock_ajax_form', 'p_id' => $model->p_id, 'parent_href' => CController::createurl('datablock/hnext', array('p_id' => $model->p_id)))));
?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php 
echo $form->errorSummary($model);
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'name');
?>
		<?php 
echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 100));
?>
		<?php 
echo $form->error($model, 'name');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'label');
?>
		<?php 
echo $form->textField($model, 'label', array('size' => 60, 'maxlength' => 50));
?>
コード例 #7
0
ファイル: hierarchical.php プロジェクト: paranoidxc/iwebhost
$this->menu = array(array('label' => 'Create Datablock', 'url' => array('create')), array('label' => 'Manage Datablock', 'url' => array('admin')));
?>

<?php 
if (!isset($ajax)) {
    echo "<div class='mac_panel_wrap' >";
    $this->beginWidget('application.extensions.Smacpanel');
    echo "<div class='osX' >";
    echo "<div style='width: 700px; height: 400px; overflow: scroll; ' id='hir_wrap'>";
    echo "<div style='width: 12000px; height: 500px; ' >";
}
echo "<ul class='data_block_hir' id='data_block_{$p_id}' rel_id='{$p_id}' move_href='" . CController::createurl('datablock/imove') . "' href='" . CController::createurl('datablock/isort') . "' >";
echo "<h2 class='ibtn' create_href ='" . CController::createurl('datablock/create', array('ajax' => 'ajax', 'p_id' => $p_id)) . "' >Datablock <span>+</span></h2>";
if (count($datas) > 0) {
    foreach ($datas as $db) {
        echo "<li id='sort_{$db->id}'  edit_href='" . CController::createurl('datablock/update', array('ajax' => 'ajax', 'id' => $db->id)) . "' rel_id='{$db->id}' href='" . CController::createurl('datablock/hnext', array('p_id' => $db->id)) . "' >";
        //echo '<a href="#">';
        echo '<span class="handle">&nbsp;&nbsp;</span>';
        echo '<span class="block_ele" >' . $db->name . '</span>';
        //echo '</a>';
        echo "</li>";
    }
    echo "<li class='temp' style='display: none'>没有子元素</li>";
} else {
    echo "<li class='temp'>没有子元素</li>";
}
echo "</ul>";
if (!isset($ajax)) {
    echo "</div>";
    echo "</div>";
    echo "</div>";
コード例 #8
0
ファイル: ajaxview.php プロジェクト: paranoidxc/iwebhost
/images/grippy.png"  />
      <input type="checkbox" class="cb_article vaT" value="<?php 
    echo $a->id;
    ?>
" >
    </td>
    <td class="vaM w20P">
      <?php 
    $is_star = $a->is_star ? 'stared' : 'unstared';
    $star_action = $is_star == 'stared' ? 'unstared' : 'stared';
    ?>
      <span class="<?php 
    echo $is_star;
    ?>
" href="<?php 
    echo CController::createurl('article/' . $star_action, array('id' => $a->id, 'ajax' => 'ajax'));
    ?>
" ></span>
    </td>
    <td class="vaM taL content_item" data="<?php 
    echo $a->id;
    ?>
" >
      <?php 
    echo $a->title;
    ?>
&nbsp;-&nbsp;
      <?php 
    echo cnSub($a->clearcontent, 10);
    ?>
    </td>
コード例 #9
0
ファイル: move.php プロジェクト: paranoidxc/iwebhost
<div class='mac_panel_wrap w600p' >
<?php 
$this->beginWidget('application.extensions.Flatmacpanel', array('title' => Yii::t('cp', "Move to")));
?>

<input type="hidden" class="return_panel" value="<?php 
echo $panel_ident;
?>
" />

<form action="<?php 
echo CController::createurl('article/move');
?>
" method="post" class="ajax_move_form" id="article_ajax_move">

  <div style="height: 400px; overflow: auto; background: #FFF;">
  <?php 
$this->renderPartial('_node', array('nodes' => $leafs, 'return_id' => $return_id));
?>
  
  </div>
   <div class="taR h30P lh30P pt5P pr10P">    
    <input type="text" name="category_id"  class="move_category_id hidden_like_span" readonly = true /> - 
    <input type="text" name="category_name" class="move_category_name hidden_like_span" readonly = true />  
    <?php 
echo CHtml::submitButton(Yii::t('cp', 'Submit'), array('class' => 'ibtn blue'));
?>
  </div>  
  
</form>
コード例 #10
0
ファイル: _form.php プロジェクト: paranoidxc/iwebhost
<script type="text/javascript">
		var swfu;
		window.onload = function() {
			var settings = {
				flash_url : "/swfupload/swfupload.swf",
				upload_url: "<?php 
echo CController::createurl('attachment/upload');
?>
",				
				post_params: {"PHPSESSID" : "<?php 
echo session_id();
?>
"},
				file_size_limit : "100 MB",
				file_types : "*.*",
				file_types_description : "All Files",
				file_upload_limit : 100,
				file_queue_limit : 0,
				custom_settings : {
					progressTarget : "fsUploadProgress",
					cancelButtonId : "btnCancel"
				},
				debug: false,

				// Button settings
				button_image_url: "/images/TestImageNoText_65x29.png",				
				button_width: "65",
				button_height: "29",
				button_placeholder_id: "spanButtonPlaceHolder",
				button_text: '<span class="theFont">Hello</span>',
コード例 #11
0
ファイル: move.php プロジェクト: paranoidxc/iwebhost
<div class='mac_panel_wrap w600p' >
<?php 
$this->beginWidget('application.extensions.Flatmacpanel', array('title' => Yii::t('cp', "Move to")));
?>
<input type="hidden" class="return_panel" value="<?php 
echo $panel_ident;
?>
" />
<form action="<?php 
echo CController::createurl('category/move');
?>
" method="post"  class="leaf_move_form">
  <div class="feedback">
	</div>
	<div style="height: 400px; overflow: auto; background: #FFF;">
  <?php 
$this->renderPartial('_node_move_ul', array('nodes' => $leafs, 'return_id' => $return_id));
?>
  </div>
  <div class="dN taR h30P pr10P mt5P">    
    <input type="text" size="10" name="category_id"  class="move_category_id hidden_like_span" readonly = true />- 
    <input type="text" name="category_name" class="move_category_name hidden_like_span" readonly = true />  
    <?php 
echo CHtml::submitButton(Yii::t('cp', 'Submit'), array('class' => 'ibtn blue'));
?>
  </div>  
</form>
<div class="ajax_overlay" />

<?php 
$this->endWidget('application.extensions.Flatmacpanel');
コード例 #12
0
ファイル: pasodos.php プロジェクト: leydyk93/conveniosunet
				<!--************************************************************aca  -->
				<div id="MensajeInstitucion"></div>
				<!-- ***********************************************************-->
				<?php 
$formi = $this->beginWidget("CActiveForm", array('htmlOptions' => array('class' => 'form-horizontal'), 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => true, 'validateOnType' => true)));
?>
				 
				 <div class="form-group">
					<?php 
echo $formi->labelEx($paises, 'idPais', array('class' => 'control-label col-sm-3'));
?>

					<!--++++++++++++++++++++++++++++++++++++++++++++++++validacion para dropdownlist dependiente ++++++++++++++++++++ -->
					  <div class="col-sm-9">
					<?php 
echo $formi->dropDownList($paises, "idPais", CHtml::listData(Paises::model()->findAll(), 'idPais', 'nombrePais'), array('class' => 'form-control input-sm', 'ajax' => array('type' => 'POST', 'url' => CController::createurl('Convenios/Selectdos'), 'update' => '#' . Chtml::activeId($instituciones, 'estados_idEstado')), 'prompt' => 'Seleccione'));
?>
							<?php 
echo $formi->error($paises, "idPais");
?>
					</div>
				</div>

						 <div class="form-group">
							<?php 
echo $formi->labelEx($instituciones, 'estados_idEstado', array('class' => 'control-label col-sm-3'));
?>
							  <div class="col-sm-9">
								<?php 
echo $formi->dropDownList($instituciones, "estados_idEstado", array(), array('class' => 'form-control input-sm'));
?>
コード例 #13
0
ファイル: content_thumb.php プロジェクト: paranoidxc/iwebhost
<div id="article_drag_ele">
<?php 
foreach ($model->articles as $article) {
    ?>
	
		<dl id="sort_<?php 
    echo $article->id;
    ?>
"
		    class="thumbnail" 
		    rel_id="<?php 
    echo $article->id;
    ?>
"  
		    rel_href="<?php 
    echo CController::createurl('article/update', array('id' => $article->id, 'ajax' => 'ajax'));
    ?>
"
			  >
			<dt class="item_checkbox" ><input type="checkbox" class="cb_article" rel_id="<?php 
    echo $article->id;
    ?>
"  ></dt>
			<dt class="thumb"><img src="images/File.png" width="64" height="64"/></dt>
			<dt class="title article_ele_title"><a><span><?php 
    echo $article->title;
    ?>
</span></a></dt>
			<dd class="summary"><?php 
    echo $article->desc;
    ?>