Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- col1["title"] = "BOL";
- $col1["name"] = "bolnumber";
- $col1["width"] = "10";
- $col1["editable"] = false;
- $col1["on_data_display"] = array("show_bol_link","");
- $cols1[] = $col1;
- function show_bol_link($data)
- {
- $ordid = $data["orderid"];
- $result = mysql_query("SELECT * FROM boltracking WHERE ordernum = '$ordid'") or die(mysql_error());
- while($row = mysql_fetch_array( $result )) {
- $bolnum = $row['bol_num'];
- }
- if ($bolnum == "") {
- $bolnum = "Assign";
- }
- if ($bolnum == "Assign") {
- $link = 'javascript:window.open("assignbol.php?order='.$ordid.'","newwind","height=800,width=800"); void(0);';
- } else {
- $link = 'javascript:window.open("bolmaker.php?order='.$ordid.'","newwind","height=800,width=800"); void(0);';
- }
- return "<a href='#' onclick='$link'>".$data["bolnumber"]."</a>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement