예제 #1
0
function checkDrawForm()
{
    $height = htmlentities($_POST['height'], ENT_QUOTES);
    $width = htmlentities($_POST['width'], ENT_QUOTES);
    $schemeNum = htmlentities($_POST['schemeNum'], ENT_QUOTES);
    $error = "";
    if ($height > 800 || $height < 200 || !is_numeric($height)) {
        $error .= "Height out of range.\n";
    }
    if ($width > 800 || $width < 200 || !is_numeric($width)) {
        $error .= "Width out of range.\n";
    }
    if ($schemeNum > 3 || $schemeNum < 1) {
        $error .= "No color scheme selected.";
    }
    if ($error) {
        print $error;
        showDrawForm($height, $width);
    } else {
        //createimage
        drawImage($height, $width, $schemeNum);
        //displayimage
        print "<h3> Original Image: </h3>";
        print "<img src='../images/myImage.png' alt='generated image' >\n";
        //creates thumbnail button
        $self = $_SERVER['PHP_SELF'];
        print "<form method='post' action='{$self}'>";
        print "<input type='submit' name='submitThumb' value='Create Thumbnail'>\n";
        print "</form>";
        print "<br />";
        startOverLink();
    }
}
		/**
		 * Draw Buttons for moving selected items up and down
		 */
		function drawUpDownButtons() {
			$out = "<td class=\"".$this->style."\" valign=\"middle\">\n";	 	 	
			$out.= '&nbsp;<a href="#" class="navelement" onClick="moveOptionUp(document.' . $this->formname . '.'.$this->name.'sel);  saveSelectValues(document.'.$this->formname.'.'.$this->name.'sel, document.'.$this->formname.'.'.$this->name.'selection);">' . drawImage("up.gif"). '</a><br>';
			$out.= '&nbsp;<a href="#" class="navelement" onClick="moveOptionDown(document.' . $this->formname . '.'.$this->name.'sel); saveSelectValues(document.'.$this->formname.'.'.$this->name.'sel, document.'.$this->formname.'.'.$this->name.'selection);">' . drawImage("down.gif"). '</a>';		 
	 	 	$out.= "    </td>\n";
		  	return $out;	
		}
예제 #3
0
		/**
		  * Draws the layout-element
		  */
		function draw() {
			global $c;
			$output = WUIObject::std_header();
			$date = substr($this->value, 0, 10);
			$showDate = str_replace("-", "/", $date);
			$output.="<span style=\"width:90px;\" id=\"".$this->name."div\">".$showDate."</span>";
			$output.="<input type=\"hidden\" id=\"".$this->name."\" name=\"".$this->name."\" value=\"".$date."\"/>";
			$output.='<a href="#" onclick="document.getElementById(\''.$this->name.'\').value=\'\';document.getElementById(\''.$this->name.'div\').innerHTML=\'--------\';return false;">'.drawImage('delete.gif', 12, 12).'</a>';
			$output.='&nbsp;&nbsp;';
			$output.="<image src=\"".$c["docroot"]."ext/jscalendar/img.gif\" id=\"".$this->name."trigger\" style=\"cursor:hand;\">";
			$output.='<script type="text/javascript">';
			$output.='Calendar.setup({displayArea: "'.$this->name.'div",inputField : "'.$this->name.'", button : "'.$this->name.'trigger"});';
			$output.='</script>';			
			$output.=drawSpacer(10,1);
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
예제 #4
0
<?php

header("Content-type: image/png");
include 'common.inc';
include 'object_detail.inc';
include 'contentColors.inc';
include 'connectionView.inc';
$mime = $_GET['mime'];
// get all of the requests
$secure = false;
$haveLocations = false;
$requests = getRequests($id, $testPath, $run, $cached, $secure, $haveLocations, false);
$mimeColors = requestColors($requests);
$summary = array();
$connections = getConnections($requests, $summary);
$im = drawImage($connections, $summary, $run, $cached, $test, $url, $mime, $mimeColors, false);
// spit the image out to the browser
imagepng($im);
imagedestroy($im);
예제 #5
0
    imagefilledellipse($image, $x, $y, $size, $size, $color);
}
function drawCircles($image)
{
    $max = 12;
    $min = 2;
    $gap = $max - $min;
    $total = getTotalElements();
    $result = getCoords();
    foreach ($result as $row) {
        drawCircle($image, $row['x'], $row['y'], $min + $gap * ($row['total'] / $total));
    }
}
function getTotalElements()
{
    $result = Db::getInstance()->executeS('SELECT COUNT(`id_address`) as total FROM `' . _DB_PREFIX_ . 'address` WHERE deleted = 0 AND id_customer IS NOT NULL AND id_customer != 0');
    return isset($result[0]) ? $result[0]['total'] : 0;
}
function getCoords()
{
    return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT `x`, `y`, COUNT(`id_address`) AS total 
								FROM `' . _DB_PREFIX_ . 'address` a
								LEFT JOIN `' . _DB_PREFIX_ . 'location_coords` lc ON lc.`id_country`=a.`id_country`
								WHERE deleted = 0 AND id_customer IS NOT NULL AND id_customer != 0
								GROUP BY a.`id_country`
								ORDER BY `total` DESC');
}
$image = loadBaseImage($img_path);
drawCircles($image);
drawImage($image);
예제 #6
0
		/**
		 * Draws the mainmenubuttons. Do not call directly. Use the
		 * class draw() method.
		 */
		function draw_mainmenu() {
			global $sid, $auth, $c_languages, $c, $c_theme;

			echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">';
			echo '<tr><td valign="middle" align="center" class="wcopy"><br><br>[Logo]<br><br><br></td></tr>';

			for ($i = 1; $i <= count($this->menucontainer); $i++) {
				if ($auth->checkPermission($this->menucontainer[$i][2], $this->menucontainer[$i][3])) {

					// draw submenu?
					if ($i == $this->selectedMenu) {
						//draw text
						echo '<tr><td valign="middle" align="left" class="embedded">';

						echo '<a href="menu.php?sid=' . $sid . '&mid=' . $i . 'x0" class="cmsmenu_menu">' . drawImage("down.gif"). "&nbsp;&nbsp;&nbsp;" . $this->menucontainer[$i][0] . '</a>';
						echo '</td></tr>';

						//spacer
						echo '<tr><td valign="middle" align="center">';
						echo drawSpacer(8, 8);
						echo '</td></tr>';

						echo '<tr><td valign="middle" align="center">';
						$this->draw_submenu();
						echo '</td></tr>';
					} else {
						//draw text
						echo '<tr><td valign="middle" align="left" class="embedded">';

						echo '<a href="menu.php?sid=' . $sid . '&mid=' . $i . 'x0" class="cmsmenu_menu">' . drawImage("right.gif"). "&nbsp;&nbsp;&nbsp;" . $this->menucontainer[$i][0] . '</a>';
						echo '</td></tr>';
					}

					//spacer
					echo '<tr><td valign="middle" align="center">';
					echo drawSpacer(2, 2);
					echo '</td></tr>';
				}
			}

			echo '</table>';
		}
예제 #7
0
                     </td>
                     <td>
                         <div id="tableBytesRv_div" style="width: 100%;"></div>
                     </td>
                 </tr>
             </table>
             <div style="text-align:center;">
             <h3 name="connection">Connection View (Repeat View)</h3>
             <map name="connection_map_rv">
             <?php 
 $mimeColors = requestColors($requestsRv);
 $summary = array();
 $connections = getConnections($requestsRv, $summary);
 $pageData = loadPageRunData($testPath, $run, 1);
 $options = array('id' => $id, 'path' => $testPath, 'run' => $run, 'cached' => $cached, 'cpu' => true);
 $map = drawImage($connections, $summary, $url, $mime, $mimeColors, true, $pageData, $options);
 foreach ($map as $entry) {
     if ($entry['request'] !== NULL) {
         $index = $entry['request'] + 1;
         $title = $index . ': ' . $entry['url'];
         echo '<area href="#request' . $index . '" alt="' . $title . '" title="' . $title . '" shape=RECT coords="' . $entry['left'] . ',' . $entry['top'] . ',' . $entry['right'] . ',' . $entry['bottom'] . '">' . "\n";
     } else {
         echo '<area href="#request" alt="' . $entry['url'] . '" title="' . $entry['url'] . '" shape=RECT coords="' . $entry['left'] . ',' . $entry['top'] . ',' . $entry['right'] . ',' . $entry['bottom'] . '">' . "\n";
     }
 }
 ?>
             </map>
             <table border="1" cellpadding="2px" cellspacing="0" style="width:auto; font-size:70%; margin-left:auto; margin-right:auto;">
                 <tr>
                     <td class="legend"><table><tr><td class="legend"><div class="bar" style="width:2px; background-color:#28BC00"></div></td><td class="legend">Start Render</td></tr></table></td>
                     <?php 
예제 #8
0
        //http://in.php.net/manual/en/function.ord.php
        if ($b == 0) {
            /* 
            Tratamento dos bytes 00 que estão comprimidos com RLE 
            */
            $i++;
            $dest = $p + ord($image['data'][$i]);
            $color = imagecolorallocatealpha($img, $sprite['palette'][0]['r'], $sprite['palette'][0]['g'], $sprite['palette'][0]['b'], $sprite['palette'][0]['a']);
            //http://in.php.net/manual/en/function.imagecolorallocatealpha.php
            for ($p; $p < $dest; $p++) {
                imagesetpixel($img, $p % $image['width'], $p / $image['width'], $color);
            }
        } else {
            $color = imagecolorallocatealpha($img, $sprite['palette'][$b]['r'], $sprite['palette'][$b]['g'], $sprite['palette'][$b]['b'], $sprite['palette'][$b]['a']);
            imagesetpixel($img, $p % $image['width'], $p / $image['width'], $color);
            //http://in.php.net/manual/en/function.imagesetpixel.php
            $p++;
        }
        $i++;
    }
    header('content-type: ', 'image/gif');
    //http://in.php.net/manual/en/function.header.php
    imagegif($img);
    //http://in.php.net/manual/en/function.imagegif.php
    imagedestroy($img);
    //http://in.php.net/manual/en/function.imagedestroy.php
    return true;
}
$s = loadSprite('spr/' . $_GET['im'] . '.spr');
drawImage($s, $_GET['id']);
예제 #9
0
<?php

header("Content-type: image/png");
include 'common.inc';
include 'object_detail.inc';
include 'contentColors.inc';
include 'connectionView.inc';
include 'page_data.inc';
$pageData = loadPageRunData($testPath, $run, $cached);
$mime = $_GET['mime'];
// get all of the requests
$secure = false;
$haveLocations = false;
$requests = getRequests($id, $testPath, $run, $cached, $secure, $haveLocations, false);
$mimeColors = requestColors($requests);
$summary = array();
$connections = getConnections($requests, $summary);
$options = array('id' => $id, 'path' => $testPath, 'run' => $run, 'cached' => $cached, 'cpu' => true, 'bw' => true);
$im = drawImage($connections, $summary, $url, $mime, $mimeColors, false, $pageData, $options);
// spit the image out to the browser
imagepng($im);
imagedestroy($im);
예제 #10
0
            <td><?php 
echo drawImage($user->getFile2ndfl(true));
?>
</td>
        </tr>
        <tr>
            <th>Второй документ, удостоверяющий личность</th>
            <td><?php 
echo drawImage($user->getFilesSecondIdenty(true));
?>
</td>
        </tr>
        <tr>
            <th>Документы, подтверждающие наличие первоначального взноса</th>
            <td><?php 
echo drawImage($user->getFilesConfirmationPayment(true));
?>
</td>
        </tr>
        <tr>
            <th>Семейное положение</th>
            <td><?php 
echo $user->getMaritalStatusString();
?>
</td>
        </tr>
        <tr>
            <th>Есть дети?</th>
            <td><?php 
echo is_null($user->getField('s_is_childrens')) ? '' : $user->getField('s_is_childrens') == 1 ? 'Да' : 'Нет';
?>
예제 #11
0
    }
    header('content-type: ', 'image/gif');
    //http://in.php.net/manual/en/function.header.php
    imagegif($img);
    //http://in.php.net/manual/en/function.imagegif.php
    imagedestroy($img);
    //http://in.php.net/manual/en/function.imagedestroy.php
    return true;
}
if (loginMySQL()) {
    // Corpo
    $s = loadSprite('spr/oboro.spr');
    drawImage($s, $_GET['frame'], 0, 0, 0, 0);
    // Cabeça
    $s = loadSprite('spr/cabelo.spr');
    drawImage($s, $_GET['frame'], 1, 0, 0, 0);
    //IMPLEMENTAR AS COISAS DE CADA UM VER ULTIMOS LOG'S DA CONVERSA COM O WAP
    /*
    // Equip Top
    drawImage($s, $_GET['frame'], 0, 0, 0);
    
    // Equip Mid
    drawImage($s, $_GET['frame'], 0, 0, 0);
    
    // Equip Low
    drawImage($s, $_GET['frame'], 0, 0, 0);
    
    // Equip Costume Capa
    drawImage($s, $_GET['frame'], 0, 0, 0);
    */
}
	 	/**
	 	 * Draws the left and right selector
	 	 */
	 	 function drawLeftRightButtons() {
	 	 	 $out = "    <td class=\"".$this->style."\" valign=\"middle\" align=\"center\">\n";
	 	 	 $out.= '<a href="#" class="navelement" onClick="moveSelectedOptions(document.' . $this->formname . '.'.$this->name.', document.' . $this->formname . '.'.$this->name.'sel);  saveSelectValues(document.'.$this->formname.'.'.$this->name.'sel, document.'.$this->formname.'.'.$this->name.'selection);">' . drawImage("right.gif"). '</a><br>';
			 $out.= '<a href="#" class="navelement" onClick="moveSelectedOptions(document.' . $this->formname . '.'.$this->name.'sel, document.' . $this->formname . '.'.$this->name.'); saveSelectValues(document.'.$this->formname.'.'.$this->name.'sel, document.'.$this->formname.'.'.$this->name.'selection);">' . drawImage("left.gif"). '</a>';
			 
	 	 	 $out.= "    </td>\n";
	 	 	 return $out;
	 	 }
예제 #13
0
	 /**
	  * draw a small shortcut icon
	  */
	 function _drawShortcut() {
	   $sc = drawImage("icons/li_shortcut.gif", 15,14);	
	   return $sc;
	 }
예제 #14
0
		/**
		* Writes the HTML-Code for the end of your form. May be overwritten by custom classes
		*/
		function draw_footer() {
			global $lang, $c;
			echo "</form>";
			echo "</div>";
			echo '<div id="waitbox" align="center" class="standardwhite" style="width:' .$this->width. 'px;display:none;">';
			echo tableStart();
			echo '<td class="standardwhite" align="center">';
			br();
			br();
			br();
			br();
			br();
			br();
			br();
			br();
			br();
			echo drawImage('move.gif');
			br();
			echo $lang->get("proc_data", "Processing Data...");
			echo "</td>";
			echo tableEnd();
			echo '</div>';			
		}
예제 #15
0
	/**
	 * draws a line
	 * @param integer width of the line
	 * @param integer height of the line
	 */
	function drawLine($width, $height = 1) { return drawImage("pline.gif", $width, $height); }
예제 #16
0
$cached = '';
if ((int) $_GET["cached"] == 1) {
    $cached = '_Cached';
}
echo substr($testPath, 1) . '/' . $run . $cached . '_waterfall.png"';
?>
>
                <h3 name="connection_view">Connection View</h3>
                <map name="connection_map">
                <?php 
include 'contentColors.inc';
include 'connectionView.inc';
$mimeColors = requestColors($requests);
$summary = array();
$connections = getConnections($requests, $summary);
$map = drawImage($connections, $summary, $run, $cached, $test, $url, $mime, $mimeColors, true);
foreach ($map as $entry) {
    if ($entry['request'] !== NULL) {
        $index = $entry['request'] + 1;
        $title = $index . ': ' . $entry['url'];
        echo '<area href="#request' . $index . '" alt="' . $title . '" title="' . $title . '" shape=RECT coords="' . $entry['left'] . ',' . $entry['top'] . ',' . $entry['right'] . ',' . $entry['bottom'] . '">' . "\n";
    } else {
        echo '<area href="#request" alt="' . $entry['url'] . '" title="' . $entry['url'] . '" shape=RECT coords="' . $entry['left'] . ',' . $entry['top'] . ',' . $entry['right'] . ',' . $entry['bottom'] . '">' . "\n";
    }
}
?>
                </map>
                <table border="1" cellpadding="2px" cellspacing="0" style="width:auto; font-size:70%; margin-left:auto; margin-right:auto;">
                    <tr>
                        <td><table><tr><td><div class="bar" style="width:15px; background-color:#007B84"></div></td><td>DNS Lookup</td></tr></table></td>
                        <td><table><tr><td><div class="bar" style="width:15px; background-color:#FF7B00"></div></td><td>Initial Connection</td></tr></table></td>
 /**
  * query the rows from the database
  */
 function getRows()
 {
     global $db, $c, $sid, $lang, $auth;
     $result = array();
     $order = "ca.TITLE";
     if ($this->order == "NAME") {
         $order = "ca.TITLE";
     } else {
         if ($this->order == "CATEGORY") {
             $order = "ca.CH_CAT_ID";
         } else {
             if ($this->order == "EDITED") {
                 $order = "cv.LAST_CHANGED";
             } else {
                 if ($this->order == "CREATED") {
                     $order = "cv.CREATED_AT";
                 } else {
                     if ($this->order == "POSITION") {
                         $order = "ca.POSITION";
                     }
                 }
             }
         }
     }
     $order .= " " . $this->orderdir;
     // $sql_articles = "Select ca.*, cv.LAST_USER, cv.CREATED_AT, cv.LAST_CHANGED FROM channel_articles ca, cluster_variations cv ".$this->getFilterJoin()." WHERE ca.CHID = ".$this->channelId." AND ca.ARTICLE_ID = cv.CLNID AND cv.VARIATION_ID = ".variation()." AND ca.VERSION=0 " . $this->getFilterSQL() . " ORDER BY $order LIMIT ".(($this->page - 1) * $this->recordsPerPage).",".$this->recordsPerPage;
     $sql_articles = "SELECT DISTINCT ca.* FROM channel_articles ca, cluster_variations cv " . $this->getFilterJoin() . " WHERE ca.ARTICLE_ID = cv.CLNID AND ca.CHID = " . $this->channelId . " AND ca.VERSION = 0 " . $this->getFilterSQL() . " ORDER BY {$order} LIMIT " . ($this->page - 1) * $this->recordsPerPage . "," . $this->recordsPerPage;
     // echo $sql_articles;
     $query = new query($db, $sql_articles);
     while ($query->getrow()) {
         $tmp = array();
         $varexists = true;
         $article_id = $query->field("ARTICLE_ID");
         $cvdatasql = "SELECT * FROM cluster_variations WHERE CLNID = " . $article_id . " AND VARIATION_ID=" . variation();
         $cvdata = new query($db, $cvdatasql);
         $cvdata->getrow();
         if ($cvdata->count() < 1) {
             $varexists = false;
         }
         array_push($tmp, $query->field("ARTICLE_ID"));
         $clid = getDBCell("cluster_variations", "CLID", "CLNID = " . $query->field("ARTICLE_ID") . " AND VARIATION_ID = " . variation());
         $live = isClusterLive($clid);
         if ($varexists) {
             if ($live) {
                 array_push($tmp, drawImage("green.gif", $lang->get("article_is_live", "Article is live")));
             } else {
                 array_push($tmp, drawImage("red.gif", $lang->get("article_is_expired", "Article is expired")));
             }
         } else {
             array_push($tmp, drawImage("gray.gif", $lang->get("article_variation_missing", "Variation of this article does not exist yet")));
         }
         array_push($tmp, $query->field("POSITION"));
         array_push($tmp, '<b>' . $query->field("TITLE") . '</b>');
         array_push($tmp, $this->categories[$query->field("CH_CAT_ID")]);
         array_push($tmp, formatDBTimestamp($cvdata->field("LAST_CHANGED")));
         $buttons = "&nbsp;" . crLink(drawImage('up.gif'), $c["docroot"] . "modules/channels/overview.php?sid={$sid}&action=up&article=" . $query->field("ARTICLE_ID"), "navelement");
         $buttons .= "&nbsp;" . crLink(drawImage('down.gif'), $c["docroot"] . "modules/channels/overview.php?sid={$sid}&action=down&article=" . $query->field("ARTICLE_ID"), "navelement");
         $buttons .= "&nbsp;";
         if ($auth->checkAccessToFunction("CHANNEL_DELETE")) {
             $buttons .= "&nbsp;" . crLink($lang->get("delete"), "javascript:confirmAction('" . $lang->get("del_article") . "', '" . $c["docroot"] . "modules/channels/overview.php?sid={$sid}&action=deletearticle&article=" . $query->field("ARTICLE_ID") . "');", "navelement");
         }
         if ($auth->checkAccessToFunction("CHANNEL_LAUNCH")) {
             $buttons .= "&nbsp;" . crLink($lang->get("launch", "Launch"), $c["docroot"] . "modules/channels/overview.php?sid={$sid}&action=launcharticle&article=" . $query->field("ARTICLE_ID"), "navelement");
             $buttons .= "&nbsp;" . crLink($lang->get("expire", "Expire"), $c["docroot"] . "modules/channels/overview.php?sid={$sid}&action=expirearticle&article=" . $query->field("ARTICLE_ID"), "navelement");
         }
         array_push($tmp, $buttons);
         array_push($result, $tmp);
     }
     return $result;
 }
		/**
		 * Draws the HTML for this Input.
		 */
		function draw() {
			global $lang;

			echo "<td colspan=\"" . $this->colspan . "\" class=\"" . $this->css . "\">";
			echo '<table width="100%" cellpadding="2" cellspacing="3" border="0">'; // Draw Selectbox with non-selected values
			echo '<tr><td class="bcopy">';
			echo $this->headlines["head1"] . "<br>";
			echo '<select name="notselvals" id="notselvals" style="width:250px;" size="8">';

			// populate the list
			for ($i = 0; $i < count($this->outlist1); $i++) {
				echo '<option value="' . $this->outlist1[$i][1] . '">' . $this->outlist1[$i][0] . '</option>';
			}

			echo '</select>';
			echo '</td><td valign="middle">';
			// Draw Add button...
			echo '&nbsp;<a href="#" class="navelement" onClick="moveSelectedOptions(document.' . $this->formname . '.notselvals, document.' . $this->formname . '.selvals); return false;">' . drawImage("right.gif"). '</a><br><br>';
			echo '&nbsp;<a href="#" class="navelement" onClick="moveSelectedOptions(document.' . $this->formname . '.selvals, document.' . $this->formname . '.notselvals); inlistProps(document.' . $this->formname . '); saveData(document.' . $this->formname . '); return false;">' . drawImage("left.gif"). '</a>';
			echo '</td>';
			// Draw Selectbox with selected values
			echo '<td width="50%" class="bcopy" valign="top">';
			echo $this->headlines["head1_selected"] . "<br>";
			echo '<select name="selvals" id="selvals" style="width:250px;" size="8" onChange="inlistProps(document.' . $this->formname . ');">';

			// populate the list
			for ($i = 0; $i < count($this->inlist1); $i++) {
				echo '<option value="' . $this->inlist1[$i][1] . '">' . $this->inlist1[$i][0] . '</option>';
			}

			echo '</select>';

			echo '</td></tr>';
			// Draw Roles
			echo '<tr><td colspan="2">&nbsp;</td>';
			echo '<td class="bcopy"><div id="aclprop">';
			echo $this->headlines["head2_selected"] . "<br>";
			echo '<select name="props" id="props" style="width:250px;" size="8" multiple disabled onChange="saveProps(document.' . $this->formname . ');">';

			// populate the list
			for ($i = 1; $i < count($this->values2); $i++) {
				echo '<option value="' . $this->values2[$i][1] . '">' . $this->values2[$i][0] . '</option>';
			}

			echo '</select>';
			echo '<br>' . $lang->get("selmultiple", "Hold down the CTRL-Key to select multiple items!");
			echo "<br><br>";
			echo buttonLink($lang->get("comb_all", "Select All"), "javascript:selectAllOptions(document." . $this->formname . ".props); javascript: saveProps(document." . $this->formname . "); javascript: saveData(document." . $this->formname . ");");
			echo "&nbsp;&nbsp;";
			echo buttonLink($lang->get("comb_none", "Clear All"), "javascript:unselectAllOptions(document." . $this->formname . ".props); javascript: saveProps(document." . $this->formname . "); javascript: saveData(document." . $this->formname . ");");
			echo '</div>';
			echo '</td></tr>';
			// Draw Remove button...
			echo '<tr><td>';
			retain("selval", "");
			retain("configdata", $this->configdata);
			echo '</td><td class="bcopy">&nbsp;</td></tr>';
			echo '</table>';
			echo "</td>";
			echo $this->draw_javascript();
			return $this->colspan;
		}
예제 #19
0
파일: search.php 프로젝트: nsatvik/Sample
    echo '<br>';
}
/*mysql_select_db("my_db", $con);

$result = mysql_query("SELECT * FROM Persons ORDER BY age");

while($row = mysql_fetch_array($result))
  {
  echo $row['FirstName'];
  echo " " . $row['LastName'];
  echo " " . $row['Age'];
  echo "<br />";
  }
 */
function executeQuery($query)
{
    $username = "******";
    $password = "";
    $database = "basic_image_db";
    mysql_connect(localhost, $username, $password);
    @mysql_select_db($database) or die("Unable to select database");
    mysql_query($query);
    //
    mysql_close();
}
$text_contained = "Rectangle";
//$color_contained = "$color";
//$primitives_contained = "$primitives";
//executeQuery("select imageID from text where text like 'Rectangle';");
drawImage();
//drawSampleImage();