Link to documents stored in database on flext front end

Hi,
I am a newbie to Flex.Can you please help me out with the
procedure as how I can to provide a link on flex front end screen
which when clicked opens either pdf's,ppt's,word docs from
database. I am integrating the flex with spring and hibernate
also.can you please tell me how can I connect(Flex to Java
connection) to the document in the oracle database with the
link.All the documents are stored in database.So for example if a
user clicks on a link on flex frontend screen it needs to open a
pdf file whihc is stored in database.So can you please post me the
connection details as how flex calls java and inturn java calls
backend to get the document from database.I am using flex,Spring
and hibernate frameworks for the application..
Thanks in Advance
Chandu

"chandu2406" <[email protected]> wrote in
message
news:gju0i3$ov0$[email protected]..
> Hi,
>
> I am a newbie to Flex.Can you please help me out with
the procedure as how
> I
> can to provide a link on flex front end screen which
when clicked opens
> either
> pdf's,ppt's,word docs from database. I am integrating
the flex with spring
> and
> hibernate also.can you please tell me how can I
connect(Flex to Java
> connection) to the document in the oracle database with
the link.All the
> documents are stored in database.So for example if a
user clicks on a link
> on
> flex frontend screen it needs to open a pdf file whihc
is stored in
> database.So
> can you please post me the connection details as how
flex calls java and
> inturn
> java calls backend to get the document from database.I
am using
> flex,Spring and
> hibernate frameworks for the application..
Let's start with the basics:
Do you already have an understanding of how you'd perform
these steps if
Flex were not involved (i.e. some sort of static or dynamic
html page in the
browser)?

Similar Messages

  • Display PDF Documents Stored In Database

    Hi
    I apologise that this question has been asked many times, but I just do not seem to be able to find answer to my question in many other posts over the years.
    We have pdf documents stored in database and wish for client to view from forms session.
    I am able to use webutil_file_transfer.DB_To_Client_With_Progress to transfer to client and open using client_host('cmd /c start '||TheFile);
    I am also able to view pdf documents stored on application server using web.show_document.
    What I would prefer to do is:
    1. Transfer file from database to application server (This is bit I cannot figure out)
    2. Display from application server using web.show_document
    3. Delete temporary file from application server (Also unsure how to do this)
    Our users have thin clients and so in many cases do not have access or unsure where can access to store temporary file if use transfer to client method. Wish to keep temporary file activity on application server.

    You can combine the methods in WEBUTIL. Check this Re: Forms 10G - Saving Blob on Application Server using Java.

  • Database triggers VS Front end triggers

    Hi All,
    We have online ticket reservation application developed using oracle forms 6i and Oracle 8i database in Client server multiuser environment.
    for example we have scenario like this.. AFTER INSERTING into TABLE A,
    we need to UPDATE status column in TABLE B, for achieve this which is better option
    To write database trigger on A,
    or To write a POST INSERT trigger in the form designed uisng TABLE A.
    basically the the dataentry is done through Front end only.
    we are going to have upto 20 triggers of this scenario in the entire database on diffrent tables.
    which is best practice? in terms of performance.
    And we want to have DAY END, DAY CLOSE system, so that once we close DAY, no one allowed to insert data into few tables, for this can we use database triggers or front end check.
    Thanks in advance

    There isn't a confusion here between "application" meaning front-end tool, and "application" meaning "whatever layer contains your business logic" is there? I didn't mean to suggest that i thought it a good idea that business logic be implemented outside of the database, just that it ought to all be in one layer -- my own choice would be db packages, but if someone were commited to putting business logic outside of the db, then that would be the place for all the code.

  • Lync 2013 updating databases after updating Front End servers

    We have a front-end server pool consisting of 3 Lync 2013 servers and a back end of 2 SQL servers using SQL mirroring.  All servers are Windows 2008 R2.
    Following the instructions in
    http://support2.microsoft.com/kb/2809243 , I verified that the servers were all ready for updates, then I ran the
    Stop-CsWindowsService -Graceful cmdlet to stop the Lync services on the first FE server, then I ran LyncServerUpdateInstaller.exe to install the updates.  After the updates were installed, I restarted the server, waited for Lync services
    to all start, then repeated the process on the next 2 servers in turn.  This was all successful.
    I am now looking at step 2 in this document, applying the back-end database updates, and I have a problem and some questions.  The problem is that all the databases had the principal copy on the mirrored SQL server.  I ran the recommended Invoke-CsDatabaseFailover
    -NewPrincipal Primary cmdlet repeatedly, using all the database types I could find, but I still have two databases (database names
    xds and lis) on the mirrored server.  Since the cmdlet requires a database type, what type of databases are the xds and the lis databases?
    Once I get that done, I an still unsure of exactly what to run to update the databases.  The KB article states to run Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn FEBE.FQDN -Verbose .  Do I type this in exactly
    as stated, or is FEBE.FQDN a variable for our SQL server or some other entity in our environment?  If I do use the actual SQL Server name in that, do I run it twice, using the name of the mirrored SQL server the second time?  
    Thank you very much for your help.

    Hi Logan Burt,
    Central Management store database files
    Data file or log purpose
                    Xds.ldf
    Transaction log file for the Central Management store
                    Xds.mdf
    Maintains the configuration of the current Lync Server 2013 topology, as defined and published by Topology Builder
                    Lis.mdf
    Location Information service data file
                    Lis.ldf
    Transaction log for the Location Information service data file
    And you could verify if Lync Server 2013 database updates have completed successfully.
    How to Verify if Lync Server 2013 Database Updates Completed Successfully
    http://blogs.technet.com/b/dodeitte/archive/2013/07/02/how-to-verify-if-lync-server-2013-database-updates-completed-successfully.aspx
    Best regards,
    Eric

  • Link a document, stored in the DB

    Hi,
    I require the same document for two different business process.
    To copy the document is not an option.
    The document is stored in the database consequently I need a reference to the document.
    any ideas?
    Thank you in advance
    Michael Kuehne

    Hello Michael,
    if you work in SOLAR01 or SOLAR02 why don't you use the option to insert a document via a link ? It is available on each tab where you can add documents : Insert document-> Reference to Solution Manager Document.
    Best regards
      Jürgen

  • Why do website links to documents stored on another server work in IE but not firefox?

    here is the line of code that works fine in IE:
    <td><div align="left"><b><a ref="file://sndpdps.ess.ad.addp.com/opssupport/FLOWCHARTS/Batch_Processing/PDF format/BKUP_FACKS_PROD_Daily.pdf" target="_Top">FACKS_PROD Backup</a></b></div></td>

    Does it work with 3 "/" after "file:" (i.e., file:///)
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question.
    You have multiple old Java Console '''''extensions''''' installed that Java did not clean up when updating. The versions are 6.0.13, 6.0.14, 6.0.15, 6.0.17, 6.0.19, 6.0.20, 6.0.21, 6.0.22, 6.0.23. (You also have version 6.0.24 which is your currently installed version of Java --- see below).
    You can remove the old versions by following these instructions: http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • E-business databases access like front-end of solution-beckon

    Is there any site or way to connect E-business-suit to access database either it free or take any annual charges.
    --thanks                                                                                                                                                                                                                                                               

    thanks for reply,
    As you suggested web is only used to access E-business application(FRON-END) instead of database access to select data through toad or sqlplus.
    Can i get database connection to view tables etc.
    thanks

  • Can Discoverer have link to display documents stored outside the database?

    I posted a message some time ago called "Possible for Discoverer to display BLOB type documents stored in database?" and got great answer.
    Now our customers are asking if it is possible, from Discoverer, to link somehow to a file stored outside the database on the Unix file system and get their computer to display it? Can anyone tell me if this is possible please?
    The only thing I've seen in the documentation that may be related is in Oracle Business Intelligence Discoverer Configuration Guide, section 10.6 List of Discoverer user preferences. It says there that Discoverer preference ProtocolList can be set so that Discoverer hyperlinks can be set to use protocols such as telnet, but the default is HTTP, HTTPS, and FTP.
    THank you in advance if you can help.
    Regards,
    Julie.

    Hi Rod,
    I have tried the second method: "create a Oracle directory pointing to the Unix directory containing the files". I have had success with it, but I'd be grateful if you could advise me if you would have done this the same way as described below:
    I put two Word docs and two text docs called clob_test1.txt, clob_test2.txt, blob_test1.doc, blob_test2 in the Unix directory corresponding to an Oracle directory called 'EIF'. I thought an extrenal table was needed so that Discoverer would have an object to write a queruy against. So I created a file called lob_test_data.txt with the following contents:
    1,01-JAN-2006,text/plain,clob_test1.txt
    2,02-JAN-2006,text/plain,clob_test2.txt
    3,01-JAN-2006,application/msword,blob_test1.doc
    4,02-JAN-2006,application/msword,blob_test2.
    THen I created an external table using the following DDL:
    CREATE TABLE jum_temp_lob_tab (
    file_id NUMBER(10),
    date_content DATE,
    mime_type VARCHAR2(100),
    blob_content BLOB
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EIF
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    BADFILE EIF:'lob_tab_%a_%p.bad'
    LOGFILE EIF:'lob_tab_%a_%p.log'
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    file_id CHAR(10),
    date_content CHAR(11) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    mime_type CHAR(100),
    blob_filename CHAR(100)
    COLUMN TRANSFORMS (blob_content FROM LOBFILE (blob_filename) FROM (EIF) BLOB)
    LOCATION ('lob_test_data.txt')
    PARALLEL 2
    REJECT LIMIT UNLIMITED
    then created a Discoverer End User Layer folder against this external table, and used exactly the same technique as we did for downloading the BLOB from the database table (creating a new folder item containing a URL calling a database procedure which calls the Oracle code to download the doc). THis worked, but sometimes my PC didn't seem to know that the Word docs were Word docs and it needed to launch Word. Other times it did manage to do this OK. It always displayed the two .txt files as HTML docs.
    Just wondered if you'd be good enough to critique this approach.
    THank you, Julie.

  • Email link to document in Content Server from SDV

    Experts,
    We would like to email links to documents stored on our Content Server while viewing them in the SAP Document Viewer.  These documents are ArchiveLinks to invoices.  When we use the 'Send object with note' button in SDV, the email sent contains a text file which has information about the invoice, not the document we are viewing.  Does anyone know if what we are try to do is possible?
    - Andrew

    Hello Andrew,
    You can right-click in open space to the right of the bottom row of icons to change the icons. Next select MORE TOOLS. In the File Toolbar, check the box for Email and this should solve the problem. Why SAP did not default this checkbox I will never know.
    Thanks,
    Tim

  • PDF stored in database and to view the PDF when clicking on a link

    Is it possible to save a PDF document in the database as a blob column and to retrieve the PDF when clicking on the link
    Example
    Above method is possible for images
    See: http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm.
    But can I reach the same for PDF documents?
    Thanks in advance for your response.
    Kind regards,
    Iloon

    Hello Andy,
    This Upload and Download Files is very useful feature in APEX.
    However, is there a way of displaying PDF files first in the report by clicking the corresponding link
    in the table?
    I mean, is it possible to view PDF files first by clicking the link before deciding to download them?
    As we see, this approach is used by most websites and after opening and viewing a PDF file, we can save them.
    Thanks.
    Shurick.
    Edited by: Shurick on Sep 28, 2009 12:51 PM

  • Storing PDF and Word document in oracle database

    any idea, how to store PDF and word document using oracle database.
    thanks

    The common approach is store as BLOB in database, use DBMS_LOB package to handle the loading and reading, sample script source asktom
    Also check this thread in Asktom
    SQL> create table demo
      2  ( id        INT PRIMARY KEY,
      3    theBlob   blob,
      4    dummy_col VARCHAR2(1)
      5  )
      6  /
    Table created.
    SQL> -- --------------------------------------------------------------
    SQL> -- Load a PDF file into a BLOB field and compress the BLOB.
    SQL> -- --------------------------------------------------------------
    SQL> declare
      2      l_blob    blob;
      3      l_bfile   bfile;
      4 
      5  begin
      6      insert into demo (id, theBLOB) values ( 1, empty_blob() )
      7      returning theBlob into l_blob;
      8 
      9      l_bfile := bfilename( 'BLOB_DIR', 'Test.PDF' );
    10      dbms_lob.fileopen( l_bfile );
    11 
    12      dbms_lob.loadfromfile( l_blob,
    13                             l_bfile,
    14                             dbms_lob.getlength( l_bfile ) );
    15 
    16      UPDATE demo
    17      SET    theBlob = utl_compress.lz_compress(l_blob, 6)
    18      WHERE  id = 1;
    19  -- If you don't want compress the LOB just update directly
    20      dbms_lob.fileclose( l_bfile );
    21      COMMIT;
    22  end;
    23  /
    PL/SQL procedure successfully completed

  • How to save and work with a Word document stored in the Oracle 8i Database?

    Hi,
    If you have any experience with saving and working with a Word document (stored in 8i) from Forms 6.0, then please let me know how.
    Thanks ...
    Peter Nielsen

    hi
    i had worked storing word documents in oracle8i.tell me what exactly u want to know.
    null

  • How to display the content from a file  stored in database

    when i am trying to display the content from a file which stored in database on oracle report 10g
    data are displaying as following. please help me to display the data in readable format
    <HTML LANG="en-US" DIR="LTR">
    <!-- Generated: 1/11/2006, postxslt.pl [1012] v1
    Source: amsug304286.xml
    File: amsug304286.htm
    Context: nil
    Tiers: ALWAYS
    Pretrans: YES
    Label: Release 12 -->
    <HEAD>
    <!-- $Header: amsug304286.htm 120.4 2006/11/01 20:57:29 appldev noship $ -->
    <!--BOLOC ug1_OMPO1010302_TTL--><TITLE>Product Overview (ORACLE MARKETING)</TITLE><!--EOLOC ug1_OMPO1010302_TTL-->
    <LINK REL="stylesheet" HREF="../fnd/iHelp.css">
    </HEAD>
    <BODY BGCOLOR="#F8F8F8">
    <A NAME="T304286"></A><A NAME="ProdOve"></A>
    <CENTER><H2><!--BOLOC ug1_OMPO1010302--><B>Product Overview</B><!--EOLOC ug1_OMPO1010302--></H2></CENTER>
    <p><!--BOLOC ug1_OMPO1010304-->Oracle Marketing drives profit, not just responses, by intelligently marketing to the total customer/prospect base. By leveraging a single repository of customer information, you can better target and personalize your campaigns, and refine them in real time with powerful analytical tools.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    ls.<!--EOLOC ug1_OMPO1010304--></p>
    <p><!--BOLOC ug1_OMPO1006611-->With tools necessary to automate the planning, budgeting, execution, and tracking of your marketing initiatives, Oracle Marketing provides you with:<!--EOLOC ug1_OMPO1006611--></p>
    <ul>
    <li>
    <p><!--BOLOC ug1_OMPO1006612--><B>Customer Insight</B> - With sophisticated customer management and list generation, Oracle Marketing enables you to quickly generate target lists and segments using an intuitive user interface. The easy to use Natural Query Language Builder (NLQB) lets you query for customers or prospects using a natural language while hiding data complexity; fatigue management ensures that you do not over-contact the same customers with marketing messages; and predictive analytics helps you predict customer behavior that you can leverage to produce significant increases in marketing return on investments (ROI).<!--EOLOC ug1_OMPO1006612--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006613--><B>Sales Alignment</B> - Oracle Marketing's leads management helps you compile and distribute viable leads so that sales professionals can follow up valuable opportunities and not just contact interactions. Additionally, support for distributing proposals and marketing material drive speedy and consistent setups and collaboration of best practices.<!--EOLOC ug1_OMPO1006613--></p>
    </li>
    <li>
    <p><!--BOLOC ug1_OMPO1006614--><B>Marketing Insight</B> - While Oracle Marketing Home page reports and Daily Business Intelligence (DBI) for Marketing and Sales provide aggregated management level information in almost real time, operational metrics help in tracking the effectiveness of individual marketing activities.<!--EOLOC ug1_OMPO1006614--></p>
    </li></ul>
    </BODY>
    </HTML>
    <!-- Q6z5Ntkiuhw&JhsLdhtX.cg&Zp4q0b3A9f.&RQwJ4twK3pA (signum appsdocopis 1162406236 2673 Wed Nov 1 10:37:16 2006) -->

    Hi,
    you can try to use the:
    <b>ConsumerTreeListPreview</b>
    layout for KM navigation ivew (or customize to your own).
    This layout shows a folder tree on the left, a document list on the right. When you click on a document from the list it shows the contents of the file on the bottom of the iview.
    Hope this helps,
    Romano

  • Modifying MS WORD documents stored in BLOBS. (Oracle 9i Release 9.2.0.4.0)

    I have a need to replace a string of characters in an MS Word document that is stored in a BLOB field in an Oracle 9i database.
    Background: We have a large number of MS Word documents (~50,000) and many of them contain links to other Word documents stored on various servers throughout our network. We are moving a number of these servers, thus invalidating these links. I need to be able to update these links without having to open up every one of these documents and doing it manually.
    Is it possible, using PL/SQL, to update these links in these MS Word documents that are stored in Oracle? I have currently written a quick PL/SQL routine that will find the links and provide their location within the document, but I am not sure how I can update them. The problem, as I see it, is that if the characters that I am replacing differ in length than those that are currently in the existing document, then I would have to shift the remaining bytes of the document either left or right to preserve the integrity of the document.
    Is this possible, or should I pursue another option?

    It does not have to manual, but I think you will need to use word to modify and save the documents.
    The most automated process I can think of would be to write a client program to fetch a blob, run word, and have a word macro or add in to make the edits save, and then the client program updates with the new blob.
    With that number of documents, I would probably try to fetch a bunch of blobs and have word process them all before updating them for performance reasons.
    Unfortunately I would have no clue how to do the word automation, but I wouldn't touch those blobs using pl/sql

  • How to link to an image from database result.

    Hey all,
    So i have created a search form for a user to search a vehicle in a scrap yard. The vehicles are stored in database with no images( i have no idea how to do this. So i want to be able to allow the user to click on a link to view the vehicle from the search result in a database. Any ideas?
    Thank you! 

    Sorry, I'm new to this game. Thanks. Well i'm using MySQL and Php. Here is the code from my stock list page which display all the results in the database aswell as a search engine to search for specific stock by searching for keywords. I know its very scrappy but here it is anyway:
    <?php require_once('../Connections/cbdb.php'); ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && true) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "login.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_cbdb, $cbdb);
    $query_rsStock = "SELECT * FROM stock ORDER BY `date` DESC";
    $rsStock = mysql_query($query_rsStock, $cbdb) or die(mysql_error());
    $row_rsStock = mysql_fetch_assoc($rsStock);
    $totalRows_rsStock = mysql_num_rows($rsStock);
    $maxRows_rsStock = 30;
    $pageNum_rsStock = 0;
    if (isset($_GET['pageNum_rsStock'])) {
      $pageNum_rsStock = $_GET['pageNum_rsStock'];
    $startRow_rsStock = $pageNum_rsStock * $maxRows_rsStock;
    mysql_select_db($database_cbdb, $cbdb);
    $key = $_GET['keyword'];
    $query_rsStock = "SELECT * FROM stock WHERE stock.keywords LIKE '%$key%' ORDER BY stock.date DESC";
    $query_limit_rsStock = sprintf("%s LIMIT %d, %d", $query_rsStock, $startRow_rsStock, $maxRows_rsStock);
    $rsStock = mysql_query($query_limit_rsStock, $cbdb) or die(mysql_error());
    $row_rsStock = mysql_fetch_assoc($rsStock);
    if (isset($_GET['totalRows_rsStock'])) {
      $totalRows_rsStock = $_GET['totalRows_rsStock'];
    } else {
      $all_rsStock = mysql_query($query_rsStock);
      $totalRows_rsStock = mysql_num_rows($all_rsStock);
    $totalPages_rsStock = ceil($totalRows_rsStock/$maxRows_rsStock)-1;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/admin.dwt.php" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Stock Management System</title>
    <!-- InstanceEndEditable -->
    <link href="../style/admin_style.css" rel="stylesheet" type="text/css" media="screen" />
    <!-- InstanceBeginEditable name="head" -->
    <script type="text/javascript">
    function tmt_confirm(msg){
    document.MM_returnValue=(confirm(unescape(msg)));
    </script>
    <!-- InstanceEndEditable -->
    </head>
    <body>
    <div id="wrapper">
    <div id="header">Eugene Hoade Car Breakers</div>
    <div id="navigation">
    <ul id="mainav">
    <li><a href="stock_list.php">List of stock</a></li>
    <li><a href="stock_add.php">Add new stock</a></li>
    <li></li>
    <li><a href="logout.php">Logout</a></li>
    <li id="front"></li>
    </ul>
    </div>
    <div id="container"><!-- InstanceBeginEditable name="Content" -->
      <p id="ptitle">Stock</p>
      <form id="forminsert" name="forminsert" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
      <table border="0" align="center" cellpadding="0" cellspacing="0" id="tblinsert">
      <caption>
        Search for Stock
      </caption>
      <tr>
        <th><label>Keyword:</label></th>
        <td><input type="text" name="keyword" id="keyword" /></td>
        <td><input type="submit"  id="button" value="Submit" /></td>
        </tr>
    </table>
      </form>
      <?php if ($totalRows_rsStock > 0) { // Show if recordset not empty ?>
      <table border="0" align="center" cellpadding="0" cellspacing="0" id="tblrepeat">
        <tr>
          <th scope="col">Make</th>
          <th scope="col">Model</th>
          <th scope="col">Year</th>
          <th scope="col">Engine cc</th>
          <th scope="col">Fuel</th>
          <th scope="col">Doors</th>
          <th scope="col">Body</th>
          <th scope="col">Arrival Date</th>
          <th scope="col">Reg.</th>
          <th scope="col">Edit</th>
          <th scope="col">Delete</th>
        </tr>
        <?php do { ?>
          <tr>
            <td><?php echo $row_rsStock['make']; ?></td>
            <td><?php echo $row_rsStock['model']; ?></td>
            <td><?php echo $row_rsStock['year']; ?></td>
            <td><?php echo $row_rsStock['cc']; ?></td>
            <td><?php echo $row_rsStock['fuel']; ?></td>
            <td><?php echo $row_rsStock['doors']; ?></td>
            <td><?php echo $row_rsStock['body']; ?></td>
            <td><?php echo $row_rsStock['date']; ?></td>
            <td><?php echo $row_rsStock['registration']; ?></td>
            <td><a href="stock_edit.php?id=<?php echo $row_rsStock['stockId']; ?>">Edit</a></td>
            <td><a href="stock_remove.php?id=<?php echo $row_rsStock['stockId']; ?>" onclick="tmt_confirm('Are%20you%20sure%20you%20want%20to%20perform%20this%20action?');ret urn document.MM_returnValue">Delete</a></td>
          </tr>
          <?php } while ($row_rsStock = mysql_fetch_assoc($rsStock)); ?>
      </table>
      <?php } // Show if recordset not empty ?>
    <?php if ($totalRows_rsStock == 0) { // Show if recordset empty ?>
      <p>Sorry, there are no records matching your searching criteria.</p>
      <?php } // Show if recordset empty ?>
    <!-- InstanceEndEditable --></div>
    <div id="footer"><p>© <a href="http://www.blablabla.com/" title="Web Designer" target="_blank">Crockett Ink Web Design</a></p></div>
    </div>
    </body>
    <!-- InstanceEnd --></html>
    <?php
    mysql_free_result($rsStock);
    ?>

Maybe you are looking for

  • Can BAPI_ACC_DOCUMENT_POST Clear open items similar to F-28 FB05

    Can BAPI_ACC_DOCUMENT_POST be used to clear open items?  I've been able to successfully post documents using this BAPI, but it is not clearing the open item document.  Any ideas?

  • Is green screen the right way forward?

    Hello, I'd appreciate any feedback on this, if anybody has any suggestions. I want to film a subject in a long shot as if they're standing in a large white expanse of nothingness. Should I film them against a heavily lit white background and then ext

  • Safari won't display maps

    My Safari won't diplay maps from either Google Maps or MapQuest. I'm running OS10.3.9 and Safari 1.3.2 (V312.6). I have the cookies on for sites I go to. Maps display when using Firefox.

  • Why does my trash hang on emptying?

    I have an external G-Tech Raid drive attached to my MBP and just recently as I try to empty the trash it has started to hang. When I try empty the trash a message tells me I have 6 items more than I can see in the trash can. I am not super knowleagab

  • How can reduce generate trace file.

    Hi all, how can reduce generate trace file. frequently created sql trace file in oracle 10g approximate 5g in one day. and database size 10gb os windows