Archive for September, 2006

Multi action on drop down

Moreless 2 days i’m not writing here.
Recently i’m very busy…
You know why..? NO, I’m not a workaholic…:D

Anyway, i want to write about javascript.
Why…? It’s about manage “multi action on drop down”
Have you ever think, How to create a form which it without submit button,
but only use drop down menu, where on list contain action by each list.

Ok, Think that we should edit or delete option.
O ya, On this

<?php   //action.php//Better if you control referer and else that you thing it a security issue

$action = isset($_POST['action']) : $_POST['action'] ? 0 ;

if($action == 1 ){

//Delete action here

} elseif ( $action ==2 ){

//Edit action here

} else {

//default

}

?>

And HTML page is like this

<html>

<head>

<!– Everything about HTML head //–><script language=”Javascript”>

<!–

function goAction(n){

var f = document.frm1;
  f.id.value = n;
  f.submit();

}

//–>

</script>

</head>
<body>

<form method=”post” name=”frm1″ action=”action.php”><input type=”hidden” name=”id”>

<table width=”100%”>

   <tr bgcolor=”#CCCCCC”>
      <td>Computer</td>
      <td>$US 340</td>
      <td>
         <select name=”action” onchange=”goAction(234)”>
         <option value=”0">Action</option>
         <option value=”1">Delete</option>
         <option value=”2">Edit</option>
         </select>
     </td>
   </tr>

    <tr bgcolor=”#CDCDCD”>
      <td>Rack Server</td>
      <td>$US 1422</td>
      <td>
         <select name=”action” onchange=”goAction(234)”>
         <option value=”0">Action</option>
         <option value=”1">Delete</option>
         <option value=”2">Edit</option>
         </select>
     </td>
   </tr>
</table>

</form>
</body>
</html>

Any other idea?…
I ‘m waiting :D

Leave a Comment

Any minithesis to all my Friends

Fiewwh….

Many days ago, my friend who studing in a university which concern in Computer and Technology in Yogyakarta ask me, “Hi gun, what is good theme for my thesis”.

Aha…

My friend think that i can answer his question, of course,…. No i cannot… :D
Btw, after thinking about his question i’m searching any pages which content any technology research, and every page always prepare and present about article that i don’t understand. Deply, very very don’t understand :D ( How stupid i am )

Thinking again, i’m only know about PHP ( look at here , i’m very stupid, aren’t me? ).
But, i remembered that PHP can do everything with your PC nad network, so i try to investigate it, and what i think came true. I found many themes that perhaps good for him.

And here are the themes:

  1. Mengelola file kompresi pada website (Compress file management on website)
  2. Mengelola database master dan slave serta pengaruhnya terhadap kinerja website dengan PHP dan API MySQLi . ( Master and slave database management and effect on website performance use PHP and MySQLi API )
  3. Pengaruh mirror terhadap pelayanan XML website. ( Mirror effect towards XML website serving )

OK, now only three themes for your minithesis, I will update any idea soon.
Do you interest ? ( I hope no ) if yes just write in comment. Hehehe…

Leave a Comment

Between “Switch else PHP” and “Choose otherwise XSLT”

Hi, Still know this switch control on PHP programming?
switch($var){
case $var="" : PHP statement ; break;
case $var="" : PHP statement ; break;
default : other PHP statement ; break;
}

Let’s equal it with XSLTransformer <XSLT:CHOOSE>
Check it out.!
<!-- Estimate that you are in a XML tag data -->
<xsl:choose >
<xsl:when test = "xml:value" >
XHTML statement
</xsl:when>
<xsl:when test = "xml:value" >
XHTML statement
</xsl:when>
<xsl:otherwise >
Other XHTML statement
</xsl:otherwise>
</xsl:choose>

Huehuehue…, Can you find the same thing between them..?
Actually, it’s not too hard to find the same thing, especially for a good programmer.

Yea, You’re right, the same thing what i mean, is structure, cos’ these programms use logicaly control by event on one statement which give another statement. ( do you what i mean..? ) I hope… :D
So, what are diferent if we use <xsl:if> ..?
Hahaha, I thing you are better than me to answered this.
Please tell me.

O ya… what i have been written may be wrong, please correct me too, cos i’m in learn about that.. :D

Leave a Comment

Easy money to “community” who lives near forest which burned

Today, i was came in office early, hehehe…
And read a news from Environmental Ministry that abstract of Forest Fire policy by their institutions. After looks and read it. There is a new sentences where very interesting for me. The line what i mean is “Kelompok masyarakat peduli api kemudian diberikan insentif berupa dana bergulir apabila melakukan pembukaan lahan tanpa bakar.” ( Community group that care about fire will be gave insentive as roll on fund if they open land without burning )
Do you know what is in my head..??
Hehehe, yup, you right bro.
My return question is, who will give that fund..? How much is it..? How is procedure..?
Which community..?
OK, I think it will be a new problem for next..?

Btw, I really apreciate to all people who care about Forest fire. Do you know why..?
Cos we have only one earth

Leave a Comment

Government, Education Instutitions and Tree Farmers

Well, i have been read email this affternoon, and i found an email from my university MILIST, which that email was critism an artikel about “Gerhan”.

Gerhan is a forest development program what method based by community based forest management. How is it works..? ( OK you know it know :) ).

Simple, thinking that you are a farmer where you live near a forest. Government education institution and “tree farmer” (who we call it Pesanggem) will works “together” to developt an evelasting forest development.

Moreless they will has different responsibility. And they looks on a seriously conversation
Government said “Let’s develop everlasting forest and keep use community forest management, please send me a proposal complete include technicaly data “;
Education institution answered “OK sir, we will do everything you need, just keep this project to my institution only, we will do any research, socialiszation, train the farmer and give technical data for you , but we don’t have money, so could you help me?”
Government said “OK we will support any material and fund, but report it as good as we serve you, ok “;
Farmers said “Hi sir, what should i do? and what should I get ? “;
Education institusion answered again “Hohoho… You should get much, job, money, more safe life and much more. You will plant, care, and harvest many trees “;
Farmers said “wow… that’s great… So, what will you get..?”;
Education institution and Government answered “No, we don’t need anything from you and your lands, we need your agreement only, that’s all”;
Farmers said “Really… oh thank you very much sir…”;
Education institution and Government answered “You’re welcome”;

Me speaking by myself **How poor farmers are**…

Leave a Comment

Using CakePHP … nyam.. nyam… nyam….

Do you enjoyed developt a web using PHP + API Database only..? If no, i suggest you to go with template engine. Like smarty, tiny but strong , cakePHP or else, Now i’ll tell you about cake PHP, What the f*** is it..?? hehehehe…

Cake PHP (sounds like cake which good to taste it :D ) , is an alternative template engine for you who knows how PHP script does… perhaps!..perhaps..!perhaps..!
Actualy i don’t know it very good..:D ..Sorry…..!!! SO just look and feel by your self, open it on Manual
But …, I have tested it, and it’s cool bro…
O ya… It run on PHP 5

cos you will ussualy using this

class Y extends X

Comments (4)