I am trying to apply tooltip class in my code in insertdata.php, but its not working can anyone help me
In this code tooltip class ie 'cont tooltip ui-corner-all' properly worked
my code is
Expand|Select|Wrap|Line Numbers
- <form name="myform" class="pager-form" method="post" action="">
- <div class="hastable" id="div_month_wise_follow_up">
- <table class="sortable">
- <thead>
- <tr>
- <th width="40">Sr no</th>
- <th width="70">Name</th>
- <th width="90">Email Address</th>
- <th width="150">Follow Up Description</th>
- <th width="120">Assign To</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $i=1;
- $sr_no = 1;
- if($_GET['page']==1 || $_GET['page']=='')
- {
- $sr_no=1;
- }
- else
- $sr_no= (($_GET['page']-1)*$limit)+1;
- $sum=0;
- $prevUserID = 0;
- $a=0;
- while($res2=mysql_fetch_array($sql1)){
- ?>
- <tr class="0"<?php $class_name?>>
- <td class="center"><?php echo $sr_no; ?></td>
- <td><?php echo $res2['name'];?></td>
- <td><?php echo $res2['email']; ?></td>
- <td><div class="cont tooltip ui-corner-all" title="<?php echo $res2['description']; ?> "><?php echo substr($res2['description'],0,30); ?> </div></td>
- <td style="text-align:center"><?php echo $res2['fname'];?></td>
- </tr>
- <?php
- $sr_no++;
- } ?>
- </tbody>
- </table>
- </div>
- </form>
my insertdata.php code is
Expand|Select|Wrap|Line Numbers
- <?php
- if($_POST['formname'] == 'month_wise_follow_up_report')
- {
- $trimmed = trim($var);
- $type = $_POST['type'];
- $mnt = $_POST['sel_month'];
- $yer = $_POST['sel_year'];
- $sels_r= $_POST['sales_representative'];
- if($_POST['sel_month']!= " " and $_POST['sel_year'] != "" and $_POST['sales_representative']!="")
- { //echo "select cm.name,cm.email,fp.description,u.fname from client_master as cm,follow_up as fp,user as u where fp.client_id=cm.user_id and cm.assignto=u.admin_user_id and month(cm.created_date) = ".date('m')." and year(cm.created_date) = ".date('Y')."";
- $sql2 = "select cm.name,cm.email,fp.description,u.fname from client_master as cm,follow_up as fp,user as u where fp.client_id=cm.user_id and cm.assignto=u.admin_user_id and month(fp.follow_up_date) = ".$mnt." and year(fp.follow_up_date) = ".$yer." and cm.assignto= $sels_r";
- }
- else
- {
- $sql2 = "select cm.name,cm.email,fp.description,u.fname from client_master as cm,follow_up as fp,user as u where fp.client_id=cm.user_id and cm.assignto=u.admin_user_id and month(fp.follow_up_date) = ".$mnt." and year(fp.follow_up_date) = ".$yer."";
- }
- $qry2 = mysql_query($sql2);
- $new_month_wise_report = "";
- $new_month_wise_report .="
- <div class='hastable' id='div_month_wise_follow_up'>
- <table class='sortable'>
- <thead>
- <tr>
- <th width='40'>Sr no</th>
- <th width='70'>Name</th>
- <th width='90'>Email Address</th>
- <th width='150'>Follow Up Description</th>
- <th width='120'>Assign To</th>
- </tr>
- </thead>
- <tbody>";
- $sr_no = 1;
- while($res2=mysql_fetch_array($qry2))
- {
- //'<div class='cont tooltip ui-corner-all' title='".$res2['description'];."'>'
- $new_month_wise_report .="<tr class='0'".$class_name.">
- <td class='center'>".$sr_no."</td>
- <td>
- ".$res2['name']."
- </td>
- <td>".$res2['email']."</td>
- <td><div class='cont tooltip ui-corner-all' title='".$res2['description']."' > ".substr($res2['description'],0,30)."</div></td>
- <td style='text-align:center'>".$res2['fname']."</td>
- </tr>";
- $sr_no++;
- }
- $new_month_wise_report .="</tbody>
- </table></div>";
- echo "month_wise_follow_up_report|".$new_month_wise_report;
- }
- ?>
Expand|Select|Wrap|Line Numbers
- function search_month_wise_follow_up_report(val)
- { //alert(val);
- var month = document.getElementById('sel_month').value;
- var year = document.getElementById('sel_year').value;
- var sales_r = document.getElementById('sales_representative').value;
- var type = val;
- var parameters ='formname=month_wise_follow_up_report&sel_month='+month+'&sel_year='+year+'&type='+type+'&sales_representative='+sales_r+'&';
- makeRequest('insert_data.php', parameters);
- return false;
- }
Expand|Select|Wrap|Line Numbers
- if(act.indexOf('month_wise_follow_up_report')>0)
- {
- document.getElementById('div_month_wise_follow_up').innerHTML = "";
- document.getElementById('div_month_wise_follow_up').innerHTML=res[1];
- document.getElementById('div_pagination').innerHTML = "";
- }