"Save As" php function Dreamweaver CS6

Does anyone know off the top of their head what code I'd use to make a .pdf document "savable"? I have a small image that, when clicked, want the user to be prompted the options to OPEN or SAVE AS a .pdf document. I believe it's a .php function, learned it a while ago, now I forgot and can't seem to find it online anywhere. Thanks to all.

Yeah.  If you want to force a download, logo will link to a PHP script that contains the URL to your PDF file.  This has the side effect of hiding your file's location on the server.
<?php
// This short script forces a file download.
// full server path to file to be downloaded (including filename)
$Path2File = "../folder/your_resume.pdf";
// the filename
$theFileName = "your_resume.pdf";
//the work gets done here
header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header ("Content-Type: application/octet-stream");
header ("Content-Length: " . filesize($Path2File));
header ("Content-Disposition: attachment; filename=$theFileName");
readfile($Path2File);
?>
Nancy O.

Similar Messages

  • Php function list autocomplete in CS6

    Hi all, i have a problem in CS6 when i push Ctrl + Space the Php function list is not showing in code hint panel.
    For example usually when y write, "mysql_f" and then press Ctrl + Space, mysql_fecth_array and mysql_fetch_row, was show in code hint panel.
    Now in CS6 this not work, or i don't know how do it.
    ¿How i can fix this?
    P.d: I read that disable JQuery hints in preference options make that "$_" global var show; but function list no.
    Thanks in advance.

    Moved to the Developing server-side applications with Dreamweaver forum.
    I have just tested Ctr+Space in Dreamweaver CS6 in both Windows 7 and Mac OS X 10.8. It works without problem on both systems.
    Make sure you're using a PHP page, and that you're in a PHP code block. Also, code hints stop working if you have a syntax error earlier in your code.
    Sometimes, if you experience strange behaviour with Dreamweaver, it helps to delete the cache file or even the whole of your configuration folder. See http://forums.adobe.com/thread/494811 for details.

  • Why my Dreamweaver CS6 encodes the URL php on MM_goToURL ?

    I have a problem with dreamweaver CS6 because when I use this function MM_goToURL, my dreamweaver encodes the php var, i don't know why, I have my preference well.. I don't know if it is a bug from dreamweaver. i'm using template form dreaweaver.
    this is a real code
    and later when I go to update the template look the url on the function MM_goToURL, this change dreamweaver CS6 encode it
    this doesn't happen on dreamweaver CS5, CS5.5, CS4.
    need some help with this please =).

    Check your Preferences.
    Ctrl + U or Cmd + U (on Mac OS) > Code Rewriting > Check URL encoding. Ensure it is set to 'Do not encode special characters'.

  • Why can I not create a PHP Form Variable binding in Dreamweaver CS6?

    I'm using Dreamweaver CS6 on Windows 7.
    Currently, I'm following along with Lynda.com tutorial:
    Dreamweaver with PHP and MySQL: Ch. 6. Building Data Entry Forms |  Handling form submissions with PHP
    I'm attempting to add a form variable binding to a PHP document, but after each time I open the menu, type in my name and press OK, it does not show up in my Bindings box.
    and then POOF:
    Can anyone tell me what I'm doing wrong here? Or what I haven't done yet?
    I haven't had a problem with the entire tutorial up until this point and I couldn't find any documentation anywhere else on how to fix my problem.

    I'm using Dreamweaver CS6 on Windows 7.
    Currently, I'm following along with Lynda.com tutorial:
    Dreamweaver with PHP and MySQL: Ch. 6. Building Data Entry Forms |  Handling form submissions with PHP
    I'm attempting to add a form variable binding to a PHP document, but after each time I open the menu, type in my name and press OK, it does not show up in my Bindings box.
    and then POOF:
    Can anyone tell me what I'm doing wrong here? Or what I haven't done yet?
    I haven't had a problem with the entire tutorial up until this point and I couldn't find any documentation anywhere else on how to fix my problem.

  • PHP Function List in Dreamweaver?

    Does Dreamweaver MX 2004 (or later versions) have the
    capability of pulling up a list of PHP functions you've created in
    code view --- where you could click on a function name and your
    cursor or focus would be automatically directed to the start of the
    function? I know this capability is available in other text/code
    editors such as Notepad++, but I didn't know if this feature was
    somewhere available in Dreamweaver --- perhaps in a plug-in?
    Thanks,
    Ryan

    rkdiekhoff wrote:
    > Does Dreamweaver MX 2004 (or later versions) have the
    capability of pulling up
    > a list of PHP functions you've created in code view ---
    where you could click
    > on a function name and your cursor or focus would be
    automatically directed to
    > the start of the function?
    I don't know about MX 2004, but it's definitely available in
    CS3 and the
    beta of CS4. Right-click in Code view and select Functions
    from the
    context menu. It displays a full list of user defined
    functions. Click
    one of them, and you're taken directly to the function
    definition.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Can we design professional PHP websites in Dreamweaver CS6 ?

    Can we design professional PHP websites in Dreamweaver CS6 ?

    Dreamweaver is not a professional PHP IDE (integrated development environment). As such, it lacks PHP debugging capabilities and other features that a nice IDE has.
    But you can code PHP in Dreamweaver, and it does have pretty good PHP syntax checking. So yes, you can create a PHP website using Dreamweaver.
    A lot depends on what exactly you mean by "professional PHP website" and what your programming skill level is. The fact that you are asking this question tells me that your coding skills must not be great, because if they were, you would not need to ask this question. Dreamweaver is a much "friendlier" environment than a PHP IDE. You might find a PHP IDE like ZEND Studio to be overwhelming, in which case Dreamweaver would be your better choice.

  • CSS needs PHP to execute in order to render in Dreamweaver CS6

    When I view my web pages while in Dreamweaver, I need a piece of PHP code ( called ws_general.php ) to execute in order for the CSS to render.
    The pages do look fine when in a browser but I would like to solve this to better test my pages while in Dreaweaver.
    I have looked through various solutions but with no luck.
    I am using:  Windows 7 SP1
    Dreamweaver CS6, build 5842
    Thanks

    Murray,
    The raw code at the top of my page is as follows:
    <!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"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Jim Calvert Photographer - My Images</title>
        <meta name="description" content="Photography has been a modest pastime for most of my adult life but recently became a serious passion.  I feel very much at home outdoors in natural surroundings and enjoy the rewards of all-season photography">
        <meta name="keywords" content="Jim Calvert, wildlife, photography, landscapes, Mississauga, Canada ">   
        <meta http-equiv="content-language" content="en-ca">
        <meta name="copyright" content="Jim Calvert Photographer">
        <meta name="company" content="Lanmax Computer Solutions Inc.">
        <meta name="robots" content="index, follow">
        <meta name="Language" content="English">
        <link rel="stylesheet" type="text/css" media="all" href="ws_css/ws_general.php">                     <<<<<<<<<<<< this is the php that needs to run !
        <script type="text/javascript" src="ws_javascripts/rotator.js"></script>
    <style type="text/css">
    .style23 {
        font-size: 1.4em
    </style></head><body onload="rotateImage('RandPic')">
    <div id="wrapper">
        <div id="top">
    ......... etc, etc..
    And the ws_general.php code is:
    <?php
    Burning Foliage Colour Scheme
    Dark Green    #394635
    Green        #6D7D59
    MyGreen        #2AB305
    Light Green    #B8C39E
    Beige        #F1F2DB
    Light Beige    #ECD77A
    Light Brown    #CD9644
    Brown        #8A5823
    Dark Brown    #513311
    Very Dark Brown #1F1306
    header("Content-type: text/css");
    $main_bkgd = '#1F1306';
    $def_text = '#F1F2DB';
    $other_text = '#ECD77A';
    $link_text = '#2AB305';  /* 2010.08.23  */
    $borders = '#8A5823';
    $titles = '#CD9644';
    $def_menu = '#B8C39E';
    ?>
    /* Standard styles */
    body {
        position: relative;
        text-align: left;
        margin: 0;
        padding: 0;
        font:62.5%  Georgia, Lucida Grande, Lucida Sans Unicode, trebuchet ms, Arial,Helvetica,sans-serif;
        color: <?=$def_text?>;
        background-color: <?=$main_bkgd?>;
        background-position: top left;
        background-repeat: repeat-x;
    p {font-size: 1.2em; font-weight: normal; text-decoration: none; line-height: 1.7em; color:<?=$def_text?>; margin: 0; padding: 0 0 .7em 0; }
    h1, h2, h3 {font-weight: normal; }
    h1 {font-size: 1em; paddi..........etc, etc
    Does this help?
    Cheers

  • I need help, I'm on a laptop acer ... I install Dreamweaver cs6 and I can not seem to do the keyboard raccoucie Quick tags Crt T function

    I need help, I'm on a laptop acer ... I install Dreamweaver cs6 and I can not seem to do the keyboard raccoucie Quick tags Crt T function
    Dreamweaver support forum

    You posted your question 2 minutes ago.
    The first thing to try is Deleting Corrupted Cache in DW.  You must turn on hidden files/folders in your operating system to find them.
    http://forums.adobe.com/thread/494811
    If that doesn't help, try Restore Preferences
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    If all else fails, use the CS Cleaner Tools below followed by a software re-install.
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Nancy O.

  • Save Shortcut not working in Dreamweaver CS6 (cloud)

    Hi,
    I'm working on a mac, 10.7.5, using the cloud service for dreamweaver. (I use this at work, and at home on another subscription) The past few days I've not been able to save a file in dreamweaver using the shortcut (command S) or but going through the file menu. The only way I can save is when I am uploading to the server, and it asks you. Or when I close a file, and it asks you.
    I've restarted and tried everything I can think of.
    Is this a bug? Has anyone else had this problem? This is really annoying, and I can't seem to find any info on it.

    Hey SAAPB,
    I was able to solve my issue by restoring my DW preferences. I contacted Abode Support and they had me follow the steps on this article, and it worked for me. It was a matter of renaming 2 files, and restarting DW. (I think what John sugguested was right, but the article link was outdated)
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html#main_Re storeMac
    Hope it helps you!

  • Recreating Dreamweaver CS6 configuration leaves non functional extension

    After recreating the Dreamweaver CS6 configuration folder due to a very bad extension installation, I am unable to remove the bad extension from the Extension Manager list, is it possible to manually remove it since it will never work if I do not install it again?

    Please delete all files from "C:\Users\<YourUserName>\AppData\Roaming\Adobe\Extension Manager CS6\EM Store\Dreamweaver CS6", "C:\Users\<YourUserName>\AppData\Roaming\Adobe\Extension Manager CS6\Mxi Flag\Dreamweaver CS6" (Windows) or "/Users/<YourUserName>/Library/Application Support/Adobe/Extension Manager CS6/EM Store/Dreamweaver CS6", "/Users/<YourUserName>/Library/Application Support/Adobe/Extension Manager CS6/Mxi Flag/Dreamweaver CS6" (Mac).

  • Problem building record set using Dreamweaver CS6 Cloud Product

    I am having a problem building a Results Page using Dreamweaver CS6.  I have followed all the steps described in Dreamweaver/Build Search and Results Page Article (multiple times).  It seems that when I save the Results page it does not copy the php used to build the dynamic table.  In fact when I view the source, I do not see any php code. 
    Additionally, when I attempt to bind the record set, it also does not accept the Default Value(s).  Enstead it gives me a list of all data in the colum(s) chosen for the record set (using Where..LIKE..variable definition).
    Any suggestions?
    Regards,
    Norv

    Yes, I will be glad to go through each step.  I will also provide code.
    Step 1:  Built the Search Page by adding Form into exisitng htm page.  Used Insert> Form>Form to insert Form area.  Then added three (3) text fields using Text Icon from the Form Menu Bar (Classic View).
    Step 2: Added a Submit and Reset Button to the Search Page.  Again used the Form Menu Bar to create the Buttons.
    Step 3: Selecte the <form> tag at bottom of Document Window to point Form to the Results Page (using the Action Box.
    Saved page and then began building the Results Page using an existing htm page.  Saved the Results Page as a .php document.
    Results Page:  Here are steps taken to build Results Page (Code will follow):
    1/ On the Results Page created a Recordset using the bindings dialog box.  Used the Advanced Recordset Dialog Box.  In the Advanced Dialog Box I used the Select and Where features to create a Recordset that created a 3 column table (records.County, records.ListPrice, records.PropertyType).  In the Variable box I created 3 variables (varCounty, varListPrice, varPropertyType).  varCounty and varPropertyType parameters are text (Type) and % (for Default Value).  varListPrice parameters are floating point (type) and % (for Default Value).  RunTime Value is $_REQUEST["ColumnName"].
    Here is the Code generated by Dreamweaver.  Note, I am not including the code to access the database, because in all tests I am able to access the table.  In fact first time I built the dynamic table, everything worked and I saw the Colum and default value.  Have never been able to duplicate that effort.  :-)
    Here is code:
    <?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;
    $varCounty_rslistings = "%";
    if (isset($_GET["County"])) {
    $varCounty_rslistings = $_Get["County"];
    $varListPrice_rslistings = "%";
    if (isset($_GET["ListPrice"])) {
    $varListPrice_rslistings = $_GET["ListPrice"];
    $varPropertyType_rslistings = "%";
    if (isset($_GET["PropertyType"])); {
    $varPropertyType_rslistings = $_GET["PropertyType"];
    mysql_select_db($database_MyDB, $MyDB);
    $query_reslistings = sprintf("SELECT records.County, records.ListPrice, records.PropertyType FROM records WHERE records.County LIKE %s AND records.ListPrice LIKE %s AND records.PropertyType LIKE %s", GetSQLValueString($varCounty_rslistings, "text"),GetSQLValueString($varListPrice_rslistings,"double"),
    GetSQLValueString($varPropertyType_rslistings,"text"));
    $rslistings = mysql_query($query_rslistings, $MyDB) or die(mysql_error());
    $row_rslistings = mysql_fetch_assoc($rslistings);
    $totalRows_rslistings = mysql_num_rows($rslistings);
    ?>
    That's the code that was generated by Dreamweaver. 
    Thanks in advance for your assistance

  • Start up of Adobe Dreamweaver CS6 with the following error message

    I have the following pop-up error message about Javascript error (s) occurred.
    At start up of Adobe Dreamweaver CS6.0 after an Update. Adobe Dreamweaver CS6 12.  2. I am on Windows Vista Home edition.
    It suggest at line 17 of the file “C:\ Program Files \Adobe \ Adobe Dreamweaver CS6\ Configuration \ Shared\ BC \ JS\ bc_ui_utils.js” MM.BC has no properties.
    What is the remedy to this and has there been a recent patch on this Javascript error?  Where can I get this patch. Thanks.
    Please advice.

    <?php require_once('Connections/attending.php');?>
    <?php if (!function_exists("GetSQLValueString"))
    {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_attending, $attending);
    $query_rsattend = "SELECT * FROM attendlist ORDER BY surname ASC";
    $rsattend = mysql_query($query_rsattend, $attending) or die(mysql_error());
    $row_rsattend = mysql_fetch_assoc($rsattend);
    $totalRows_rsattend = mysql_num_rows($rsattend);
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO attendlist (Windowsid, title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room, Adate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['Wid'], "text"),
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['contactno'], "text"),
                           GetSQLValueString($_POST['mobile'], "text"),
                           GetSQLValueString($_POST['jobrole'], "text"),
                           GetSQLValueString($_POST['courses'], "text"),
                           GetSQLValueString($_POST['cpg2'], "text"),
                           GetSQLValueString($_POST['mgrname2'], "text"),
                           GetSQLValueString($_POST['troom'], "text"),
                           GetSQLValueString($_POST['Adate2'], "date"));
      mysql_select_db($database_attending, $attending);
      $Result1 = mysql_query($insertSQL, $attending) or die(mysql_error());
      $insertGoTo = "Listing.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO attendlist (title, firstname, surname, extension, mobile, jobrole, course, cpg, mgrname, room, Adate) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['title'], "text"),
                           GetSQLValueString($_POST['firstname'], "text"),
                           GetSQLValueString($_POST['surname'], "text"),
                           GetSQLValueString($_POST['contactno'], "text"),
                           GetSQLValueString($_POST['mobile'], "text"),
                           GetSQLValueString($_POST['jobrole'], "text"),
                           GetSQLValueString($_POST['courses'], "text"),
                           GetSQLValueString($_POST['cpg2'], "text"),
                           GetSQLValueString($_POST['mgrname2'], "text"),
                           GetSQLValueString($_POST['troom'], "text"),
                           GetSQLValueString($_POST['Adate2'], "date"));
      mysql_select_db($database_attending, $attending);
      $Result1 = mysql_query($insertSQL, $attending) or die(mysql_error());
      $insertGoTo = "Listing.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    } ?>
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Register</title>
    <style type="text/css">
    <!--
    body {
              font: 100%/0.8 Verdana, Arial, Helvetica, sans-serif;
              background-color: #4E5869;
              margin: 0;
              padding: 0;
              color: #000;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color:#414958;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #4E5869;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: none;
    /* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
    .container {
              width: 80%;
              max-width: 960px;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more readable. IE6 does not respect this declaration. */
              min-width: 780px;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the side columns. IE6 does not respect this declaration. */
              background-color: #FFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout. It is not needed if you set the .container's width to 100%. */
    /* ~~the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo~~ */
    .header {
              background-color: #6F7D94;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
              padding: 10px 0;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
              padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    /* ~~ The footer ~~ */
    .footer {
              padding: 10px 0;
              background-color: #6F7D94;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
              float: right;
              margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
              float: left;
              margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
              clear:both;
              height:0;
              font-size: 1px;
              line-height: 0px;
    -->
    </style>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/yahoo.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/event.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/dom.js'></script>
    <script language='JavaScript' type='text/javascript' src='TSScript/calendar.js'></script>
    <link rel='stylesheet' type='text/css' href='TSScript/TSCalendar/calendar.css' />
    <script language='JavaScript' type='text/javascript' src='TSScript/TSCalendar/TSCalendar.js'></script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><img src="Cerner At Imperial2.jpg" width="960" height="150" alt="" /></div>
      <div class="content">
        <h3>Attendance Register
        </h3>
        <form action="<?php echo $editFormAction; ?>" id="form1" name="form1" method="POST">
          <table width="780" border="0" cellspacing="10" summary="Cerner@Imperial">
            <tr>
              <td><div align="right">* User ID</div></td>
              <td colspan="2"><span id="sprytextfield1">
                <input name="Wid" type="text" id="Wid" tabindex="1" size="18" maxlength="10" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Title</div></td>
              <td colspan="2"><span id="spryselect1">
                <select name="title" id="title" tabindex="2">
                  <option value="0">Select</option>
                  <option value="Ms">Ms</option>
                  <option value="Mrs">Mrs</option>
                  <option value="Mdm">Mdm</option>
                  <option value="Mr">Mr</option>
                  <option value="Dr">Dr</option>
                  <option value="Professor">Prof</option>
                </select>
    <span class="selectRequiredMsg">    Please select an item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* First name</div></td>
              <td colspan="2"><span id="sprytextfield2">
                <input name="firstname" type="text" id="firstname" tabindex="3" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Surname</div></td>
              <td colspan="2"><span id="sprytextfield5">
                <input name="surname" type="text" id="surname" tabindex="4" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg"> a value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Contact/ Bleep</div></td>
              <td colspan="2"><span id="sprytextfield3">
                <input name="contactno" type="text" id="contactno" tabindex="5" size="10" maxlength="6" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">Mobile (optional)</div></td>
              <td colspan="2"><input name="mobile" type="text" id="mobile" tabindex="6" size="25" maxlength="18" />          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Job role</div></td>
              <td colspan="2"><span id="spryselect2">
                <select name="jobrole" id="jobrole" tabindex="7">
                  <option value="0">Select</option>
                  <option value="Doctor">Doctor</option>
                  <option value="CNS/NP">CNS/NP</option>
                  <option value="Midwife">Midwife</option>
                  <option value="Other Staff">Other Staff</option>
                  <option value="Nurse IP HCA">Nurse IP &amp; HCA</option>
                  <option value="Nurse OP HCA">Nurse OP &amp; HCA</option>
                  <option value="IP Physician Assitant">IP Physician Assistant</option>
                  <option value="OP Phlebotomist">OP Phlebotmist</option>
                  <option value="Pharmacists">Pharmacists</option>
                  <option value="Therapist AHP">Therapist &amp; AHP</option>
                  <option value="Medical Secretary">Medical Secretary</option>
                  <option value="Bed Manager">Bed Manager</option>
                  <option value="Medical Record Staff">Medical Records</option>
                  <option value="Medical Records Manager">Medical Records Mgr</option>
                  <option value="OP Booking Clerk">OP Booking Clerk</option>
                  <option value="OP Receptionist">OP Receptionist</option>
                  <option value="ED Admin">ED Admin</option>
                  <option value="Ward Administrator">Ward Administrator</option>
                  <option value="IP Wait List Clerk/Mgr">IP Wait List Clerk/Mgr</option>
                  <option value="Antenatal Supervisor">Antenatal Supervisor</option>
                  <option value="Clinical Coder">Clinical Coder</option>
                  <option value="Clinical Coding Mgr">Clinical Coding Mgr</option>
                  <option value="Pi Help Desk Backoffice">Pi Help Desk Analyst/Back Office</option>
                </select>
              <span class="selectInvalidMsg">Please select a valid item.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Manager's Name</div></td>
              <td colspan="2"><span id="sprytextfield4">
              <input name="mgrname2" type="text" id="mgrname2" tabindex="8" size="40" maxlength="30" />
              <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Attendance Data </div></td>
              <td colspan="2">
                <span id="sprytextfield6">
                <input name="Adate2" type="text" id="Adate2" tabindex="9" />
                <span class="textfieldRequiredMsg"> a value is required.</span><span class="textfieldInvalidFormatMsg"> invalid format.</span></span>
    </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Course</div></td>
              <td colspan="2">
              <select name="courses" id="courses" tabindex="10">
                <option value="0">Select</option>
                <option value="Doctors">Doctors</option>
                <option value="Nurse IP">Nurse IP</option>
                <option value="Nurse OP">Nurse OP</option>
                <option value="Midwife">Midwife</option>
                <option value="HCA">HCA</option>
                <option value="Pharmacist">Pharmacist</option>
                <option value="Back Office Staff">Back Office Staff</option>
                <option value="AHP">AHP</option>
                <option value="Pi Help Desk Analyst">Pi Help Desk Analyst</option>
                <option value="Medical Secretary">Medical Secretary</option>
                <option value="OP Phlebotmist">OP Phlebotmist</option>
                <option value="Champion Users Doctors">Champion Users Doctors</option>
                <option value="Champion Users Nurse IP">Champion Users Nurse IP</option>
              </select></td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* Location &amp; Room</div></td>
              <td><select name="troom" id="troom" tabindex="11">
                <option value="0">Select</option>
                <option value="CXH">Charing Cross</option>
                <option value="HH">Hammersmith Hammersmith</option>
                <option value="QEH">Queen Charlottee Hospital</option>
                <option value="SMH">St Mary's Hospital</option>
                <option value="WEH">Western Eye Hospital</option>
                <option value="SCC">St Charles Community</option>
              </select></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="right">* CPG</div></td>
              <td><select name="cpg2" id="cpg2" tabindex="12">
                <option value="0">Select</option>
                <option value="CPG 1 Medicine">CPG1 - Medicine</option>
                <option value="CPG 2 Surgery &amp; Cancer">CPG2 - Surgery and Cancer</option>
                <option value="CPG3 Specialist Services">CPG3 - Specialist Services</option>
                <option value="CPG4 Circulatory Services and Renal Medicine">CPG4 - Circulatory Services and Renal Medicine</option>
                <option value="CPG5 Womens and Childrens">CPG5 - Womens and Childrens</option>
                <option value="CPG6 Clinical and Investigative Sciences">CPG6 - Clinical and Investigative Sciences</option>
                <option value="CP7 Private Patients">CPG7 - Private Patients</option>
                <option value="Others">Others</option>
              </select></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td><input type="submit" name="submitbt" id="submitbt" value="Submit" /></td>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td><div align="center">* Mandatory Fields</div></td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td colspan="2"> </td>
              <td> </td>
            </tr>
          </table>
          <input type="hidden" name="MM_insert" value="form1" />
        </form>
        <p> </p>
        <p> </p>
        <!-- end .content --></div>
      <div class="footer"></div>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur", "change"]});
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {validateOn:["blur", "change"]});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur", "change"]});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["blur", "change"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer", {validateOn:["blur", "change"]});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {invalidValue:"-1", isRequired:false, validateOn:["blur", "change"]});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "none", {validateOn:["blur"]});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "none", {validateOn:["blur", "change"]});
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "date", {validateOn:["change"], format:"dd/mm/yyyy"});
        </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsattend);
    ?>

  • Lightbox gallery dreamweaver cs6

    Hello, I m tried to insert a picture gallery with dreamweaver cs6 using the widget lightboxgallery, the first problem is that the  buttons,next, previous ... are not displayed, the second problem happens when I want to insert a second " lightbox gallery" in the  same page.
    thank you for helping me

    Many people have reported problems with the Lightbox widget.  I highly recommend using FancyBox2 instead of that widget.  To see a demonstration, copy & paste this code into a new, blank document.  SaveAs test.html and preview in browsers.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, with Fancybox2 Viewer</title>
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
    /**this styles image container**/
    #thumbs p {
    float:left;
    width: 180px;
    height: 12.5em;
    margin: 10px 0 0 20px;
    padding: 10px;
    border: 1px solid silver;
    /**rounded borders**/
    -moz-border-radius: 20px;
    -webkit-border-radius:20px;
    border-radius: 20px;
    /**this styles caption text**/
    font: italic 14px/1.5 Geneva, Arial, Helvetica, sans-serif;
    color: #666;
    text-align:center;
    /**recommend using same size images**/
    #thumbs img {
    width:  160px; /**adjust width to thumbnail**/
    height: 120px; /**adjust height to thumbnail**/
    margin-bottom: 1.5em;
    opacity: 0.75;
    #thumbs img:hover {opacity: 1.0}
    /**float clearing**/
    #thumbs:after {
    content:".";
    clear:left;
    font-size:0px;
    line-height:0;
    display:block;
    visibility:hidden;
    </style>
    </head>
    <body>
    <h1><a href="http://fancyapps.com/fancybox/">Fancybox2</a> Viewer with images</h1>
    <!--insert thumbnails with links to full size images below-->
    <div id="thumbs">
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 1" /></a> <br />
    Caption 1
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 2" /></a> <br />
    Caption 2
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 3" /></a> <br />
    Caption 3
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120.jpg" alt="Thumbnail 4" /></a> <br />
    Caption 4
    </p>
    <p><a class="fancybox" data-fancybox-group="gallery" href="http://placehold.it/400x320.jpg" title="optional captions"><img src="http://placehold.it/160x120" alt="Thumbnail 5" /></a> <br />
    Caption 5
    </p>
    <!--end thumbs--></div>
    <!--Fancybox with Iframe-->
    <h1>Fancybox with Iframe</h1>
    <h3><a class="fancybox" data-fancybox-type="iframe" href="http://example.com">EXAMPLE.COM</a></h3>
    <!--FancyBox function code-->
    <script>
            $(document).ready(function() {
                $('.fancybox, iframe').fancybox();
        </script>
    </body>
    </html>
    Nancy O.

  • In dreamweaver cs6 12.0, build 5842, there is no syntax coloring on main code view?

    In my dreamweaver CS6, why is there no syntax coloring showing on the main code view window on php or any files? It works in window>code inspector, but this does not have all the same functionality. ther is no preferences icon anywhere that I can see to turn this feature on or off? This used to work until just recently. Nothing on google, but the main basics. I tried checking preferences under syntax coloring and all is okay and shows color. I also reinstalled and restarted PC. I am on a macbook with retina display. on mountain lion with latest updates. CS6 is different than cs5 in menus. Please help soon!

    Thanks for the help. I didn't think the retina did, I just wanted to help clarify what I was working with. I tried changing the external editor also and that got the split design view working again, but still no code coloring gosh darnit.

  • Saving Images in Dreamweaver CS6

    I have imported a menu that I created in Fireworks CS6, into dreamweaver cs6, I save to the remote server and you can't see anything.
    Same thing with Bridge CS6. I create a slideshow and import into dreamweaver cs6 and still nothing. Or I will simply put a jpeg or png picture file and the image won't show. Please help
    I just need to know how to save the different images/menu bars in dreamweaver cs6 to the remote server, and I would like it to show online automatically. What do I do
    www.uniquehairytage.com   (this is one of the sites I am talking about)

    I can only assume that it's the dodgy code that exports from Fireworks because your images are uploaded and in the correct place.
    Can you copy all of the code below and paste it into a new Dreamweaver document (you'll have to open code view to do this) save it as test.html and upload it to your remote server and then look at it in a browser and see what happens?
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Unique Hairytage</title>
    <style type="text/css">
    .UNDER {
        color: #FFF;
        font-size: 36px;
    .F {
        text-align: center;
    .F {
        color: #FFF;
    .F {
        font-size: 36px;
    .F {
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    .F {
        font-family: Georgia, "Times New Roman", Times, serif;
    .if {
        font-size: 24px;
    .tab {
        font-family: Georgia, "Times New Roman", Times, serif;
    .if {
        font-size: 24px;
    .tab {
        color: #FFF;
    .if {
        text-align: center;
    .if {
        text-align: center;
    .t {
        font-size: 24px;
    .p {
        color: #000;
    .t {
        font-size: 24px;
    .web {
        font-size: 36px;
    .full {
        text-align: center;
        font-size: 36px;
        font-weight: bold;
        color: #633;
    </style>
    <script type="text/javascript">
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body bgcolor="#CCCCCC" onload="MM_preloadImages('BrandyMenu_r2_c1_s2.png','BrandyMenu_r1_c1_s2.jpg','BrandyMenu_ r1_c2_s2.jpg','BrandyMenu_r1_c3_s2.jpg','BrandyMenu_r1_c4_s2.jpg')">
    <p class="full">  </p>
    <table width="1052" cellpadding="0" cellspacing="0" border="0" bgcolor="#fff" style="margin: 0 auto;">
    <tr>
    <td>
    <p><img src="http://www.uniquehairytage.com/Untitled-2.png" width="1052" height="93" /></p>
    </td>
    </tr>
    <tr>
    <td>
    Delete this text - its just proping open a table cell
    </td>
    </tr>
    <tr>
    <td><table width="420" cellpadding="0" cellspacing="0" border="0" style="margin: 0 auto;">
    <tr>
    <td><a href="http://www.uniquehairytage.com/home.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BrandyMenu_r1_c1','','BrandyMenu_r1_c1_s2.jpg',1);"><img name="BrandyMenu_r1_c1" src="http://www.uniquehairytage.com/BrandyMenu_r1_c1.jpg" width="105" height="38" id="BrandyMenu_r1_c1" alt="" /></a></td>
    <td><a href="http://www.uniquehairytage.com/about.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BrandyMenu_r1_c2','','BrandyMenu_r1_c2_s2.jpg',1);"><img name="BrandyMenu_r1_c2" src="http://www.uniquehairytage.com/BrandyMenu_r1_c2.jpg" width="128" height="38" id="BrandyMenu_r1_c2" alt="" /></a></td>
    <td><a href="http://www.uniquehairytage.com/gallery.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BrandyMenu_r1_c3','','BrandyMenu_r1_c3_s2.jpg',1);"><img name="BrandyMenu_r1_c3" src="http://www.uniquehairytage.com/BrandyMenu_r1_c3.jpg" width="150" height="38" id="BrandyMenu_r1_c3" alt="" /></a></td>
    <td><a href="http://www.uniquehairytage.com/contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BrandyMenu_r1_c4','','BrandyMenu_r1_c4_s2.jpg',1);"><img name="BrandyMenu_r1_c4" src="http://www.uniquehairytage.com/BrandyMenu_r1_c4.jpg" width="128" height="38" id="BrandyMenu_r1_c4" alt="" /></a></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <table width="1052" height="217" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
    <td bgcolor="#FFFFFF"><p> </p>
    <p> </p>
    <p align="center"><span class="full">FULL SERVICE HAIR STYLIST</span></p>
    <table width="753" border="0" align="center">
    <tr>
    <td width="296"><img src="http://i339.photobucket.com/albums/n457/scervantes-01/Brandypic.jpg" width="296" height="481" /></td>
    <td width="447" align="center" valign="top"><p class="tab"> </p>
    <p> </p>
    <p class="tab"> </p>
    <p class="t"> </p>
    <p align="center" class="t">530-415-5524</p>
    <p align="center" class="tab"><a href="mailto:[email protected]" class="t">[email protected]</a></p>
    <p class="tab"></p></td>
    </tr>
    </table></td></tr>
    </table> 
    </body>

Maybe you are looking for