views/scripts/helpers/filename.phtml
<?php
$this->js()->enableJQuery();
$this->js()->append($this->urls()->js()."library/tiny_mce/tiny_mce.js");
$this->js()->append($this->urls()->js()."testTeamsiteedit/tinymce.init.js");
$this->js()->append($this->urls()->js()."testTeampopup.js");
/*$this->js()->append($this->urls()->js()."library/jquery/jquery-1.3.2.min.js"); */
$this->js()->append($this->urls()->js()."testTeamsiteedit/testTeamsitepopup.js");
$vMediaPath = $this->urls()->manMedia();
$aUserDetails = $this->aUserDetails[0];
//logo display
if(isset($this->data->testTeam_logo) && $this->data->testTeam_logo!='')
$vtestTeamimg = $vMediaPath.$this->data->testTeam_logo;
else
$vtestTeamimg =$this->urls()->images()."change_logo_ig.gif";
?>
<span id="script_tinymce"></span>
<input type="hidden" name="up_testTeam_id" id="up_testTeam_id" value="<?php echo $this->data->testTeam_id; ?>" />
<input type="hidden" name="up_testTeam_url" id="up_testTeam_url" value="<?php echo $this->url(array('page'=>$this->testTeamURL),'global_routing'); ?>" />
<div class="cal_mid_left_acc">
<div class="base_ball">
<span><?php echo $this->escape($this->data->testTeam_name) ?></span> <em>(<?php echo $this->escape($this->data->sprt_name) ?>)</em>
</div>
<div class="im_man" onmouseover="this.className='im_manOver'" onmouseout="this.className='im_man'" style="border:1px:#0033FF;">
<?php if($this->testTeam_user_permission==1){?>
<div class="cngAvatar">
<a onclick="changetestTeamlogo(<?php echo $this->data->testTeam_id; ?>,'<?php echo $this->url(array('page'=>$this->testTeamURL),'global_routing'); ?>')" href="Javascript:">Change Logo </a> </div>
<a onclick="changetestTeamlogo(<?php echo $this->data->testTeam_id; ?>,'<?php echo $this->url(array('page'=>$this->testTeamURL),'global_routing'); ?>')" href="Javascript:"><img id="testTeamImg" width="80" border="0" alt="" src="<?php echo $vtestTeamimg;?>" /></a>
<?php } else {?>
<img id="testTeamImg" width="80" border="0" alt="" src="<?php echo $vtestTeamimg;?>" />
<?php }?>
</div>
<div class="acc_ig_name">
<!--<p><?php echo $this->escape($this->data->testTeam_name) ?></p>-->
<p> </p>
</div>
<div class="account_text">
<?php if($this->testTeam_user_permission==1): ?>
<b><?php echo $this->translate('Manage testTeam'); ?></b>
<?php else: ?>
<b><?php echo $this->translate('testTeam'); ?></b>
<?php endif; ?>
<?php if(count($this->testTeam_side_menus) > 0): ?>
<?php foreach($this->testTeam_side_menus as $this->testTeam_side_menu): ?>
<?php
$url = "";
if($this->testTeam_side_menu->rutr_url != ""){
$router = str_replace("{testTeamURL}","",$this->testTeam_side_menu->rutr_url);
$url = $this->url(array('page'=>$this->testTeamURL),'global_routing').$router;
}else{
$url = $this->url(array('page'=>$this->data->rutr_url,'controller'=>$this->testTeam_side_menu->stvw_controller,'action'=>$this->testTeam_side_menu->stvw_action),'global_routing');
}
?>
<!--conditions for checking testTeam site edit menu to open a popup menu-->
<?php
if($this->testTeam_side_menu->stvw_menu_title=='testTeam Site (Modify)' && $this->testTeam_user_permission==1){ ?>
<p style="cursor:pointer"><a onclick="loadtestTeamSite('<?=$url; ?>')"><?=$this->translate($this->testTeam_side_menu->stvw_menu_title); ?></a></p>
<?php } else if($this->testTeam_side_menu->stvw_menu_title!='testTeam Site (Modify)' ) {?>
<p><a href="<?=$url; ?>"><?=$this->translate($this->testTeam_side_menu->stvw_menu_title); ?></a></p>
<?php } ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
for calling helper files to used page
---------------------------------------------------
---------------------------------------------------
EXAMPLE
<?php echo $this->testTeamsidebar(); ?>
<?php echo $this->helperfunctionname(); ?>
<?php
$this->js()->enableJQuery();
$this->js()->append($this->urls()->js()."library/tiny_mce/tiny_mce.js");
$this->js()->append($this->urls()->js()."testTeamsiteedit/tinymce.init.js");
$this->js()->append($this->urls()->js()."testTeampopup.js");
/*$this->js()->append($this->urls()->js()."library/jquery/jquery-1.3.2.min.js"); */
$this->js()->append($this->urls()->js()."testTeamsiteedit/testTeamsitepopup.js");
$vMediaPath = $this->urls()->manMedia();
$aUserDetails = $this->aUserDetails[0];
//logo display
if(isset($this->data->testTeam_logo) && $this->data->testTeam_logo!='')
$vtestTeamimg = $vMediaPath.$this->data->testTeam_logo;
else
$vtestTeamimg =$this->urls()->images()."change_logo_ig.gif";
?>
<span id="script_tinymce"></span>
<input type="hidden" name="up_testTeam_id" id="up_testTeam_id" value="<?php echo $this->data->testTeam_id; ?>" />
<input type="hidden" name="up_testTeam_url" id="up_testTeam_url" value="<?php echo $this->url(array('page'=>$this->testTeamURL),'global_routing'); ?>" />
<div class="cal_mid_left_acc">
<div class="base_ball">
<span><?php echo $this->escape($this->data->testTeam_name) ?></span> <em>(<?php echo $this->escape($this->data->sprt_name) ?>)</em>
</div>
<div class="im_man" onmouseover="this.className='im_manOver'" onmouseout="this.className='im_man'" style="border:1px:#0033FF;">
<?php if($this->testTeam_user_permission==1){?>
<div class="cngAvatar">
<a onclick="changetestTeamlogo(<?php echo $this->data->testTeam_id; ?>,'<?php echo $this->url(array('page'=>$this->testTeamURL),'global_routing'); ?>')" href="Javascript:">Change Logo </a> </div>
<a onclick="changetestTeamlogo(<?php echo $this->data->testTeam_id; ?>,'<?php echo $this->url(array('page'=>$this->testTeamURL),'global_routing'); ?>')" href="Javascript:"><img id="testTeamImg" width="80" border="0" alt="" src="<?php echo $vtestTeamimg;?>" /></a>
<?php } else {?>
<img id="testTeamImg" width="80" border="0" alt="" src="<?php echo $vtestTeamimg;?>" />
<?php }?>
</div>
<div class="acc_ig_name">
<!--<p><?php echo $this->escape($this->data->testTeam_name) ?></p>-->
<p> </p>
</div>
<div class="account_text">
<?php if($this->testTeam_user_permission==1): ?>
<b><?php echo $this->translate('Manage testTeam'); ?></b>
<?php else: ?>
<b><?php echo $this->translate('testTeam'); ?></b>
<?php endif; ?>
<?php if(count($this->testTeam_side_menus) > 0): ?>
<?php foreach($this->testTeam_side_menus as $this->testTeam_side_menu): ?>
<?php
$url = "";
if($this->testTeam_side_menu->rutr_url != ""){
$router = str_replace("{testTeamURL}","",$this->testTeam_side_menu->rutr_url);
$url = $this->url(array('page'=>$this->testTeamURL),'global_routing').$router;
}else{
$url = $this->url(array('page'=>$this->data->rutr_url,'controller'=>$this->testTeam_side_menu->stvw_controller,'action'=>$this->testTeam_side_menu->stvw_action),'global_routing');
}
?>
<!--conditions for checking testTeam site edit menu to open a popup menu-->
<?php
if($this->testTeam_side_menu->stvw_menu_title=='testTeam Site (Modify)' && $this->testTeam_user_permission==1){ ?>
<p style="cursor:pointer"><a onclick="loadtestTeamSite('<?=$url; ?>')"><?=$this->translate($this->testTeam_side_menu->stvw_menu_title); ?></a></p>
<?php } else if($this->testTeam_side_menu->stvw_menu_title!='testTeam Site (Modify)' ) {?>
<p><a href="<?=$url; ?>"><?=$this->translate($this->testTeam_side_menu->stvw_menu_title); ?></a></p>
<?php } ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
for calling helper files to used page
---------------------------------------------------
---------------------------------------------------
EXAMPLE
<?php echo $this->testTeamsidebar(); ?>
<?php echo $this->helperfunctionname(); ?>
No comments:
Post a Comment