porsche21
08-30-2007, 11:53 AM
I want to create a popup box when i click on the link how do I do this and is it possible?
if ($pview != 1)
{
echo "<table><tr><td width=\"100%\">";
$create_by = $GLOBALS['phpgw_info']['user']['account_id'];
$sql = "select name, id, create_by, description from trucks_entry where create_by=$create_by order by name";
$GLOBALS['phpgw']->db->query($sql, __LINE__, __FILE__);
while ($GLOBALS['phpgw']->db->next_record())
{
/*echo "<img src=" . $GLOBALS['phpgw_info']['server']['app_images']. "/return_img.jpg align=absmiddle></a>";*/
//Show all owners trucks
if ($GLOBALS['phpgw']->db->f('create_by') == $create_by)
{
echo "<u>$vocab[yourtruck]</u><br>";
}
echo "<a href=\"edit_entry.php?year=$year&month=$month&day=$day&id=" . $GLOBALS['phpgw']->db->f(
'id'). "\" >";
if ($GLOBALS['phpgw']->db->f('create_by') == $create_by)
{
echo "<font color=\"blue\">" . htmlspecialchars(
$GLOBALS['phpgw']->db->f(
'name')). "
</font></a> <br>\n";
/* var_dump($id);*/
}
else
{
echo htmlspecialchars($GLOBALS['phpgw']->db->f('name')). "</a><br>\n";
}
}
if ($pview != 1)
{
echo "<table><tr><td width=\"100%\">";
$create_by = $GLOBALS['phpgw_info']['user']['account_id'];
$sql = "select name, id, create_by, description from trucks_entry where create_by=$create_by order by name";
$GLOBALS['phpgw']->db->query($sql, __LINE__, __FILE__);
while ($GLOBALS['phpgw']->db->next_record())
{
/*echo "<img src=" . $GLOBALS['phpgw_info']['server']['app_images']. "/return_img.jpg align=absmiddle></a>";*/
//Show all owners trucks
if ($GLOBALS['phpgw']->db->f('create_by') == $create_by)
{
echo "<u>$vocab[yourtruck]</u><br>";
}
echo "<a href=\"edit_entry.php?year=$year&month=$month&day=$day&id=" . $GLOBALS['phpgw']->db->f(
'id'). "\" >";
if ($GLOBALS['phpgw']->db->f('create_by') == $create_by)
{
echo "<font color=\"blue\">" . htmlspecialchars(
$GLOBALS['phpgw']->db->f(
'name')). "
</font></a> <br>\n";
/* var_dump($id);*/
}
else
{
echo htmlspecialchars($GLOBALS['phpgw']->db->f('name')). "</a><br>\n";
}
}