Tuesday, December 15, 2015

div table good sample

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
    .Table
    {
        display: table;
border-collapse: separate;
border-spacing: 2px;
    }

    .Title
    {
        display: table-caption;
        text-align: center;
        font-weight: bold;
        font-size: larger;
    }

    .Heading
    {
        display: table-row;
        font-weight: bold;
        text-align: center;
    }

    .Row
    {
        display: table-row;
    }

    .Cell
    {
        display: table-cell;
        border: solid;
        border-width: thin;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 5px;
        padding-bottom: 5px;
background-color: WhiteSmoke;

    }

.Cell:hover {background-color:lavender;}
    
    .Cellh
    {
        display: table-cell;
        border: solid;
        border-width: thin;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 5px;
        padding-bottom: 5px;
background-color: aliceblue;
        -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;

    }
    
     .Cellh a {background-color:aliceblue; display: block;text-decoration: none;-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;}
     .Cellh a:hover {background-color:lightskyblue; display: block;text-decoration: none;-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;}


</style>
</head>
<body>


<center>
<div class="Table">
    <div class="Title">
        <p>This is a Table</p>
    </div>
    <div class="Heading">
        <div class="Cellh">
            <a href=#sort1>Heading 1</a>
        </div>
        <div class="Cellh">
            <a href=#sort2>Heading 2</a>
        </div>
        <div class="Cellh">
            <a href=#sort3>Heading 3</a>
        </div>
    </div>
    <div class="Row">
        <div class="Cell">
            <p>Row 1 Column 1</p>
        </div>
        <div class="Cell">
            <p>Row 1 Column 2</p>
        </div>
        <div class="Cell">
            <p>Row 1 Column 3</p>
        </div>
    </div>
    <div class="Row">
        <div class="Cell">
            <p>Row 2 Column 1</p>
        </div>
        <div class="Cell">
            <p>Row 2 Column 2</p>
        </div>
        <div class="Cell">
            <p>Row 2 Column 3</p>
        </div>
    </div>
</div>
</center>

</body>
</html>

usefull email creator for php

<!--
/*
Logovanje i unos:

dacaj.php ----+ daca.php ----+ glavni.php ----+ glavniupload.php  


login.php ----+ dalje.php ----+ glavnix.php ----+ glavniuploadx.php



Pregled i izmena:


         = 

er10.php = ----+ glavnie.php ----+ glavniuploade.php
         =
 
er1000.php = ----+ glavniex.php ----+ glavniuploadex.php


         

 
Pretraga:

nadji.htm ----+ cms_search.php  



LIPUS = Loging - Insert - ( Preview - Update ) - Search

-->
<?php
//---------------------Send e-mail with attachments (simple version):

// Define some variables

$to = 'test@logikdev.com'
$subject = 'Test email';
// Create a boundary string. It must be unique so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date('r', time()));

// Define the headers

$headers = "From: noreply@logikdev.com\r\n";
// Add boundary string and mime type specification
$headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\"";

// Read the attachment file contents into a string, encode it with MIME base64, and split it into smaller chunks

$attachment = chunk_split(base64_encode(file_get_contents('attachment.zip')));

// Define the body of the message

$message = "
--PHP-mixed-$random_hash
Content-Type: text/plain; charset='iso-8859-1'

This is a test email message sent with PHP.


--PHP-mixed-$random_hash

Content-Type: application/zip; name=attachment.zip
Content-Transfer-Encoding: base64
Content-Disposition: attachment

$attachment

--PHP-mixed-$random_hash--";

// Send the email

if (@mail($to, $subject, $message, $headers)) {
echo "The mail has been sent.";
} else {
echo "The mail has NOT been sent!";
}


?>





<?php


//----------------------------------


//----------------------------------Send simple e-mail




//define the receiver of the email

$to = 'youraddress@example.com';
//define the subject of the email
$subject = 'Test email'; 
//define the message to be sent. Each line should be separated with \n
$message = "Hello World!\n\nThis is my first mail."; 
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
echo $mail_sent ? "Mail sent" : "Mail failed";
?>



<?php



//----------------------------------


//----------------------------------Send HTML e-mail


//define the receiver of the email

$to = 'youraddress@example.com';
//define the subject of the email
$subject = 'Test HTML email'; 
//create a boundary string. It must be unique 
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date('r', time())); 
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com";
//add boundary string and mime type specification
$headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\""; 
//define the body of the message.
ob_start(); //Turn on output buffering
?>
--PHP-alt-<?php echo $random_hash; ?>  
Content-Type: text/plain; charset="iso-8859-1" 
Content-Transfer-Encoding: 7bit

Hello World!!! 

This is simple text email message. 

--PHP-alt-<?php echo $random_hash; ?>  

Content-Type: text/html; charset="iso-8859-1" 
Content-Transfer-Encoding: 7bit

<h2>Hello World!</h2>

<p>This is something with <b>HTML</b> formatting.</p> 

--PHP-alt-<?php echo $random_hash; ?>--

<?
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
echo $mail_sent ? "Mail sent" : "Mail failed";
?>



<?php 



//----------------------------------


//----------------------------------Sending Email with Attachment



//define the receiver of the email 

$to = 'youraddress@example.com'; 
//define the subject of the email 
$subject = 'Test email with attachment'; 
//create a boundary string. It must be unique 
//so we use the MD5 algorithm to generate a random hash 
$random_hash = md5(date('r', time())); 
//define the headers we want passed. Note that they are separated with \r\n 
$headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com"; 
//add boundary string and mime type specification 
$headers .= "\r\nContent-Type: multipart/mixed; boundary=\"PHP-mixed-".$random_hash."\""; 
//read the atachment file contents into a string,
//encode it with MIME base64,
//and split it into smaller chunks
$attachment = chunk_split(base64_encode(file_get_contents('attachment.zip'))); 
//define the body of the message. 
ob_start(); //Turn on output buffering 
?> 

<!--

--PHP-mixed-<?php echo $random_hash; ?>  
Content-Type: multipart/alternative; boundary="PHP-alt-<?php echo $random_hash; ?>" 

--PHP-alt-<?php echo $random_hash; ?>  

Content-Type: text/plain; charset="iso-8859-1" 
Content-Transfer-Encoding: 7bit

Hello World!!! 

This is simple text email message. 

--PHP-alt-<?php echo $random_hash; ?>  

Content-Type: text/html; charset="iso-8859-1" 
Content-Transfer-Encoding: 7bit

<h2>Hello World!</h2> 

<p>This is something with <b>HTML</b> formatting.</p> 

--PHP-alt-<?php echo $random_hash; ?>-- 


--PHP-mixed-<?php echo $random_hash; ?>  

Content-Type: application/zip; name="attachment.zip"  
Content-Transfer-Encoding: base64  
Content-Disposition: attachment  


<?php echo $attachment; ?> 

--PHP-mixed-<?php echo $random_hash; ?>-- 


-->




<?php 

//copy current buffer contents into $message variable and delete current output buffer 
$message = ob_get_clean(); 
//send the email 
$mail_sent = @mail( $to, $subject, $message, $headers ); 
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
echo $mail_sent ? "Mail sent" : "Mail failed"; 
?>



<!--


$email_header .= "Disposition-Notification-To: $from\n"; 

$email_header .= "X-Confirm-Reading-To: $from\n"; 

-->


alternative php environment

Saturday, December 12, 2015

div table layout

http://www.w3schools.com/html/html_layout.asp

Primer:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
    .Table
    {
        display: table;
border-collapse: separate;
border-spacing: 2px;


    }
    .Title
    {
        display: table-caption;
        text-align: center;
        font-weight: bold;
        font-size: larger;
    }
    .Heading
    {
        display: table-row;
        font-weight: bold;
        text-align: center;
    }
    .Row
    {
        display: table-row;
    }
    .Cell
    {
        display: table-cell;
        border: solid;
        border-width: thin;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 5px;
        padding-bottom: 5px;

//        margin: 5px 5px 5px 5px;
// padding:5px;
background-color: LightSteelBlue;


    }

/*
.table {
  display: table;
  border-collapse: separate;
  border-spacing: 10px;
}

.row { display:table-row; }

.cell {
  display:table-cell;
  padding:5px;
  background-color: gold;
}
*/

</style>
</head>
<body>


<div class="Table">
    <div class="Title">
        <p>This is a Table</p>
    </div>
    <div class="Heading">
        <div class="Cell">
            <p>Heading 1</p>
        </div>
        <div class="Cell">
            <p>Heading 2</p>
        </div>
        <div class="Cell">
            <p>Heading 3</p>
        </div>
    </div>
    <div class="Row">
        <div class="Cell">
            <p>Row 1 Column 1</p>
        </div>
        <div class="Cell">
            <p>Row 1 Column 2</p>
        </div>
        <div class="Cell">
            <p>Row 1 Column 3</p>
        </div>
    </div>
    <div class="Row">
        <div class="Cell">
            <p>Row 2 Column 1</p>
        </div>
        <div class="Cell">
            <p>Row 2 Column 2</p>
        </div>
        <div class="Cell">
            <p>Row 2 Column 3</p>
        </div>
    </div>
</div>

</body>
</html>


Tuesday, December 8, 2015

Brrrrrrrrrrrrrrr

QA Engineer (JIRAConfluenceSeleniumBehave) Area: West London Rate: £300-£450 per day