Jump to content

justravis

Members
  • Posts

    115
  • Joined

  • Last visited

Posts posted by justravis

  1. Would you know why the bottom border appears on the nested ul's (line 36) instead of the parent ul (line 10)?

     

    THANKS!

    * {
    	margin: 0;
    	padding: 0;
    }
    
    body {
    	background: black;
    }
    
    nav ul {
    	list-style: none;
    	border-bottom: 1px solid #404040;
    }
    
    nav li {
    	position: relative;
    	float: left;
    	
    	/* Width for About, Graphic Design & Contact */
    	width: 15%;
    }
    
    /* Width for Mobile Apps & Web */
    nav li:nth-of-type(3), nav li:nth-of-type(4) {
    	width: 27.5%;
    }
    
    nav a {
    	color: #404040;
    	font-size: 1.5em;
    	font-weight: bold;
    	text-decoration: none;
    	display: block;
    }
    
    nav ul ul {
    	/*display: none;*/
    	position: absolute;
    	z-index: 99;
    }
    
    nav li li {
    	width: inherit;
    	float: none;
    }
    
    nav li li a {
    	font-size: 1.25em;
    }
    
    <!DOCTYPE HTML>
    <html>
    <head>
    	<title>PowerON Technologies - San Diego-Based Graphic Design, Mobile App & Web Development Firm</title>
    	
    	<!-- HTML5Shiv helps older browsers display HTML 5 elements. -->
    	<!--[if lt IE9]>
    		<script src="_js/html5shiv.js"></script>
    	<![endif]-->
    	<!-- /HTML5Shiv -->
    	
    	<!-- CSS -->
    	<!-- Normalize.css makes tags look the same in all browsers -->
    	<link href="_css/normalize.css" type="text/css" rel="stylesheet">
    	<link href="_css/styles.css" type="text/css" rel="stylesheet">
    	<!-- /CSS -->
    	
    	<!-- JavaScript -->
    	<script src="_js/jQuery.js" type="text/javascript"></script>
    	<script src="_js/scripts.js" type="text/javascript"></script>
    	<!-- /JavaScript -->
    </head>
    <body>
    <!-- NAV BAR -->
    <nav>
    	<ul>
    		<li><a href="#">About</a></li>
    		<li>
    			<a href="#">Graphics</a>
    			<ul>
    				<li><a href="#">SAIC</a></li>
    				<li><a href="#">YouthBuild</a></li>
    			</ul>
    		</li>
    		<li>
    			<a href="#">Mobile Apps</a>
    			<ul>
    				<li><a href="#">Big Brothers Big Sisters</a></li>
    				<li><a href="#">YMCA</a></li>
    			</ul>
    		</li>
    		<li>
    			<a href="#">Web</a>
    			<ul>
    				<li><a href="#">Challenged Athletes Foundation</a></li>
    				<li><a href="#">Make-A-Wish Foundation</a></li>
    				<li><a href="#">Turning The Hearts Center</a></li>
    			</ul>
    		</li>
    		<li><a href="#">Contact</a></li>
    	</ul>
    </nav>
    <!-- /NAV BAR -->
    </body>
    </html>
    

    index.zip

  2. I want to be able to enter a url and have it converted to pdf. Since I have a shared hosting account without access to PDFLib or compilers to install software, my options seem limited.

     

    FPDF's documentation says it will not serve this purpose.

     

    DOMPDF sounds like a good fit, but...

    <?php
     require_once("dompdf_config.inc.php"); //include dompdf config
     $old_limit = ini_set("memory_limit", "16M");
     $dompdf = new DOMPDF();
     //$dompdf->load_html("YOUR HTML TEXT");
     $dompdf->load_html_file('http://www.reuters.com/finance/stocks/companyProfile?rpc=66&symbol=SNE');
     $dompdf->set_paper("PAPER SIZE HERE", "ORIENTATION HERE");
     $dompdf->render();
     $dompdf->stream("dompdf_out.pdf");
     exit(0);
    ?>
    

     

    returned -> http://powerontechnologies.com/_functions/php/pdf/dompdf/TEST.php

     

    What do you reccomend??

     

    THANKS!

  3. i'm trying to import my print-on-demand shop without using frames.

     

    pg i'm importing - http://byuhonorcode.spreadshirt.com/

    my site - http://byuhonorcode.com/index2.php

    <?php
    
    $pg=file_get_contents('http://byuhonorcode.spreadshirt.com/');
    echo $pg;
    
    ?>
    

     

    the page appears, but the these features no longer function:

    - switchColor javascript changes shirt color onClick of swatch (located @ http://cache.spreadshirt.com/Public/Shop/Js-packaged/shop_de23789016327809b00d204c6add79ba.js)

    - the arrows that change the color swatches

    - the size option box

     

    any ideas?

     

    Thanks!

  4. i dont hav ssh access...u know how to determine file ownership from cpanel?

     

    just realized if i manually pass the url to str_replace(), i dont get the error:

    echo str_replace('http://ref.potech.com/php/', '', 'http://ref.potech.com/php/highlight_file.php');
    echo str_replace('http://ref.potech.com/php/', '', 'http://ref.potech.com/php/arrays/multidim.php');
    

     

    the error comes up when i submit the url in the form and pass it in the variable $path

  5. i'm trying to strip out the first part of the url.

     

    i tried submitting 'http://ref.potech.com/php/test.php'

     

    Any ideas?  Thanks!

     

    <html>
    <body>
    
    <?php
    
    if($path)
    {
    $path=str_replace('http://ref.potech.com/php/', '', $path);
    echo $path;
    
    echo '<br><br>';
    }
    
    ?>
    
    <form action=<?php echo $PHP_SELF ?> method=get>
    <b>PHP File URL (w/o 'http://'):</b> <input type=text name=path id=path>
    <input type=submit name=submit id=submit value=Submit>
    </form>
    </body>
    </html>
    

     

    Error Page for the Page Coded Above:

    Forbidden

     

    You don't have permission to access /php/highlight_file.php on this server.

     

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  6. I periodically receive these weird emails from our web form.

     


     

    from: ntcmbhn <crzqhz@idotvx.com>

    subject: ADA Web: IuPyKAxHvWGq

    Body:

    ylMS24  <a href="http://bvzyhqvdnrkq.com/">bvzyhqvdnrkq</a>, aecoaxaxwnpr, [link=http://yanczwljvulo.com/]yanczwljvulo[/link], http://wughqztmyzta.com/

     


     

    I don't BELIEVE this is disrupting any legitimate submissions.

     

    Besides having random text inside an image for them to retype, how can i avoid this?

     

    Or do you see anything wrong with my code?

     

     

    Thanks for your time!

     


     

    <?php
    
    
    if($_POST[send])
    {
    $arrErrs=chkusual();
    
    if(!$arrErrs)
    {
    	if(!$_POST[recipient])
    	{
    		$to='Able-Disabled Advocacy ';
    		#$to.='<test@powerontechnologies.com>';
    		$to.='<ada@able2work.org>';
    	}
    	else
    	{
    		$to=$_POST[recipient] . '@able2work.org';
    	}
    
    	$subj="ADA Web: $_POST[subj]";
    
    	$msg=$_POST[msg];
    
    	$sent=mail($to, $subj, $msg, "From: $_POST[name] <$_POST[email]>");
    
    	$autoto=$_POST[email];
    	$autosubj='Thank you for contacting Able-Disabled Advocacy!';
    	$automsg='We appreciate you taking the time to visit our website.  A staff member will reply to your email shortly.';
    
    	$autosent=mail($autoto, $autosubj, $automsg,"From: $to");
    }
    }
    
    ?>
    <html>
    <body>
    <?php
    
    if($sent && $autosent)
    {
    echo "$autosubj<br />\n";
    }
    else
    {
    ?>
    If you would like to send us an email, please submit the form below.<br />
    <form action='<?php echo $PHP_SELF ?>' method='post' />
    <input type=hidden name=reqTypeNotArr id=reqTypeNotArr value="recipient,Please choose a recipient;name,Please enter your name;email,Please enter your email address;msg,Please enter a message">
    <input type=hidden name=reqEmail id=reqEmail value="email">
    <table>
    <tr>
    	<td width=10px valign=top>
    		Recipient:
    	</td>
    	<td>
    		<select name='recipient' id='recipient'>
    			<option value=''>Select A Recipient</option>
    			<option value=elaine>Cooluris, Elaine - Executive Director</option>
    			<option value=bob>Eagleman, Bob - Director of Operations</option>
    			<option value=jacki>Farrington, Jacki - YouthBuild Program Manager</option>
    			<option value=luis>Gallegos, Luis - Director of Information Technology</option>
    			<option value=cindy>Lennon, Cindy - PWI Program Director</option>
    			<option value=travis>Perreira, Travis - Special Projects Coordinator & Webmaster</option>
    			<option value=denise>Yoggerst, Denise - Special Projects Manager</option>
    		</select>
    		<?php outerrs('recipient', $class='err', $startbr=1) ?>
    	</td>
    </tr>
    <tr>
    	<td>
    		Your Name:
    	</td>
    	<td>
    		<input type='text' name='name' id='name' value="<?php echo $_POST[name] ?>"/>
    		<?php outerrs('name', $class='err', $startbr=0) ?>
    	</td>
    </tr>
    <tr>
    	<td valign=top>
    		Your Email:
    	</td>
    	<td>
    		<input type='text' name='email' id='email' value="<?php echo $_POST[email] ?>"/>
    		<?php outerrs('email', $class='err', $startbr=0, $endbr=1) ?>
    	</td>
    </tr>
    <tr>
    	<td>
    		Subject:
    	</td>
    	<td>
    		<input type='text' name='subj' id='subj' value="<?php echo $_POST[subj] ?>"/>
    	</td>
    </tr>
    <tr>
    	<td colspan=2>
    		Message:<br />
    		<?php outerrs('msg', $class='err', $startbr=0) ?>
    		<textarea cols=40 rows=5 name='msg' id='msg'><?php echo $_POST[msg] ?></textarea><br />
    	</td>
    </tr>
    <tr>
    	<td colspan=2 align=center>
    		<input type='submit' name='send' id='send' value='send'>
    	</td>
    </tr>
    </table
    </form>
    </body>
    </html>
    

     

×
×
  • 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.