[ Index ]

PHP Cross Reference of Yamoon 0.9.0

title

Body

[close]

/ -> index.php (source)

   1  <?php
   2  
   3  require_once ('Yamoon/Global.php');
   4  include ('header.php');
   5  
   6  $companyList = getCompanies();
   7  ?>
   8  
   9  <p>
  10  <table>
  11  <tr><th>Company</th><th>Actions</th></tr>
  12  <?php
  13  foreach ($companyList as $company) {
  14  ?>
  15  <tr>
  16      <td class='title'><a href="company.php?company_id=<?php print $company->id ?>"><?php print $company->name ?></a></td>
  17      <td class='link'>
  18          <a href="company.php?company_id=<?php print $company->id ?>&action=edit">Edit</a>
  19          <a href="company.php?company_id=<?php print $company->id ?>&action=clone">Clone</a>
  20          <a href="company.php?company_id=<?php print $company->id ?>&action=delete" onClick="return confirmDelete('company','<?php print $company->name?>')">Delete</a>
  21      </td>
  22  </tr>
  23  <?php
  24  }
  25  ?>
  26  <form action=company.php>
  27  <input type=hidden name=action value=insert>
  28  <tr>
  29      <td class='title'><input name=companyname value="your company"></td>
  30      <td class='link'><input type=submit value="Create"</td>
  31  </tr>
  32  </form>
  33  </table>
  34  
  35  <?php
  36  include ('footer.php');
  37  ?>


Generated: Sat Feb 19 17:29:53 2005 Cross-referenced by PHPXref 0.6