Esempio n. 1
0
include "includes/assets/head.php";
?>
    <title>Examen de PHP</title>
</head>
<body>

<?php 
include "includes/views/header.php";
?>
<main>
    <a href="manager.php" class="back">Back to manager</a>
    <form method="post" action="includes/assets/sendToAll.php" class="pure-form pure-form-stacked mailToAll">
        <input type="text" name="title" placeholder="Title" value="<?php 
retrieveValue('title');
?>
"/>
        <textarea name="content" placeholder="Your mail content" value="<?php 
retrieveValue('content');
?>
"></textarea>
        <input type="hidden" name="check"/>
        <input class="pure-button pure-button-primary" type="submit" value="Send"/>
    </form>
</main>

<?php 
include "includes/views/footer.php";
include "includes/assets/foot.php";
?>
</body>
</html>
Esempio n. 2
0
        <link rel="stylesheet" type="text/css" href="../css/pages/login.min.css"/>
		<title>Examen de PHP</title>
	</head>
	<body>

    <?php 
include "includes/views/header.php";
?>
        <main>
            <div class="container-form">
                <form action="includes/assets/creation.php" method="POST" class="pure-form pure-form-stacked">
                    <div class="wrapper">
                        <h1>Sign up</h1>
                            <form method="post" action="index.php">
                                <input type="text" name="username" placeholder="Username" value="<?php 
retrieveValue('username');
?>
"/>
                                <input type="password" name="password" placeholder="Password" value=""/>
                                <input type="password" name="passwordCheck" placeholder="Confirm password" value=""/>
                                <input type="hidden" name="check" value="0"/>
                                <input class="pure-button pure-button-primary" type="submit" value="Create an account"/>
                            </form>
                            <p>Already an account ? <a href="index.php">Sign in !</a></p>
                            <div class="error">
                              <?php 
display_errors($error);
?>
                            </div>
                    </div>
                </form>
Esempio n. 3
0
     $image_data = file_get_contents($item_img);
     // Get image data
     $filename = preg_replace('/[^a-z0-9]/ui', '-', vnit_change_title($title));
     // Create image file name
     if (strpos($filename, ".png") === false && strpos($filename, ".jpg") === false) {
         $filename .= "-" . $j . ".png";
     }
     file_put_contents($root_month . $filename, $image_data);
 }
 $version = $itemhtml->find('div[class=meta-info] div[itemprop="softwareVersion"]')[0]->plaintext;
 $manufacture = $itemhtml->find('a[class="document-subtitle primary"] span')[0]->plaintext;
 $price = $itemhtml->find('meta[itemprop="price"]');
 foreach ($price as $element) {
     echo $element;
     if (isset($element->type) != false) {
         echo retrieveValue($element) . '______________________________________________________________';
     }
 }
 // Lay thong tin bai viet
 $content_ = $itemhtml->find("div[class=show-more-content]");
 $content .= $content_[0]->innertext;
 $content .= '<h2 class="app-title"><i>' . $title . '</i></h2>';
 $content .= '<div style="float:left;height:150px;width:150px;padding:15px 20px 10px 0;">
         <a title="Download ' . $title . '"><img width="150" height="150" alt="' . $title . '" src="' . $images . '"></a>
     </div>';
 $content .= '<div style="padding:15px 0 10px 0;">
     <p>Download ' . $title . ' V ' . $version . ' :</p>
     <p class="no_translate" style="margin:15px 0;">
     <a class="download" rel="nofollow" href="http://etcandroid.com/download/1644/exploration-lite"> <strong> ++ Click here to download ++ </strong> </a>    
      </p>
         <ul>