Exemplo n.º 1
0
            print '<td class "content_actions" align="right">';
            print '<a class="sepV_a" href="'.$_SERVER["PHP_SELF"].'?'.'&fields='.$key.'&attrname='.$key1.'&action='.$acts[$value->enable].'">'.$actl[$value->enable].'</a>';
            if($aRow->edit)
            {
                
                print '<a class="sepV_a" href="'.$_SERVER["PHP_SELF"].'?action=edit&fields='.$key.'&attrname='.$key1.'">'.img_edit().'</a>';
                print '<a class="sepV_a" href="'.$_SERVER["PHP_SELF"].'?action=delete&fields='.$key.'&attrname='.$key1.'">'.img_delete().'</a>';
            }
            print '</td>';
            print "</tr>";
        }
    }

    print "</tbody>";
    print "</table>";
    print "</div>";
    
    print $extrafields->_datatables($obj,$key);
    
    print end_box();
    print '</div>';
}


dol_fiche_end();

llxFooter();

$db->close();
?>
Exemplo n.º 2
0
    function deleteVerify($name = false)
    {
        global $sure, $id, $h_section, $delete;
        global $theme, $language, $type;
        $title = $this->nameField;
        if (empty($sure)) {
            start_box();
            ?>
        <br>
        <form method="get" action="<?php 
            echo $PHP_SELF;
            ?>
" name="surething">
        <p align="center">Are you sure you want to delete the record for <b><?php 
            echo $this->{$title};
            ?>
</b>?</p>
        <p align="center">
          <input type="radio" name="sure" value="1" checked>
          Yes
          <input type="radio" name="sure" value="0">
          No</p>
        <p align="center">
        <input type=hidden name='action' value='delete'>
         <input type=hidden name='id' value='<?php 
            echo $this->id;
            ?>
'>
        <?php 
            if (isset($type)) {
                ?>
<input type="hidden" name="type" value="<?php 
                echo $type;
                ?>
"><?php 
            }
            ?>
        <input type="hidden" name="<?php 
            echo $name;
            ?>
" value="<?php 
            echo $value;
            ?>
">
        <input type="image" alt="Delete" name="Delete" value="Submit" src="/admin_live/images_oa/button_delete.gif">
      </p>
      </form>
      <?php 
            end_box();
        }
    }
Exemplo n.º 3
0
/**
 *  Show tab footer of a card
 *
 *  @param	int		$notab       0=Add tab footer, 1=no tab footer
 *  @return	void
 */
function dol_fiche_end($notab = 0)
{
    print dol_get_fiche_end($notab);
    print end_box();
    print '</div>';
}
Exemplo n.º 4
0
/**
 * Print HTML footer of install pages
 *
 * @param 	string	$nonext				No button "Next step"
 * @param	string	$setuplang			Language code
 * @param	string	$jscheckfunction	Add a javascript check function
 * @return	void
 */
function pFooter($nonext = 0, $setuplang = '', $jscheckfunction = '') {
	global $conf, $langs;

	$langs->load("main");
	$langs->load("admin");

	//print '</td></tr></table>' . "\n";
	//print '</td></tr></table>' . "\n";

	if (!$nonext) {
		print '<div class="nextbutton" id="nextbutton"><input type="submit" value="' . $langs->trans("NextStep") . ' ->"';
		if ($jscheckfunction)
			print ' onClick="return ' . $jscheckfunction . '();"';
		print '></div>';
		print '<div style="visibility: hidden;" class="pleasewait" id="pleasewait">' . $langs->trans("NextStepMightLastALongTime") . '<br><br><div class="blinkwait">' . $langs->trans("PleaseBePatient") . '</div></div>';
	}
	if ($setuplang) {
		print '<input type="hidden" name="selectlang" value="' . $setuplang . '">';
	}

	print '</form>' . "\n";

	// If there is some logs in buffer to show
	if (isset($conf->logbuffer) && count($conf->logbuffer)) {
		print "\n";
		print "<!-- Start of log output\n";
		//print '<div class="hidden">'."\n";
		foreach ($conf->logbuffer as $logline) {
			print $logline . "\n";
		}
		//print '</div>'."\n";
		print "End of log output -->\n";
		print "\n";
	}
	
	print end_box();

	print '</div>';
	print '</div>';
	print '</body>' . "\n";
	print '</html>' . "\n";
}