Jump to content

moosey_man1988

Members
  • Posts

    75
  • Joined

  • Last visited

Everything posted by moosey_man1988

  1. okay muddy i think you might have gone a little over my head with that one :| I'll try google what you said in some fashion Thanks for your help though, this wouldn't have been possible for me without your input
  2. Hi, I've got the code working I used ViewerJS, here's my code <?php if(mysql_num_rows($note_query)!=0) { do { // if($note_rs['method'] == "note"){ // $method= "images/icons/blue_circle_pen.png"; // } // elseif($note_rs['method'] == "PlainText") // $method= "images/icons/blue_circle_notepad.png"; if($note_rs['method'] == "note"){ $noteLink= "<td><img src='images/icons/blue_circle_pen.png' alt='pen' style='width:30px'></td>"; } elseif($note_rs['method'] == "PlainText"){ $noteLink= "<td><a href=".$note_rs['location']."/".$note_rs['fileName']."><img src='images/icons/blue_circle_notepad.png' alt='notepad' style='width:30px'></a></td>"; } elseif($note_rs['method'] == "PDF"){ $noteLink= "<td><a href=js/ViewerJS/#/".$note_rs['location']."/".$note_rs['fileName']."><img src='images/icons/blue_circle_pdf.png' alt='notepad' style='width:30px'></a></td>"; } elseif($note_rs['method'] == "MsDoc"){ $noteLink= "<td><a href=".$note_rs['location']."/".$note_rs['fileName']."><img src='images/icons/blue_circle_msword.png' alt='notepad' style='width:30px'></a></td>"; } ?> <tr><td><?php echo $note_rs['customerId']; ?></td> <td><?php echo $note_rs['note']; ?></td> <td><?php echo $note_rs['user']; ?></td> <td><?php echo date("d-m-Y H:i:s", strtotime($note_rs['Date']));?></td> <?php echo $noteLink;?></tr> <?php } while ($note_rs=mysql_fetch_assoc($note_query)); } else { echo "No results found"; } ?> But I need to make this hover, and display over the top of the current page, not a new link, how can i achieve this?
  3. Muddy Thank you so much for your comment, I will get working on this and on completion i'll send a picture I actually spotted a jquery one that looks really nice, and also you can buy it for £6.... worth it? I very much prefer jquery as i find its lightning fast.
  4. Hi Everyone I'm quite new to php, and im currently doing a learn as i go project, I've created a kind of customer portal, where you can add notes and documents for that specific customer on the file upload i defines which file i have uploaded and puts it as a note, and displays all the notes and files for that customer on the customers page. On the notes table I have icons defined by the file type e.g a pdf upload will have a pdf icon. when clicking on the icon it will download the file, but i want to go one better than that, I want to be able to hover over the icon with my mouse and this views the document in an overlay when clicking either side of that document it will hide that middle viewer. I've attached an image of what i currently have, any help is greatly appreciated in advance, I am a little baffled with this one and don't know where to start but i know it can be achieved, can any one advise me how this can be achieved and if there are specific things i require e.g this needs to be done in javascript? Would i need something like php magik?
  5. Hi everyone I have created an upload page which it working very well it uploads data to a database, but im having trouble with phone numbers say I have 7788991100 as a phone number when uploading the phone number from the csv I get the result of 778899110 (its taking off the last 0) Does anyone know how i can stop this? I know i could set the max length to 10 and have the column as zero autofill but that seems to me like a very dodgy way of uploading the phone numbers? here is the layout of my table Thanks in advance for any help given
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.