sultan

fds

Jul 11th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  4. <link rel="stylesheet" type="text/css" href="css/symbiosis.css" />
  5. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  6. <script type="text/javascript" src="js/symbiosis.js"></script>
  7. <script type="text/javascript">
  8.  
  9. $(function() {
  10.     $.get('request.php?task=listrequests&niger_id='+{$user_id},
  11.         function(data) {
  12.             $('request', data).each(function() {
  13.             $('#table_taken').append(example_clone('request',
  14.                     { id: $(this).attr('id'),
  15.                     name: $(this).attr('full_name'),                   
  16.                     title: $(this).attr('conditions')} ));
  17.         });
  18.         }
  19.     );
  20.     $.get(
  21.         'request.php?task=listrequests&boss_id='+{$user_id},
  22.         function(data)
  23.         {
  24.             $('request', data).each(function()
  25.             {
  26.                 $('#table_posted').append(example_clone('request',
  27.                     { id: $(this).attr('id'),
  28.                     name: $(this).attr('full_name'),                   
  29.                     title: $(this).attr('conditions')
  30.                     }));
  31.             });
  32.         }
  33.     );
  34. });
  35.  
  36. function view_request(num)
  37. {
  38.     document.location.href = "/request.php?task=view&id="+num;
  39. }
  40.  
  41. </script>
  42. </head>
  43. <body>
  44.  
  45. <div id="example-taken" class="dev-clone-example">
  46.  <li>От кого:%name% Условия: <a href="javascript:void(0)" onclick="view_request('%id%')">%title%</a></li>
  47. </div>
  48.  
  49. <div id="example-posted" class="dev-clone-example">
  50.  <li>Кому:%name% Условия:<a href="javascript:void(0)" onclick="view_request('%id%')">%title%</a></li>
  51. </div>
  52.  
  53. <p>Заявки, полученные пользователем:</p>
  54. <ul id="table_taken">
  55. </ul>
  56. <p>Заявки, отправленные пользователем:</p>
  57. <ul id="table_posted">
  58. </ul>
  59.  
  60. {include file='_auth.tpl'}
  61. </body>
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment