Beispiel #1
0
    mysql_query($query);
    print "<SCRIPT LANGUAGE='Javascript'>\r";
    print "location='" . $location . "';";
    print "</SCRIPT>";
} else {
    include XOOPS_ROOT_PATH . '/header.php';
    $file_id = $HTTP_GET_VARS["file_id"];
    // Get file information
    $query = "SELECT obj_name from " . $xoopsDB->prefix("dms_objects") . " ";
    $query .= "WHERE obj_id='" . $file_id . "'";
    $first_result = mysql_query($query);
    $query = "SELECT obj_descript from " . $xoopsDB->prefix("dms_object_properties") . " ";
    $query .= "WHERE obj_id='" . $file_id . "'";
    $second_result = mysql_query($query);
    print "<form method='post' name='frm_select_dest' action='file_copy.php'>\r";
    display_dms_header(2);
    print "  <tr><td colspan='2'><BR></td></tr>\r";
    print "  <tr><td colspan='2' align='left'><b>Copy File:</b></td></tr>\r";
    print "  <tr><td colspan='2'><BR></td></tr>\r";
    print "  <tr>\r";
    print "    <td colspan='2' align='left'>File Name:&nbsp;&nbsp;&nbsp;";
    print "        " . mysql_result($first_result, 'obj_name') . "</td>\r";
    print "  </tr>\r";
    print "  <tr>\r";
    print "    <td colspan='2' align='left'>File Description:&nbsp;&nbsp;&nbsp;";
    print "        " . mysql_result($second_result, 'obj_descript') . "</td>\r";
    print "  </tr>\r";
    print "  <tr><td colspan='2'><BR></td></tr>\r";
    print "  <tr>\r";
    print "    <td colspan='2' align='left'>\r";
    include "inc_folder_select.php";
Beispiel #2
0
    print "location='index.php';";
    print "</SCRIPT>";
} else {
    include XOOPS_ROOT_PATH . '/header.php';
    // Determine temporary file name to use for uploads.
    $temp_file_name = (string) time() . (string) ($magic_number + $xoopsUser->getVar('uid'));
    // Get active folder
    $query = "SELECT folder_id from " . $xoopsDB->prefix("dms_active_folder") . " WHERE user_id='" . $xoopsUser->getVar('uid') . "'";
    $result = mysql_query($query);
    $active_folder = mysql_result($result, 'folder_id');
    if (!$active_folder >= 1) {
        $active_folder = 0;
    }
    print "<form method='post' action='file_import.php' enctype='multipart/form-data'>\r";
    print "<table width='100%'>\r";
    display_dms_header();
    print "  <tr><td colspan='2' align='left'><BR></td></tr>\r";
    print "  <tr><td colspan='2' align='left'><b>Import Document:</b></td></tr>\r";
    print "  <tr><td colspan='2' align='left'><BR></td></tr>\r";
    print "  <tr>\r";
    print "    <td align='left'>File Name:</td>\r";
    print "    <td align='left'><input type='text' name='txt_file_name'></td>\r";
    print "  </tr>\r";
    print "  <tr>\r";
    print "    <td align='left'>File Description:</td>\r";
    print "    <td align='left'><input type='text' name='txt_file_descript'</td>\r";
    print "  </tr>\r";
    print "  <tr>\r";
    print "    <td align='left'>Initial Version:</td>\r";
    print "    <td align='left'>\r";
    select_version_number("slct_version", 1, 0, 0);
Beispiel #3
0
$query = "SELECT folder_id from " . $xoopsDB->prefix("dms_active_folder") . " WHERE user_id='" . $xoopsUser->getVar('uid') . "'";
$result = mysql_query($query);
$active_folder = mysql_result($result, 'folder_id');
if (!$active_folder >= 1) {
    $active_folder = 0;
}
// Get the object type of the active folder, if applicable
if ($active_folder != 0) {
    $query = "SELECT obj_type from " . $xoopsDB->prefix("dms_objects") . " WHERE obj_id='" . $active_folder . "'";
    $result = mysql_query($query);
    $active_folder_type = mysql_result($result, 'obj_type');
} else {
    $active_folder_type = 0;
}
print "<table width='100%'>\r";
display_dms_header(3);
print "  <tr><td colspan='3'><BR></td></tr>\r";
print "  <tr>\r";
print "    <td width='70%'><BR></td>\r";
if (($xoopsUser->isAdmin() || $active_folder_type == FOLDER) && ($xoopsUser->isAdmin() || $active_folder != 0)) {
    print "    <td width='15%' align='left' valign='top'>";
    print "                                              <a href='file_new.php'>Create Document</a><BR>";
    print "                                              <a href='file_import.php'>Import Document</a><BR>";
    print "                                              <a href='folder_new.php'>Create Folder</a>";
    print "                                              </td>\r";
} else {
    print "    <td width='15%' align='left'><BR></td>";
}
print "    <td width='15%' align='left' valign='top'><a href='search.php'>Search</a>";
if ($xoopsUser->isAdmin()) {
    print "<BR><a href='lifecycle_manager.php'>Lifecycles</a>";
Beispiel #4
0
    exit(0);
} else {
    include XOOPS_ROOT_PATH . '/header.php';
    print "<script language='javascript'>\r";
    print "  function exit()\r";
    print "    {\r";
    print "    location=\"index.php\";";
    print "    }\r";
    print "  function search()\r";
    print "    {\r";
    print "    frm_search.submit();";
    print "    }\r";
    print "</script>\r";
    print "<form name='frm_search' method='post' action='search.php'>\r";
    print "<table width='100%'>\r";
    display_dms_header(4);
    //print "  <tr><td colspan='2' class='cHeader'><center><b><font size='2'>Title Goes Here</font></b></center></td></tr>\r";
    print "  <tr><td colspan='3' align='left'><BR></td></tr>\r";
    print "  <tr><td colspan='3' align='left'><b>Search:</b></td></tr>\r";
    print "  <tr><td colspan='3' align='left'><BR></td></tr>\r";
    print "  <tr>\r";
    print "    <td align='left' nowrap>\r";
    print "      Document Name&nbsp;\r";
    print "    </td>\r";
    print "    <td align='left' nowrap>\r";
    print "      <select name='slct_srch_doc_name'>\r";
    print "        <option value='1'>is</option>\r";
    print "        <option value='2'>contains</option>\r";
    print "        <option value='3'>starts with</option>\r";
    print "      </select>&nbsp;\r";
    print "    </td>\r";