Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <link rel="stylesheet" type="text/css" href="css/symbiosis.css" />
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <script type="text/javascript" src="js/symbiosis.js"></script>
- <script type="text/javascript">
- $(function() {
- $.get('request.php?task=listrequests&niger_id='+{$user_id},
- function(data) {
- $('request', data).each(function() {
- $('#table_taken').append(example_clone('request',
- { id: $(this).attr('id'),
- name: $(this).attr('full_name'),
- title: $(this).attr('conditions')} ));
- });
- }
- );
- $.get(
- 'request.php?task=listrequests&boss_id='+{$user_id},
- function(data)
- {
- $('request', data).each(function()
- {
- $('#table_posted').append(example_clone('request',
- { id: $(this).attr('id'),
- name: $(this).attr('full_name'),
- title: $(this).attr('conditions')
- }));
- });
- }
- );
- });
- function view_request(num)
- {
- document.location.href = "/request.php?task=view&id="+num;
- }
- </script>
- </head>
- <body>
- <div id="example-taken" class="dev-clone-example">
- <li>От кого:%name% Условия: <a href="javascript:void(0)" onclick="view_request('%id%')">%title%</a></li>
- </div>
- <div id="example-posted" class="dev-clone-example">
- <li>Кому:%name% Условия:<a href="javascript:void(0)" onclick="view_request('%id%')">%title%</a></li>
- </div>
- <p>Заявки, полученные пользователем:</p>
- <ul id="table_taken">
- </ul>
- <p>Заявки, отправленные пользователем:</p>
- <ul id="table_posted">
- </ul>
- {include file='_auth.tpl'}
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment