$link = sprintf('%s?op_edit=%d&pid=%d', $_SERVER['PHP_SELF'], $row['id'], $productid); $table->addRow($vals, null, true, $link); } $numrows = count($downloads); } } /** build form **/ $fex->js_src_inline = true; $fex->add_element('op', array($ACTION, 'submit', null, null, 1)); $fex->add_element('cm_products_id', array('id', 'hidden', $productid, 1)); /** **/ if ($ACTION == OP_EDIT) { $download->set_id($thisid); $fex->add_element('op_kill', array(OP_KILL, 'submit', null, null, 'onclick="return confirm(\'Are you sure?\')"')); $fex->add_element('id', array('', 'hidden')); $fex->set_elem_value($download->fetch()); } // get message for display if any if (isset($_GET['msg'])) { $msg = base64_decode($_GET['msg']); } # output template ############################################################################## ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>product download control framelet</title> <link rel="stylesheet" href="/control/control.css" type="text/css"> <link rel="stylesheet" href="/control/cshop/store.css" type="text/css"> </head>