Commit 9bc003fb authored by Jean-Paul Saman's avatar Jean-Paul Saman

use w2p primitives

parent 208cafed
...@@ -22,7 +22,7 @@ if ($del) { ...@@ -22,7 +22,7 @@ if ($del) {
} else { } else {
$AppUI->setMsg( "Invoice deleted", UI_MSG_ALERT ); $AppUI->setMsg( "Invoice deleted", UI_MSG_ALERT );
} }
msg = "m=invoice&a=addedit&invoice_id=".$obj->task_invoice."&project_id=".$obj->invoice_project; $msg = "m=invoice&a=addedit&invoice_id=".$obj->task_invoice."&project_id=".$obj->invoice_project;
} else if ($stat != -1 && $obj->task_invoice != 0) { } else if ($stat != -1 && $obj->task_invoice != 0) {
if (!$obj->change_status($stat)) { if (!$obj->change_status($stat)) {
$AppUI->setMsg( 'Invoice status change failed', UI_MSG_ERROR ); $AppUI->setMsg( 'Invoice status change failed', UI_MSG_ERROR );
......
...@@ -66,7 +66,7 @@ foreach ($invoices as $row) ...@@ -66,7 +66,7 @@ foreach ($invoices as $row)
$s = '<tr>'; $s = '<tr>';
$s .= $CR . '<td>'; $s .= $CR . '<td>';
if ($type == 0) if ($type == 0)
$s .= '<a href="?m=invoice&a=addedit&invoice_id=' . $row['invoice_id'] . '&project_id=' . $row['invoice_project'] . '"><img src="./images/icons/pencil.gif" alt="'.$AppUI->_( 'Edit Invoice' ).'" border="0" width="12" height="12"></a>'; $s .= '<a href="?m=invoice&a=addedit&invoice_id=' . $row['invoice_id'] . '&project_id=' . $row['invoice_project'] . '">'. w2PshowImage('icons/pencil.gif', '16', '16'). '</a>';
$s .= '&nbsp; </td>'; $s .= '&nbsp; </td>';
$s .= $CR . '<td nowrap="nowrap" width=100><a href="?m=invoice&a=view&project_id=' . $row["invoice_project"] . '&invoice_id=' . $row["invoice_id"] .'">#' . $row["invoice_id"] . '</a></td>'; $s .= $CR . '<td nowrap="nowrap" width=100><a href="?m=invoice&a=view&project_id=' . $row["invoice_project"] . '&invoice_id=' . $row["invoice_id"] .'">#' . $row["invoice_id"] . '</a></td>';
$s .= $CR . '<td nowrap="nowrap" width=100><a href="?m=invoice&a=view&project_id=' . $row["invoice_project"] . '&invoice_id=' . $row["invoice_id"] .'">' . $row["invoice_tag"] . '</a></td>'; $s .= $CR . '<td nowrap="nowrap" width=100><a href="?m=invoice&a=view&project_id=' . $row["invoice_project"] . '&invoice_id=' . $row["invoice_id"] .'">' . $row["invoice_tag"] . '</a></td>';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment