issue #0001687: data view generate in dialog

This commit is contained in:
Arman KYOKCHAN 2013-08-26 12:54:50 +00:00
parent 7257c3497b
commit 34ce491d13
3 changed files with 21 additions and 3 deletions

View File

@ -362,7 +362,23 @@ class GiantController extends Zend_Controller_Action
}
endforeach;
$this->view->val_siren = $merged_siren;
/*
$sess = new stdClass();
$sess->mon_result = $result;
$auth = Zend_Auth::getInstance();
if ( $auth->hasIdentity() ) {
$this->identity = $auth->getIdentity();
}
$this->giant->monitoring = $sess;
$auth->getStorage()->write($this->giant);
*/
$type = $this->getRequest()->getParam('Type');
if(isset($type))
{
$this->_helper->layout()->disableLayout();
print_r($this->getRequest()->getParams());
}
}
public function retAction()
{

View File

@ -108,7 +108,7 @@ par
<td style='text-align: left'>
<?php
foreach ($monitor as $monitor_type) {
echo "<p>".$monitor_type->Company->Event[0]->EventCode."</p>";
echo "<a class='ev_code' value='".serialize($monitor_type)."' title='".$monitor_type->Company->Event[0]->EventCode."' href='/giant/retrive/Type/".$monitor_type->Company->Event[0]->EventCode."'><p>".$monitor_type->Company->Event[0]->EventCode."</p></a>";
} //Fin foreach?>
</td>
<td>

View File

@ -1,9 +1,11 @@
$(document).ready( function()
{
$('a.dial').on('click', function(e){
$('a.dial,.ev_code').on('click', function(e){
e.preventDefault();
var title = $(this).attr('title');
var href = $(this).attr('href');
var host = 'http://'+window.location.hostname+$(this).attr('href');
alert($(this).attr('value'));
var dlgOpts = {
bgiframe: true,
title: title,